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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1399
RA = 193.552, Dec = -22.0872
tmin = 601948801, tmax = 602208001
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='983700', job_status='RUN', time_executed='2021-09-06 08:52:01.483324', time_epoch_executed='1630943521.48' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983700

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983700/ft1_4FGL_J1254.2-2205_daily_bin1399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983700/ft2_4FGL_J1254.2-2205_daily_bin1399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983700/ft1_4FGL_J1254.2-2205_daily_bin1399.fits outfile=/scratch/kocevski/983700/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1399.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=601948801.0 tmax=602208001.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 3.89
user 3.62
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/983700/ft2_4FGL_J1254.2-2205_daily_bin1399.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/983700/ft2_4FGL_J1254.2-2205_daily_bin1399.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/983700/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1399.fits evtable="EVENTS" outfile="/scratch/kocevski/983700/ft1_filtered_4FGL_J1254.2-2205_daily_bin1399.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983700/ft1_filtered_4FGL_J1254.2-2205_daily_bin1399.fits" evtable="EVENTS" scfile=/scratch/kocevski/983700/ft2_4FGL_J1254.2-2205_daily_bin1399.fits sctable="SC_DATA" outfile=/scratch/kocevski/983700/ltcube_601948801_602208001_4FGL_J1254.2-2205_daily_bin1399.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/983700/ft2_4FGL_J1254.2-2205_daily_bin1399.fits
.....................!
real 11.71
user 11.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983700/ft1_filtered_4FGL_J1254.2-2205_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/983700/ft2_4FGL_J1254.2-2205_daily_bin1399.fits sctable="SC_DATA" expcube=/scratch/kocevski/983700/ltcube_601948801_602208001_4FGL_J1254.2-2205_daily_bin1399.fits outfile=/scratch/kocevski/983700/expmap_601948801_602208001_4FGL_J1254.2-2205_daily_bin1399.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/983700/ltcube_601948801_602208001_4FGL_J1254.2-2205_daily_bin1399.fits
.....................!
real 191.56
user 186.54
sys 4.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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J1254.2-2205 @ 193.552 -22.0872

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/983700/ft1_filtered_4FGL_J1254.2-2205_daily_bin1399.fits scfile=/scratch/kocevski/983700/ft2_4FGL_J1254.2-2205_daily_bin1399.fits outfile=/scratch/kocevski/983700/cmap_601948801_602208001_4FGL_J1254.2-2205_daily_bin1399.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.552 yref=-22.0872 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983700/ft1_filtered_4FGL_J1254.2-2205_daily_bin1399.fits scfile=/scratch/kocevski/983700/ft2_4FGL_J1254.2-2205_daily_bin1399.fits outfile=/scratch/kocevski/983700/cmap_HighResolution_601948801_602208001_4FGL_J1254.2-2205_daily_bin1399.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.552 yref=-22.0872 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/983700/ft1_filtered_4FGL_J1254.2-2205_daily_bin1399.fits evtable="EVENTS" scfile=/scratch/kocevski/983700/ft2_4FGL_J1254.2-2205_daily_bin1399.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/983700/Model_4FGL_J1254.2-2205_daily_bin1399.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/983700/ft1_filtered_4FGL_J1254.2-2205_daily_bin1399.fits.....................!
real 60.25
user 58.85
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/983700/ft1_filtered_4FGL_J1254.2-2205_daily_bin1399.fits', '/scratch/kocevski/983700/ft2_4FGL_J1254.2-2205_daily_bin1399.fits', expMap='/scratch/kocevski/983700/expmap_601948801_602208001_4FGL_J1254.2-2205_daily_bin1399.fits', expCube='/scratch/kocevski/983700/ltcube_601948801_602208001_4FGL_J1254.2-2205_daily_bin1399.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/983700/Model_4FGL_J1254.2-2205_daily_bin1399.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.2-2205'

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  8.803e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.191e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  2.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/983700/ft1_filtered_4FGL_J1254.2-2205_daily_bin1399.fits
Spacecraft file(s): /scratch/kocevski/983700/ft2_4FGL_J1254.2-2205_daily_bin1399.fits
Exposure map: /scratch/kocevski/983700/expmap_601948801_602208001_4FGL_J1254.2-2205_daily_bin1399.fits
Exposure cube: /scratch/kocevski/983700/ltcube_601948801_602208001_4FGL_J1254.2-2205_daily_bin1399.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/983700/Model_4FGL_J1254.2-2205_daily_bin1399.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) = 7509.96352364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15223E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.683       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4196       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .52014       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8410       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .64204E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.608       1.0000         .10000E-03   10000.    
    13 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .43228E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3435       1.0000         .10000E-03   10000.    
    16 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1768       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14306E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5630       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94801       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7509.925     FROM MIGRAD    STATUS=CONVERGED   1046 CALLS     3294 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0994        .18142E-02** at limit **
   2  Prefactor     .10000E-03    32.215        .18142E-02** at limit **
   3  Prefactor     19.716        33.173        .90277E-04   -.66995E-04
   4  Prefactor     7.4134        19.539        .14724E-03   -.10393E-03
   5  Prefactor     .10001E-03    68.610        .18142E-02** at limit **
   6  Prefactor     .53053        181.88        .70045E-02    .44452E-04
   7  Prefactor     .10000E-03    1.9569        .11810E-02** at limit **
   8  Prefactor     4.8420        2.2002        .84083E-04    .50027E-05
   9  Prefactor     .10000E-03    4.0800        .17081E-02** at limit **
  10  Prefactor     .10087E-03    14.585        .75003E-01** at limit **
  11  norm          .10000E-03    1.7704        .13965E-02** at limit **
  12  Prefactor     58.551        98.709        .52405E-04   -.11376E-03
  13  norm          .10000E-03    8.7727        .36285E-03** at limit **
  14  norm          .10034E-03    42.240        .29800E-02** at limit **
  15  Prefactor     6.3449        5.5750        .15937E-03   -.55750E-03
  16  norm          .10000E-03    13.607        .33551E-02** at limit **
  17  norm          .10000E-03    1.9193        .16195E-02** at limit **
  18  Prefactor     1.1694        25.719        .42201E-03   -.82838E-04
  19  Prefactor     .10000E-03    11.109        .18142E-02** at limit **
  20  Prefactor     .10000E-03    12.883        .18142E-02** at limit **
  21  Prefactor     .10000E-03    6.6292        .18142E-02** at limit **
  22  Prefactor     .10000E-03    30.305        .36285E-03** at limit **
  23  Normalizat    1.5632        .30691        .33881E-03   -.36295E-03
  24  Prefactor     .94814        .13970        .19427E-03   -.64686E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.7163
  Prefactor  = 7.41339
  Prefactor  = 0.000100014
  Prefactor  = 0.530525
  Prefactor  = 0.0001
  Prefactor  = 4.84201
  Prefactor  = 0.0001
  Prefactor  = 0.000100873
  norm       = 0.0001
  Prefactor  = 58.5515
  norm       = 0.0001
  norm       = 0.000100344
  Prefactor  = 6.34491
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.16939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.5632
  Prefactor  = 0.948139
 **********
 **   18 **HESSE 
 **********

 FCN=   7509.925     FROM HESSE     STATUS=OK           387 CALLS     3681 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1006        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.216        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.716        33.128        .36111E-05   -1.4820    
   4  Prefactor     7.4134        19.535        .58896E-05   -1.5163    
   5  Prefactor     .10001E-03    68.613        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .53053        187.52        .28018E-02   -1.5562    
   7  Prefactor     .10000E-03    1.9570        .23621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8420        2.2000        .33633E-05   -1.5268    
   9  Prefactor     .10000E-03    4.0802        .34162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10087E-03    12.772        .81373E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.7833        .27930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     58.551        98.409        .10481E-04   -1.4176    
  13  norm          .10000E-03    8.7733        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10034E-03    42.791        .59600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.3449        5.5708        .63747E-05   -1.5204    
  16  norm          .10000E-03    13.730        .67102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9292        .32390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1694        25.703        .16881E-04   -1.5492    
  19  Prefactor     .10000E-03    11.112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.6301        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    30.307        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5632        .30705        .67762E-04   -.76018    
  24  Prefactor     .94814        .13969        .38855E-04   -.94479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.10595e-09
