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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1592
RA = 193.552, Dec = -22.0872
tmin = 651974401, tmax = 652233601
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='984959', job_status='RUN', time_executed='2021-09-06 08:57:43.793406', time_epoch_executed='1630943863.79' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984959

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984959/ft1_4FGL_J1254.2-2205_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984959/ft2_4FGL_J1254.2-2205_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984959/ft1_4FGL_J1254.2-2205_daily_bin1592.fits outfile=/scratch/kocevski/984959/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1592.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=651974401.0 tmax=652233601.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.53
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984959/ft1_filtered_4FGL_J1254.2-2205_daily_bin1592.fits" evtable="EVENTS" scfile=/scratch/kocevski/984959/ft2_4FGL_J1254.2-2205_daily_bin1592.fits sctable="SC_DATA" outfile=/scratch/kocevski/984959/ltcube_651974401_652233601_4FGL_J1254.2-2205_daily_bin1592.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/984959/ft2_4FGL_J1254.2-2205_daily_bin1592.fits
.....................!
real 12.11
user 11.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984959/ft1_filtered_4FGL_J1254.2-2205_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/984959/ft2_4FGL_J1254.2-2205_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/984959/ltcube_651974401_652233601_4FGL_J1254.2-2205_daily_bin1592.fits outfile=/scratch/kocevski/984959/expmap_651974401_652233601_4FGL_J1254.2-2205_daily_bin1592.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/984959/ltcube_651974401_652233601_4FGL_J1254.2-2205_daily_bin1592.fits
.....................!
real 192.48
user 185.72
sys 5.86

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/984959/ft1_filtered_4FGL_J1254.2-2205_daily_bin1592.fits scfile=/scratch/kocevski/984959/ft2_4FGL_J1254.2-2205_daily_bin1592.fits outfile=/scratch/kocevski/984959/cmap_651974401_652233601_4FGL_J1254.2-2205_daily_bin1592.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.63
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984959/ft1_filtered_4FGL_J1254.2-2205_daily_bin1592.fits scfile=/scratch/kocevski/984959/ft2_4FGL_J1254.2-2205_daily_bin1592.fits outfile=/scratch/kocevski/984959/cmap_HighResolution_651974401_652233601_4FGL_J1254.2-2205_daily_bin1592.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.57
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/984959/ft1_filtered_4FGL_J1254.2-2205_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/984959/ft2_4FGL_J1254.2-2205_daily_bin1592.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/984959/Model_4FGL_J1254.2-2205_daily_bin1592.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/984959/ft1_filtered_4FGL_J1254.2-2205_daily_bin1592.fits.....................!
real 60.61
user 57.99
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.263       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13973E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    122.62       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9380       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8055       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.207       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7603       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.3642       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.6475       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.465       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1059       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7969       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83587       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=   7170.576     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2706 TOTAL
                     EDM=   .70E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.263        9.3590        .78124E-06    .24765E-04
   2  Prefactor     .10000E-03    22.940       -.75593E-06** at limit **
   3  Prefactor     .10000E-03    15.664       -.24254E-06** at limit **
   4  Prefactor     .10000E-03    33.842       -.92865E-05** at limit **
   5  Prefactor     122.53        62.780       -.33963E-06   -.84221E-05
   6  Prefactor     2.9352        46.143        .26360E-06   -.21041E-05
   7  Prefactor     .10000E-03    4.1133        .72501E-07** at limit **
   8  Prefactor     4.8053        2.3662        .62215E-10   -.12145E-04
   9  Prefactor     13.207        12.010       -.91467E-08   -.50764E-06
  10  Prefactor     4.7594        12.698        .26909E-06    .11394E-06
  11  norm          .10000E-03    .32089        .40094E-07** at limit **
  12  Prefactor     .10000E-03    28.533        .16754E-06** at limit **
  13  norm          .10000E-03    13.332        .67708E-06** at limit **
  14  norm          3.3639        3.8560        .35358E-07    .36275E-05
  15  Prefactor     .10000E-03    1.8140        .94958E-07** at limit **
  16  norm          5.6473        4.9602        .15485E-07   -.16436E-05
  17  norm          .10000E-03    .73427        .48949E-07** at limit **
  18  Prefactor     14.465        10.514       -.97131E-08   -.77360E-06
  19  Prefactor     .10000E-03    5.3797        .85994E-07** at limit **
  20  Prefactor     .10000E-03    18.419        .96782E-07** at limit **
  21  Prefactor     4.1037        11.515        .31614E-06   -.39286E-06
  22  Prefactor     .10000E-03    3.6396        .52319E-07** at limit **
  23  Normalizat    1.7971        .27020        .51478E-06   -.19871E-04
  24  Prefactor     .83584        .11985       -.48469E-06    .45711E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 122.529
  Prefactor  = 2.93515
  Prefactor  = 0.0001
  Prefactor  = 4.80527
  Prefactor  = 13.2073
  Prefactor  = 4.75937
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.36391
  Prefactor  = 0.0001
  norm       = 5.64735
  norm       = 0.0001
  Prefactor  = 14.4645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.10373
  Prefactor  = 0.0001
  Normalizat = 1.79705
  Prefactor  = 0.835839
 **********
 **   18 **HESSE 
 **********

 FCN=   7170.576     FROM HESSE     STATUS=OK           397 CALLS     3103 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.263        9.3783        .57195E-03   -1.5007    
   2  Prefactor     .10000E-03    22.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     122.53        62.735        .18173E-03   -1.3490    
   6  Prefactor     2.9352        46.186        .23696E-03   -1.5365    
   7  Prefactor     .10000E-03    4.1525        .16759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8053        2.3646        .88634E-04   -1.5270    
   9  Prefactor     13.207        12.016        .11022E-03   -1.4981    
  10  Prefactor     4.7594        12.749        .18441E-03   -1.5272    
  11  norm          .10000E-03    .32674        .46807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.3639        3.8527        .17253E-03   -1.5341    
  15  Prefactor     .10000E-03    1.8184        .11135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.6473        4.9622        .16904E-03   -1.5233    
  17  norm          .10000E-03    .73558        .70860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.465        10.519        .10531E-03   -1.4947    
  19  Prefactor     .10000E-03    5.3901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.1037        11.506        .19895E-03   -1.5303    
  22  Prefactor     .10000E-03    3.6419        .15777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.7971        .31943        .33559E-03   -.69741    
  24  Prefactor     .83584        .14135        .20949E-03   -.98420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8645e-11
