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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1489
RA = 193.552, Dec = -22.0872
tmin = 625276801, tmax = 625536001
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='983823', job_status='RUN', time_executed='2021-09-06 08:51:22.162201', time_epoch_executed='1630943482.16' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983823

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983823/ft1_4FGL_J1254.2-2205_daily_bin1489.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983823/ft2_4FGL_J1254.2-2205_daily_bin1489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983823/ft1_4FGL_J1254.2-2205_daily_bin1489.fits outfile=/scratch/kocevski/983823/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1489.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=625276801.0 tmax=625536001.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.54
user 3.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/983823/ft2_4FGL_J1254.2-2205_daily_bin1489.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/983823/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1489.fits evtable="EVENTS" outfile="/scratch/kocevski/983823/ft1_filtered_4FGL_J1254.2-2205_daily_bin1489.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983823/ft1_filtered_4FGL_J1254.2-2205_daily_bin1489.fits" evtable="EVENTS" scfile=/scratch/kocevski/983823/ft2_4FGL_J1254.2-2205_daily_bin1489.fits sctable="SC_DATA" outfile=/scratch/kocevski/983823/ltcube_625276801_625536001_4FGL_J1254.2-2205_daily_bin1489.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/983823/ft2_4FGL_J1254.2-2205_daily_bin1489.fits
.....................!
real 11.61
user 11.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983823/ft1_filtered_4FGL_J1254.2-2205_daily_bin1489.fits evtable="EVENTS" scfile=/scratch/kocevski/983823/ft2_4FGL_J1254.2-2205_daily_bin1489.fits sctable="SC_DATA" expcube=/scratch/kocevski/983823/ltcube_625276801_625536001_4FGL_J1254.2-2205_daily_bin1489.fits outfile=/scratch/kocevski/983823/expmap_625276801_625536001_4FGL_J1254.2-2205_daily_bin1489.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/983823/ltcube_625276801_625536001_4FGL_J1254.2-2205_daily_bin1489.fits
.....................!
real 190.27
user 185.48
sys 4.47

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/983823/ft1_filtered_4FGL_J1254.2-2205_daily_bin1489.fits scfile=/scratch/kocevski/983823/ft2_4FGL_J1254.2-2205_daily_bin1489.fits outfile=/scratch/kocevski/983823/cmap_625276801_625536001_4FGL_J1254.2-2205_daily_bin1489.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983823/ft1_filtered_4FGL_J1254.2-2205_daily_bin1489.fits scfile=/scratch/kocevski/983823/ft2_4FGL_J1254.2-2205_daily_bin1489.fits outfile=/scratch/kocevski/983823/cmap_HighResolution_625276801_625536001_4FGL_J1254.2-2205_daily_bin1489.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/983823/ft1_filtered_4FGL_J1254.2-2205_daily_bin1489.fits', '/scratch/kocevski/983823/ft2_4FGL_J1254.2-2205_daily_bin1489.fits', expMap='/scratch/kocevski/983823/expmap_625276801_625536001_4FGL_J1254.2-2205_daily_bin1489.fits', expCube='/scratch/kocevski/983823/ltcube_625276801_625536001_4FGL_J1254.2-2205_daily_bin1489.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/983823/Model_4FGL_J1254.2-2205_daily_bin1489.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/983823/ft1_filtered_4FGL_J1254.2-2205_daily_bin1489.fits
Spacecraft file(s): /scratch/kocevski/983823/ft2_4FGL_J1254.2-2205_daily_bin1489.fits
Exposure map: /scratch/kocevski/983823/expmap_625276801_625536001_4FGL_J1254.2-2205_daily_bin1489.fits
Exposure cube: /scratch/kocevski/983823/ltcube_625276801_625536001_4FGL_J1254.2-2205_daily_bin1489.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/983823/Model_4FGL_J1254.2-2205_daily_bin1489.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) = 7079.21796055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.469       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.777       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10662E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.314       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5510       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2299       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1934       1.0000         .10000E-03   10000.    
    11 'norm      '    8.3853       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.1753       1.0000         .10000E-03   10000.    
    14 'norm      '    14.891       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .98143E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .96096       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22747E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3311       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1042       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.

 FCN=   7079.214     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2794 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.470        14.766        .17256E-06   -.30354E-04
   2  Prefactor     .10004E-03    99.933        .66827E-05** at limit **
   3  Prefactor     43.781        46.236        .24562E-06    .18072E-04
   4  Prefactor     .10000E-03    28.135       -.95594E-06** at limit **
   5  Prefactor     .10001E-03    162.05        .29090E-05** at limit **
   6  Prefactor     12.327        27.308        .19498E-06   -.18505E-04
   7  Prefactor     .10000E-03    4.6209       -.11242E-06** at limit **
   8  Prefactor     5.5527        2.9074       -.14789E-06   -.70257E-04
   9  Prefactor     9.2318        9.0555       -.10781E-06   -.98886E-04
  10  Prefactor     5.1964        14.559        .72481E-05   -.20328E-05
  11  norm          8.3867        2.1333        .48598E-07   -.54264E-05
  12  Prefactor     .10002E-03    47.249       -.48577E-05** at limit **
  13  norm          6.1774        8.2320       -.58617E-06   -.38718E-03
  14  norm          14.890        7.2756       -.13878E-07    .60104E-05
  15  Prefactor     .10000E-03    7.6133        .44921E-07** at limit **
  16  norm          .10000E-03    4.4062        .76589E-07** at limit **
  17  norm          .14851        1.6971        .60791E-07    .45083E-04
  18  Prefactor     1.0016        9.9331        .11943E-05   -.17751E-03
  19  Prefactor     .10372E-03    19.887       -.38031E-05** at limit **
  20  Prefactor     .10001E-03    36.462        .40455E-05** at limit **
  21  Prefactor     .10000E-03    19.408        .30688E-06** at limit **
  22  Prefactor     .10000E-03    7.5034        .42635E-07** at limit **
  23  Normalizat    1.3313        .31345       -.16134E-05    .11383E-03
  24  Prefactor     1.1038        .13888       -.25817E-07    .85933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.4705
  Prefactor  = 0.000100037
  Prefactor  = 43.7815
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  Prefactor  = 12.3266
  Prefactor  = 0.0001
  Prefactor  = 5.55273
  Prefactor  = 9.23177
  Prefactor  = 5.1964
  norm       = 8.38674
  Prefactor  = 0.000100021
  norm       = 6.17735
  norm       = 14.8895
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.148513
  Prefactor  = 1.00161
  Prefactor  = 0.000103723
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3313
  Prefactor  = 1.10381
 **********
 **   18 **HESSE 
 **********

 FCN=   7079.214     FROM HESSE     STATUS=OK           401 CALLS     3195 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.470        14.760        .98693E-04   -1.4896    
   2  Prefactor     .10004E-03    103.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     43.781        46.204        .60592E-04   -1.4384    
   4  Prefactor     .10000E-03    28.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    163.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.327        27.288        .11415E-03   -1.5006    
   7  Prefactor     .10000E-03    4.6628        .17653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.5527        2.9051        .99815E-04   -1.5237    
   9  Prefactor     9.2318        9.0577        .13192E-03   -1.5100    
  10  Prefactor     5.1964        14.951        .88199E-03   -1.5252    
  11  norm          8.3867        2.1319        .58216E-04   -1.5129    
  12  Prefactor     .10002E-03    49.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.1774        8.2981        .16155E-03   -1.5211    
  14  norm          14.890        7.2451        .10379E-03   -1.4936    
  15  Prefactor     .10000E-03    7.9270        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.4665        .17245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .14851        14.398        .21016E-02   -1.5631    
  18  Prefactor     1.0016        40.820        .50447E-02   -1.5508    
  19  Prefactor     .10372E-03    180.04        .66540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    37.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.5114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3313        .36202        .41004E-03   -.82637    
  24  Prefactor     1.1038        .16429        .20375E-03   -.89345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05413e-08
