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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1594
RA = 193.552, Dec = -22.0872
tmin = 652492801, tmax = 652752001
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='717600', job_status='RUN', time_executed='2021-09-08 00:27:41.211979', time_epoch_executed='1631086061.21' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/717600

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/717600/ft1_4FGL_J1254.2-2205_daily_bin1594.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/717600/ft2_4FGL_J1254.2-2205_daily_bin1594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/717600/ft1_4FGL_J1254.2-2205_daily_bin1594.fits outfile=/scratch/kocevski/717600/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1594.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=652492801.0 tmax=652752001.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.50
user 4.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/717600/ft1_filtered_4FGL_J1254.2-2205_daily_bin1594.fits" evtable="EVENTS" scfile=/scratch/kocevski/717600/ft2_4FGL_J1254.2-2205_daily_bin1594.fits sctable="SC_DATA" outfile=/scratch/kocevski/717600/ltcube_652492801_652752001_4FGL_J1254.2-2205_daily_bin1594.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/717600/ft2_4FGL_J1254.2-2205_daily_bin1594.fits
.....................!
real 16.93
user 16.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/717600/ft1_filtered_4FGL_J1254.2-2205_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/717600/ft2_4FGL_J1254.2-2205_daily_bin1594.fits sctable="SC_DATA" expcube=/scratch/kocevski/717600/ltcube_652492801_652752001_4FGL_J1254.2-2205_daily_bin1594.fits outfile=/scratch/kocevski/717600/expmap_652492801_652752001_4FGL_J1254.2-2205_daily_bin1594.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/717600/ltcube_652492801_652752001_4FGL_J1254.2-2205_daily_bin1594.fits
.....................!
real 193.62
user 187.45
sys 4.93

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/717600/ft1_filtered_4FGL_J1254.2-2205_daily_bin1594.fits scfile=/scratch/kocevski/717600/ft2_4FGL_J1254.2-2205_daily_bin1594.fits outfile=/scratch/kocevski/717600/cmap_652492801_652752001_4FGL_J1254.2-2205_daily_bin1594.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.39
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/717600/ft1_filtered_4FGL_J1254.2-2205_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/717600/ft2_4FGL_J1254.2-2205_daily_bin1594.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/717600/Model_4FGL_J1254.2-2205_daily_bin1594.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/717600/ft1_filtered_4FGL_J1254.2-2205_daily_bin1594.fits.....................!
real 55.61
user 54.05
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .22685E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.994       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1683       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10704E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7536       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.958       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.983       1.0000         .10000E-03   10000.    
    11 'norm      '    .86841       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.177       1.0000         .10000E-03   10000.    
    13 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.8563       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17787E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .14089E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7681       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11139E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.699       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .61210       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81648       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3487       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=   6561.789     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     3162 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8838        .23234E-05** at limit **
   2  Prefactor     .10000E-03    133.15       -.54120E-06** at limit **
   3  Prefactor     34.058        48.276        .40232E-07    .33888E-04
   4  Prefactor     8.1661        27.820        .54052E-06    .50028E-05
   5  Prefactor     .10000E-03    113.88        .12951E-05** at limit **
   6  Prefactor     .10000E-03    28.700        .18731E-05** at limit **
   7  Prefactor     .10000E-03    1.8133       -.32746E-07** at limit **
   8  Prefactor     1.7537        1.6582        .11478E-07    .81137E-05
   9  Prefactor     18.963        18.684       -.10113E-07   -.22224E-04
  10  Prefactor     29.986        19.044       -.40968E-08    .11561E-07
  11  norm          .86764        1.6146        .45201E-06    .21929E-03
  12  Prefactor     27.180        208.01       -.44096E-05   -.30781E-04
  13  norm          .10000E-03    4.1520       -.11423E-06** at limit **
  14  norm          4.8443        9.4075       -.12268E-06   -.16486E-03
  15  Prefactor     .10000E-03    18.165        .58049E-06** at limit **
  16  norm          .10005E-03    7.6507        .21256E-05** at limit **
  17  norm          2.7678        2.6295        .37483E-07    .75000E-06
  18  Prefactor     .10000E-03    7.4793       -.19314E-06** at limit **
  19  Prefactor     .10000E-03    6.2794       -.10964E-06** at limit **
  20  Prefactor     .10000E-03    33.707       -.56151E-06** at limit **
  21  Prefactor     10.706        13.604        .18669E-05    .23606E-03
  22  Prefactor     .66687        7.9180        .65464E-06   -.16346E-03
  23  Normalizat    .81641        .33652        .81374E-06   -.13135E-03
  24  Prefactor     1.3486        .15191       -.32913E-06   -.31548E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 34.0583
  Prefactor  = 8.16611
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.75368
  Prefactor  = 18.9631
  Prefactor  = 29.986
  norm       = 0.867639
  Prefactor  = 27.1798
  norm       = 0.0001
  norm       = 4.84431
  Prefactor  = 0.0001
  norm       = 0.000100051
  norm       = 2.76779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7064
  Prefactor  = 0.666868
  Normalizat = 0.816407
  Prefactor  = 1.3486
 **********
 **   18 **HESSE 
 **********

 FCN=   6561.789     FROM HESSE     STATUS=OK           399 CALLS     3561 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    133.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.058        48.146        .68730E-04   -1.4540    
   4  Prefactor     8.1661        27.778        .14028E-03   -1.5136    
   5  Prefactor     .10000E-03    114.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8145        .10652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7537        1.6542        .98796E-04   -1.5443    
   9  Prefactor     18.963        18.670        .91987E-04   -1.4837    
  10  Prefactor     29.986        19.043        .73170E-04   -1.4612    
  11  norm          .86764        1.5965        .12757E-03   -1.5522    
  12  Prefactor     27.180        201.76        .76846E-04   -1.4665    
  13  norm          .10000E-03    4.1616        .16118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.8443        9.2144        .18254E-03   -1.5268    
  15  Prefactor     .10000E-03    18.584        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10005E-03    19.538        .34994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7678        2.6260        .12415E-03   -1.5375    
  18  Prefactor     .10000E-03    7.5111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    33.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.706        13.788        .61244E-03   -1.5053    
  22  Prefactor     .66687        57.799        .42852E-02   -1.5545    
  23  Normalizat    .81641        .36397        .48093E-03   -.99463    
  24  Prefactor     1.3486        .16878        .18021E-03   -.81873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29527e-09