Minuit parameter uncertainties:
  1  9.37946
  2  2.72518e-05
  3  3.89579e-05
  4  2.71439e-05
  5  62.7687
  6  23.3074
  7  1.31537e-07
  8  2.36469
  9  12.0184
  10  12.7564
  11  2.68576e-08
  12  3.3476e-05
  13  9.8103e-06
  14  3.85294
  15  2.12256e-08
  16  4.96261
  17  9.29395e-08
  18  10.5206
  19  3.92923e-07
  20  1.64192e-05
  21  11.5117
  22  8.92489e-08
  23  0.319804
  24  0.141414
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  3.348e-05  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:  8.358e-01  1.414e-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.797e+00  3.198e-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: 8.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/984959/likelihoodResults_651974401_652233601_4FGL_J1254.2-2205_daily_bin1592.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) = 7170.57615689
delta logL = -0.000166834197444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7170.57599185
delta logL = -1.80061124411e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11178E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9085       1.0000          .0000       10.000    
     3 'Normalizat'    1.7970       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83584       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=   7170.576     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      281 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10847E-03    .78156        .18142E-01** at limit **
   2  Index         2.7065        5.1018        .50000        .11760E-04
   3  Normalizat    1.7971        .14038E-02    .33559E-03   -.20936E-04
   4  Prefactor     .83584        .63381E-03    .20949E-03   -.47377E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010847
  Index      = 2.7065
  Normalizat = 1.79705
  Prefactor  = 0.835838
 **********
 **   18 **HESSE 
 **********

 FCN=   7170.576     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10847E-03    33.217        .36114E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7065        5.7449        .50000       -.47653    
   3  Normalizat    1.7971        .91379E-02    .13423E-04   -.69741    
   4  Prefactor     .83584        .41257E-02    .83794E-05   -.98421    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.68316e-09
Minuit parameter uncertainties:
  1  0.0335648
  2  361.507
  3  0.00913787
  4  0.0041257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984959': 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) = 7170.57599112
delta logL = -1.07158757601e-06

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.085e-04  3.356e-02  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.707e+00  3.615e+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:  8.358e-01  4.126e-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.797e+00  9.138e-03  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/984959/cmap_HighResolution_651974401_652233601_4FGL_J1254.2-2205_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', job_status='DONE', photon_flux_upper_limit='8.12e-08', time_completed='2021-09-06 09:10:28.259134', job_id='984959', GAL2='0.84', fit_tolerance='1e-08', EG2='1.80', EG='1.80', time_epoch_completed='1630944628.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='-1.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1592' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:10:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 984959: <4FGL_J1254.2-2205_daily_bin1592> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1592> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 08:55:27 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:55:28 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:55:28 2021
Terminated at Mon Sep  6 09:10:29 2021
Results reported at Mon Sep  6 09:10:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1592 193.552 -22.0872 651974401 652233601 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 :                                   751.00 sec.
    Max Memory :                                 1190 MB
    Average Memory :                             262.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

