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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1155
RA = 193.552, Dec = -22.0872
tmin = 538704001, tmax = 538963201
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='981990', job_status='RUN', time_executed='2021-09-06 08:46:38.200699', time_epoch_executed='1630943198.2' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/981990

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/981990/ft1_4FGL_J1254.2-2205_daily_bin1155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/981990/ft2_4FGL_J1254.2-2205_daily_bin1155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/981990/ft1_4FGL_J1254.2-2205_daily_bin1155.fits outfile=/scratch/kocevski/981990/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1155.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=538704001.0 tmax=538963201.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 4.25
user 3.25
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/981990/ft2_4FGL_J1254.2-2205_daily_bin1155.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/981990/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1155.fits evtable="EVENTS" outfile="/scratch/kocevski/981990/ft1_filtered_4FGL_J1254.2-2205_daily_bin1155.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.74
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/981990/ft1_filtered_4FGL_J1254.2-2205_daily_bin1155.fits" evtable="EVENTS" scfile=/scratch/kocevski/981990/ft2_4FGL_J1254.2-2205_daily_bin1155.fits sctable="SC_DATA" outfile=/scratch/kocevski/981990/ltcube_538704001_538963201_4FGL_J1254.2-2205_daily_bin1155.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/981990/ft2_4FGL_J1254.2-2205_daily_bin1155.fits
.....................!
real 12.25
user 11.78
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/981990/ft1_filtered_4FGL_J1254.2-2205_daily_bin1155.fits evtable="EVENTS" scfile=/scratch/kocevski/981990/ft2_4FGL_J1254.2-2205_daily_bin1155.fits sctable="SC_DATA" expcube=/scratch/kocevski/981990/ltcube_538704001_538963201_4FGL_J1254.2-2205_daily_bin1155.fits outfile=/scratch/kocevski/981990/expmap_538704001_538963201_4FGL_J1254.2-2205_daily_bin1155.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/981990/ltcube_538704001_538963201_4FGL_J1254.2-2205_daily_bin1155.fits
.....................!
real 192.72
user 185.38
sys 4.61

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/981990/ft1_filtered_4FGL_J1254.2-2205_daily_bin1155.fits scfile=/scratch/kocevski/981990/ft2_4FGL_J1254.2-2205_daily_bin1155.fits outfile=/scratch/kocevski/981990/cmap_538704001_538963201_4FGL_J1254.2-2205_daily_bin1155.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/981990/ft1_filtered_4FGL_J1254.2-2205_daily_bin1155.fits scfile=/scratch/kocevski/981990/ft2_4FGL_J1254.2-2205_daily_bin1155.fits outfile=/scratch/kocevski/981990/cmap_HighResolution_538704001_538963201_4FGL_J1254.2-2205_daily_bin1155.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.74
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/981990/ft1_filtered_4FGL_J1254.2-2205_daily_bin1155.fits evtable="EVENTS" scfile=/scratch/kocevski/981990/ft2_4FGL_J1254.2-2205_daily_bin1155.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/981990/Model_4FGL_J1254.2-2205_daily_bin1155.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/981990/ft1_filtered_4FGL_J1254.2-2205_daily_bin1155.fits.....................!
real 60.86
user 59.31
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10946E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4670       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.557       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6275       1.0000         .10000E-03   10000.    
    11 'norm      '    4.8632       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7615       1.0000         .10000E-03   10000.    
    13 'norm      '    9.9525       1.0000         .10000E-03   10000.    
    14 'norm      '    3.9448       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.2720       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1294       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4622       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2912       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4195       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94315       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=   7523.305     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2282 TOTAL
                     EDM=   .32E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6951       -.19632E-07** at limit **
   2  Prefactor     .10000E-03    16.526       -.32073E-06** at limit **
   3  Prefactor     .10000E-03    19.566        .14019E-06** at limit **
   4  Prefactor     .10000E-03    7.2924       -.22441E-07** at limit **
   5  Prefactor     .10000E-03    19.454        .14331E-06** at limit **
   6  Prefactor     .10000E-03    47.092       -.72228E-06** at limit **
   7  Prefactor     .10000E-03    2.1113       -.45753E-08** at limit **
   8  Prefactor     4.4671        2.0818        .16854E-08    .30701E-05
   9  Prefactor     18.560        14.714        .32962E-07   -.11247E-04
  10  Prefactor     1.6293        12.046       -.19830E-06    .60193E-05
  11  norm          4.8632        1.6080       -.68203E-08   -.84302E-04
  12  Prefactor     2.2000        1640.6       -.53029E-04    .90012E-06
  13  norm          9.9549        9.4448       -.10707E-06   -.16874E-04
  14  norm          3.9452        9.8280        .28964E-05    .29648E-05
  15  Prefactor     8.2753        6.9323       -.46472E-06   -.63937E-04
  16  norm          2.1295        4.6740        .59560E-07    .25173E-04
  17  norm          1.4623        1.5130       -.78204E-07   -.41924E-04
  18  Prefactor     .10000E-03    5.5124       -.43486E-07** at limit **
  19  Prefactor     .10000E-03    4.4300       -.32094E-07** at limit **
  20  Prefactor     .10000E-03    21.332        .73363E-07** at limit **
  21  Prefactor     7.2926        9.5889       -.10254E-06    .23679E-04
  22  Prefactor     .10000E-03    8.0413       -.44260E-07** at limit **
  23  Normalizat    1.4193        .25231        .39805E-06   -.31464E-05
  24  Prefactor     .94318        .11487       -.45377E-07    .68454E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.4671
  Prefactor  = 18.5597
  Prefactor  = 1.62933
  norm       = 4.86317
  Prefactor  = 2.19999
  norm       = 9.95494
  norm       = 3.94521
  Prefactor  = 8.27527
  norm       = 2.12947
  norm       = 1.46231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.29258
  Prefactor  = 0.0001
  Normalizat = 1.41934
  Prefactor  = 0.943181
 **********
 **   18 **HESSE 
 **********

 FCN=   7523.305     FROM HESSE     STATUS=OK           401 CALLS     2683 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7014        .13906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.2962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    47.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1190        .12305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4671        2.0817        .83010E-04   -1.5285    
   9  Prefactor     18.560        14.739        .92976E-04   -1.4846    
  10  Prefactor     1.6293        12.081        .33156E-03   -1.5453    
  11  norm          4.8632        1.6080        .59721E-04   -1.5267    
  12  Prefactor     2.2000        1790.4        .24494E-02   -1.5411    
  13  norm          9.9549        9.4472        .12702E-03   -1.5077    
  14  norm          3.9452        10.212        .20310E-03   -1.5311    
  15  Prefactor     8.2753        6.9127        .13939E-03   -1.5133    
  16  norm          2.1295        4.6574        .26836E-03   -1.5416    
  17  norm          1.4623        1.5253        .10576E-03   -1.5466    
  18  Prefactor     .10000E-03    5.5702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.4365        .17829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.2926        9.5836        .74271E-03   -1.5168    
  22  Prefactor     .10000E-03    8.1067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4193        .29532        .35513E-03   -.80071    
  24  Prefactor     .94318        .13497        .19662E-03   -.94648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05184e-12