Minuit parameter uncertainties:
  1  4.04929e-05
  2  0.000139608
  3  33.1593
  4  19.5519
  5  0.00195588
  6  20.0097
  7  6.88729e-06
  8  2.20005
  9  6.10764e-06
  10  0.00667852
  11  3.85291e-05
  12  98.6837
  13  3.23891e-05
  14  0.00767496
  15  5.57129
  16  0.000134184
  17  6.11283e-05
  18  10.9696
  19  3.72207e-05
  20  1.30785e-05
  21  7.64158e-06
  22  0.00026196
  23  0.307415
  24  0.139741
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  5.855e+01  9.868e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.191e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  2.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  9.481e-01  1.397e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.563e+00  3.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.45
Ra Dec: 193.552 -22.087
Photon Flux Upper Limit: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/983700/likelihoodResults_601948801_602208001_4FGL_J1254.2-2205_daily_bin1399.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): 0
logL (Free Index) = 7509.37245944
delta logL = 0.552773047445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7509.33824624
delta logL = 0.586986247078

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7509.338     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      331 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.636        513.47        .10123E-03    .11343E-04
   2  Index         3.1900        3.9179        .48341E-02    .46483E-04
   3  Normalizat    1.4912        .30899        .34512E-03    .10202E-03
   4  Prefactor     .96651        .14342        .19250E-03   -.22553E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6362
  Index      = 3.18997
  Normalizat = 1.49124
  Prefactor  = 0.966506
 **********
 **   18 **HESSE 
 **********

 FCN=   7509.338     FROM HESSE     STATUS=OK            25 CALLS      356 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.636        39.381        .40492E-05   -1.4917    
   2  Index         3.1900        1.0057        .19336E-03   -.37042    
   3  Normalizat    1.4912        .30524        .13805E-04   -.78025    
   4  Prefactor     .96651        .13879        .38500E-04   -.93854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46263e-10