Minuit parameter uncertainties:
  1  0.00012968
  2  0.000586853
  3  48.2007
  4  27.8216
  5  0.0006555
  6  0.000216243
  7  1.15093e-06
  8  1.65424
  9  18.6758
  10  19.0466
  11  1.59662
  12  148.815
  13  4.95834e-06
  14  9.2171
  15  7.94364e-05
  16  0.00200317
  17  2.62614
  18  1.30008e-05
  19  9.74827e-06
  20  0.000144838
  21  13.7926
  22  12.4283
  23  0.365068
  24  0.168845
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  2.718e+01  1.488e+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:  1.349e+00  1.688e-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:  8.164e-01  3.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/717600/likelihoodResults_652492801_652752001_4FGL_J1254.2-2205_daily_bin1594.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6561.77119016
delta logL = 0.0178673099645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6561.76873652
delta logL = 0.0203209461706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.878       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5247       1.0000          .0000       10.000    
     3 'Normalizat'    .80809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3500       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=   6561.769     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      284 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.895        138.22        .87660E-04    .21861E-03
   2  Index         2.5304        1.8360        .79778E-02    .30441E-03
   3  Normalizat    .80765        .35262        .48328E-03   -.29144E-03
   4  Prefactor     1.3501        .16551        .18012E-03   -.43513E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8948
  Index      = 2.53042
  Normalizat = 0.807646
  Prefactor  = 1.35005
 **********
 **   18 **HESSE 
 **********

 FCN=   6561.769     FROM HESSE     STATUS=OK            23 CALLS      307 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.895        97.741        .17532E-04   -1.4793    
   2  Index         2.5304        1.5563        .31911E-03   -.51659    
   3  Normalizat    .80765        .35262        .19331E-04   -.99786    
   4  Prefactor     1.3501        .16535        .36024E-04   -.81831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41791e-09
Minuit parameter uncertainties:
  1  90.6263
  2  1.59159
  3  0.353629
  4  0.16541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/717600': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6561.76872394
delta logL = 0.0203335312663

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  2.089e+01  9.063e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.530e+00  1.592e+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:  1.350e+00  1.654e-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:  8.076e-01  3.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/717600/cmap_HighResolution_652492801_652752001_4FGL_J1254.2-2205_daily_bin1594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', job_status='DONE', photon_flux_upper_limit='1.68e-07', time_completed='2021-09-08 00:40:32.204460', job_id='717600', GAL2='1.35', fit_tolerance='1e-08', EG2='0.81', EG='0.82', time_epoch_completed='1631086832.2', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='2.03e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1594' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:40:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 717600: <4FGL_J1254.2-2205_daily_bin1594> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1594> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 00:25:39 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:26:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 00:26:49 2021
Terminated at Wed Sep  8 00:40:33 2021
Results reported at Wed Sep  8 00:40:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1594 193.552 -22.0872 652492801 652752001 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 :                                   772.10 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            894 sec.

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

