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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1450
RA = 193.552, Dec = -22.0872
tmin = 615168001, tmax = 615427201
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='983773', job_status='RUN', time_executed='2021-09-06 08:51:24.874531', time_epoch_executed='1630943484.87' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983773

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983773/ft1_4FGL_J1254.2-2205_daily_bin1450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983773/ft2_4FGL_J1254.2-2205_daily_bin1450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983773/ft1_4FGL_J1254.2-2205_daily_bin1450.fits outfile=/scratch/kocevski/983773/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1450.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=615168001.0 tmax=615427201.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.62
user 3.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/983773/ft2_4FGL_J1254.2-2205_daily_bin1450.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/983773/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1450.fits evtable="EVENTS" outfile="/scratch/kocevski/983773/ft1_filtered_4FGL_J1254.2-2205_daily_bin1450.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.68
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983773/ft1_filtered_4FGL_J1254.2-2205_daily_bin1450.fits" evtable="EVENTS" scfile=/scratch/kocevski/983773/ft2_4FGL_J1254.2-2205_daily_bin1450.fits sctable="SC_DATA" outfile=/scratch/kocevski/983773/ltcube_615168001_615427201_4FGL_J1254.2-2205_daily_bin1450.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/983773/ft2_4FGL_J1254.2-2205_daily_bin1450.fits
.....................!
real 12.20
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983773/ft1_filtered_4FGL_J1254.2-2205_daily_bin1450.fits evtable="EVENTS" scfile=/scratch/kocevski/983773/ft2_4FGL_J1254.2-2205_daily_bin1450.fits sctable="SC_DATA" expcube=/scratch/kocevski/983773/ltcube_615168001_615427201_4FGL_J1254.2-2205_daily_bin1450.fits outfile=/scratch/kocevski/983773/expmap_615168001_615427201_4FGL_J1254.2-2205_daily_bin1450.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/983773/ltcube_615168001_615427201_4FGL_J1254.2-2205_daily_bin1450.fits
.....................!
real 190.09
user 185.20
sys 4.24

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/983773/ft1_filtered_4FGL_J1254.2-2205_daily_bin1450.fits scfile=/scratch/kocevski/983773/ft2_4FGL_J1254.2-2205_daily_bin1450.fits outfile=/scratch/kocevski/983773/cmap_615168001_615427201_4FGL_J1254.2-2205_daily_bin1450.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983773/ft1_filtered_4FGL_J1254.2-2205_daily_bin1450.fits scfile=/scratch/kocevski/983773/ft2_4FGL_J1254.2-2205_daily_bin1450.fits outfile=/scratch/kocevski/983773/cmap_HighResolution_615168001_615427201_4FGL_J1254.2-2205_daily_bin1450.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/983773/ft1_filtered_4FGL_J1254.2-2205_daily_bin1450.fits evtable="EVENTS" scfile=/scratch/kocevski/983773/ft2_4FGL_J1254.2-2205_daily_bin1450.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/983773/Model_4FGL_J1254.2-2205_daily_bin1450.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/983773/ft1_filtered_4FGL_J1254.2-2205_daily_bin1450.fits.....................!
real 63.46
user 61.99
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1239       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.816       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14406E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.893       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.190       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1923       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2348       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.481       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.906       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1323       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5957       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3862       1.0000         .10000E-03   10000.    
    17 'norm      '    .52814       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.234       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0706       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0628       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=   8058.061     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     3427 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1139        8.4797       -.24380E-06   -.18469E-03
   2  Prefactor     21.812        44.090       -.28380E-06   -.22148E-04
   3  Prefactor     .10000E-03    204.63       -.29925E-05** at limit **
   4  Prefactor     35.884        29.074       -.75728E-06   -.39766E-04
   5  Prefactor     15.205        43.161        .31759E-05    .84995E-04
   6  Prefactor     .10000E-03    5.0422       -.41325E-07** at limit **
   7  Prefactor     9.1919        6.6756       -.73598E-08   -.18156E-04
   8  Prefactor     6.2348        2.4909       -.54046E-08   -.66917E-05
   9  Prefactor     15.480        11.955        .11745E-06    .27795E-04
  10  Prefactor     27.903        15.710        .61370E-06    .24208E-03
  11  norm          1.1324        .77744        .22668E-07   -.64177E-04
  12  Prefactor     .10000E-03    22.633       -.44138E-07** at limit **
  13  norm          .10000E-03    5.8447        .43719E-07** at limit **
  14  norm          1.5943        3.6532        .62449E-06   -.13377E-03
  15  Prefactor     .10000E-03    3.3871       -.16590E-06** at limit **
  16  norm          1.3858        2.9619        .48108E-06   -.94146E-04
  17  norm          .52872        2.1468        .14003E-05   -.34030E-03
  18  Prefactor     .10000E-03    12.245        .13556E-06** at limit **
  19  Prefactor     .10000E-03    4.4092       -.22715E-07** at limit **
  20  Prefactor     .10000E-03    8.5756       -.43865E-07** at limit **
  21  Prefactor     .10000E-03    3.6068       -.45369E-08** at limit **
  22  Prefactor     24.235        13.616       -.18237E-06   -.12923E-03
  23  Normalizat    1.0709        .24232       -.37827E-06   -.29012E-04
  24  Prefactor     1.0627        .11292       -.18835E-06   -.52632E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.11387
  Prefactor  = 21.8125
  Prefactor  = 0.000100001
  Prefactor  = 35.8841
  Prefactor  = 15.2055
  Prefactor  = 0.0001
  Prefactor  = 9.19185
  Prefactor  = 6.23476
  Prefactor  = 15.4801
  Prefactor  = 27.9033
  norm       = 1.13238
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.59426
  Prefactor  = 0.0001
  norm       = 1.38579
  norm       = 0.52872
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2353
  Normalizat = 1.07093
  Prefactor  = 1.06271
 **********
 **   18 **HESSE 
 **********

 FCN=   8058.061     FROM HESSE     STATUS=OK           399 CALLS     3826 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1139        8.5266        .15029E-03   -1.5174    
   2  Prefactor     21.812        44.107        .85755E-04   -1.4774    
   3  Prefactor     .10000E-03    207.59        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.884        29.432        .66893E-04   -1.4509    
   5  Prefactor     15.205        44.879        .10277E-03   -1.4928    
   6  Prefactor     .10000E-03    5.0446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.1919        6.6860        .13219E-03   -1.5102    
   8  Prefactor     6.2348        2.4943        .84565E-04   -1.5209    
   9  Prefactor     15.480        11.961        .10180E-03   -1.4921    
  10  Prefactor     27.903        16.027        .75839E-04   -1.4651    
  11  norm          1.1324        .76042        .63338E-04   -1.5495    
  12  Prefactor     .10000E-03    22.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.8754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5943        3.6293        .25091E-03   -1.5455    
  15  Prefactor     .10000E-03    3.4628        .32187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3858        2.9383        .22071E-03   -1.5473    
  17  norm          .52872        2.2582        .25476E-03   -1.5563    
  18  Prefactor     .10000E-03    12.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.4119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.5820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.6112        .16649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.235        13.665        .81371E-04   -1.4723    
  23  Normalizat    1.0709        .27887        .39046E-03   -.90691    
  24  Prefactor     1.0627        .13049        .18466E-03   -.90667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57533e-10