Minuit parameter uncertainties:
  1  2.03092e-07
  2  1.12228e-05
  3  5.86001e-06
  4  4.24774e-07
  5  5.69178e-06
  6  3.27898e-05
  7  2.53355e-08
  8  2.08175
  9  14.7417
  10  8.87568
  11  1.60799
  12  129.619
  13  9.44862
  14  10.2169
  15  6.91332
  16  4.65815
  17  1.52533
  18  5.90263e-07
  19  5.13724e-07
  20  4.51892e-06
  21  9.58566
  22  6.931e-07
  23  0.295674
  24  0.135016
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  2.200e+00  1.296e+02  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.432e-01  1.350e-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.419e+00  2.957e-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.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/981990/likelihoodResults_538704001_538963201_4FGL_J1254.2-2205_daily_bin1155.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) = 7522.48842898
delta logL = 0.816461536057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7522.1842617
delta logL = 1.12062881815

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16044E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.8955       1.0000          .0000       10.000    
     3 'Normalizat'    1.2576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98889       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.

 FCN=   7522.184     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      290 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15911E-01    .13091        .16829E-02    .83398E-02
   2  Index         5.8991        1.5443        .94498E-01    .22665E-03
   3  Normalizat    1.2577        .57305E-01    .84206E-01   -.41639E-04
   4  Prefactor     .98880        .26664E-01    .46128E-01   -.11893E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0159108
  Index      = 5.89915
  Normalizat = 1.25767
  Prefactor  = 0.988802
 **********
 **   18 **HESSE 
 **********

 FCN=   7522.184     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      321 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15911E-01    .38550        .75610E-05   -1.5683    
   2  Index         5.8991        3.2145        .33367E-02    .18081    
   3  Normalizat    1.2577        .25395        .37283E-03   -.84839    
   4  Prefactor     .98880        .11497        .19235E-03   -.93104    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.90516e-07
Minuit parameter uncertainties:
  1  0.156143
  2  3.50324
  3  0.254205
  4  0.114996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/981990': 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) = 7522.18425739
delta logL = 1.12063312319

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.591e-02  1.561e-01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  5.899e+00  3.503e+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.888e-01  1.150e-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.258e+00  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 193.552 -22.087
Photon Index (Free Index): 5.90 +/- 3.50
Photon Flux (Free Index): 1.55e-07 +/- 1.09e-07
Energy Flux (Free Index): 1.94e-05 +/- 1.41e-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/981990/cmap_HighResolution_538704001_538963201_4FGL_J1254.2-2205_daily_bin1155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.80e-03', comment='SUCCESS', energy_flux2='1.94e-05', dlogl='1.12e+00', photon_flux2='1.55e-07', job_status='DONE', time_completed='2021-09-06 08:59:39.870396', photon_index_error2='3.50', photon_index2='5.90', ts='0.00', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.41e-05', EG='1.42', time_epoch_completed='1630943979.87', return_code='0', job_id='981990', GAL2='0.99', EG2='1.26', return_code2='102', photon_flux_error2='1.09e-07', ts2='2.49', photon_index='2.19' WHERE bin_id='1155' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:59:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 981990: <4FGL_J1254.2-2205_daily_bin1155> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1155> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 08:45:51 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:45: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:45:53 2021
Terminated at Mon Sep  6 08:59:40 2021
Results reported at Mon Sep  6 08:59:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1155 193.552 -22.0872 538704001 538963201 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 :                                   746.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