Minuit parameter uncertainties:
  1  39.4468
  2  1.01368
  3  0.305617
  4  0.138836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983700': 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) = 7509.3382236
delta logL = 0.58700889043

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.564e+01  3.945e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  3.190e+00  1.014e+00  0.000e+00  1.000e+01 (-1.000e+00)
285        Scale:  2.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  9.665e-01  1.388e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.491e+00  3.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 193.552 -22.087
Photon Index (Free Index): 3.19 +/- 1.01
Photon Flux (Free Index): 1.01e-07 +/- 8.92e-08
Energy Flux (Free Index): 1.86e-05 +/- 1.63e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/983700/cmap_HighResolution_601948801_602208001_4FGL_J1254.2-2205_daily_bin1399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', energy_flux2='1.86e-05', dlogl='5.87e-01', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-06 09:07:07.693386', photon_index_error2='1.01', photon_index2='3.19', ts='0.45', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.63e-05', EG='1.56', time_epoch_completed='1630944427.69', return_code='0', job_id='983700', GAL2='0.97', EG2='1.49', return_code2='0', photon_flux_error2='8.92e-08', ts2='1.68', photon_index='2.19' WHERE bin_id='1399' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:07:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 983700: <4FGL_J1254.2-2205_daily_bin1399> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1399> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 08:50:46 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:50:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 08:50:48 2021
Terminated at Mon Sep  6 09:07:08 2021
Results reported at Mon Sep  6 09:07:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1399 193.552 -22.0872 601948801 602208001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.2-2205 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   833.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            982 sec.

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