Minuit parameter uncertainties:
  1  14.7629
  2  0.00394131
  3  46.2421
  4  0.000328519
  5  0.00202807
  6  27.3154
  7  1.33943e-05
  8  2.90516
  9  9.05905
  10  14.9617
  11  2.13187
  12  0.00203184
  13  8.29965
  14  7.24555
  15  1.39e-05
  16  6.54869e-06
  17  2.9243
  18  12.7971
  19  0.0519356
  20  0.00148355
  21  6.20465e-05
  22  2.37215e-05
  23  0.36271
  24  0.16437
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  2.032e-03  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:  1.104e+00  1.644e-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.331e+00  3.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.552 -22.087
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/983823/likelihoodResults_625276801_625536001_4FGL_J1254.2-2205_daily_bin1489.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) = 7079.21407482
delta logL = -9.66294228419e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7079.21397947
delta logL = -1.27703879116e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16499E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3827       1.0000          .0000       10.000    
     3 'Normalizat'    1.3313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1038       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=   7079.214     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      277 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10245E-03    13.845        .18142E-01** at limit **
   2  Index         2.3092        8.7707        .50000        .89096E-05
   3  Normalizat    1.3313        .43939E-02    .41004E-03    .43529E-04
   4  Prefactor     1.1038        .20260E-02    .20375E-03    .91708E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102447
  Index      = 2.30917
  Normalizat = 1.3313
  Prefactor  = 1.10381
 **********
 **   18 **HESSE 
 **********

 FCN=   7079.214     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10245E-03    100.56        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3092        5.5920        .50000       -.56826    
   3  Normalizat    1.3313        .11860E-01    .16402E-04   -.82637    
   4  Prefactor     1.1038        .54687E-02    .40750E-04   -.89345    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.13612e-10
Minuit parameter uncertainties:
  1  0.0314256
  2  192.458
  3  0.0118603
  4  0.00546868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983823': 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) = 7079.21397843
delta logL = -2.3997927201e-07

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.024e-04  3.143e-02  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.309e+00  1.925e+02  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:  1.104e+00  5.469e-03  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.331e+00  1.186e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.552 -22.087

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/983823/cmap_HighResolution_625276801_625536001_4FGL_J1254.2-2205_daily_bin1489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.69e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-06 09:04:29.784224', job_id='983823', GAL2='1.10', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630944269.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-2.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1489' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:04:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 983823: <4FGL_J1254.2-2205_daily_bin1489> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1489> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 08:50:55 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:50:56 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:56 2021
Terminated at Mon Sep  6 09:04:30 2021
Results reported at Mon Sep  6 09:04:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1489 193.552 -22.0872 625276801 625536001 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 :                                   748.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            815 sec.

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