Minuit parameter uncertainties:
  1  8.52805
  2  44.1729
  3  0.00102185
  4  29.4435
  5  44.9793
  6  1.57349e-06
  7  6.68653
  8  2.49436
  9  11.9633
  10  16.0297
  11  0.760431
  12  9.43129e-06
  13  2.19311e-06
  14  3.62976
  15  1.31093e-05
  16  2.93865
  17  2.18532
  18  1.79048e-05
  19  4.01408e-06
  20  2.26685e-06
  21  4.38985e-07
  22  13.6672
  23  0.279251
  24  0.130529
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  9.431e-06  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.063e+00  1.305e-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.071e+00  2.793e-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: 6.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/983773/likelihoodResults_615168001_615427201_4FGL_J1254.2-2205_daily_bin1450.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) = 8058.06095154
delta logL = -0.000210341654565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8058.060742
delta logL = -7.99951521913e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4669       1.0000          .0000       10.000    
     3 'Normalizat'    1.0709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0627       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=   8058.061     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      269 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10156E-03    100.35        .18142E-02** at limit **
   2  Index         2.4067        5.5308        .50000        .14059E-04
   3  Normalizat    1.0709        .14473E-01    .39046E-03   -.17578E-03
   4  Prefactor     1.0627        .68692E-02    .18466E-03   -.10196E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101563
  Index      = 2.40669
  Normalizat = 1.07094
  Prefactor  = 1.06271
 **********
 **   18 **HESSE 
 **********

 FCN=   8058.061     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      298 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10156E-03    439.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4067        8.6382        .50000       -.54529    
   3  Normalizat    1.0709        .31100E-01    .15618E-04   -.90690    
   4  Prefactor     1.0627        .14760E-01    .36932E-04   -.90667    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.47954e-08
Minuit parameter uncertainties:
  1  0.052822
  2  472.903
  3  0.0311002
  4  0.0147604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983773': 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) = 8058.06074179
delta logL = -5.91572643316e-07

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.016e-04  5.282e-02  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.407e+00  4.729e+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.063e+00  1.476e-02  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.071e+00  3.110e-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/983773/cmap_HighResolution_615168001_615427201_4FGL_J1254.2-2205_daily_bin1450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-03', job_status='DONE', photon_flux_upper_limit='6.44e-08', time_completed='2021-09-06 09:06:32.594384', job_id='983773', GAL2='1.06', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630944392.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-5.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1450' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:06:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 983773: <4FGL_J1254.2-2205_daily_bin1450> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1450 193.552 -22.0872 615168001 615427201 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 :                                   876.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

