/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 149 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 = 7409
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.2-2205_daily_bin326
RA = 193.552, Dec = -22.0872
tmin = 323827201, tmax = 324086401
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='976409', job_status='RUN', time_executed='2021-09-06 08:28:47.647229', time_epoch_executed='1630942127.65' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/976409

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/976409/ft1_4FGL_J1254.2-2205_daily_bin326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/976409/ft2_4FGL_J1254.2-2205_daily_bin326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/976409/ft1_4FGL_J1254.2-2205_daily_bin326.fits outfile=/scratch/kocevski/976409/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin326.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=323827201.0 tmax=324086401.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.35
user 3.07
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/976409/ft1_filtered_4FGL_J1254.2-2205_daily_bin326.fits" evtable="EVENTS" scfile=/scratch/kocevski/976409/ft2_4FGL_J1254.2-2205_daily_bin326.fits sctable="SC_DATA" outfile=/scratch/kocevski/976409/ltcube_323827201_324086401_4FGL_J1254.2-2205_daily_bin326.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/976409/ft2_4FGL_J1254.2-2205_daily_bin326.fits
.....................!
real 12.46
user 11.93
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/976409/ft1_filtered_4FGL_J1254.2-2205_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/976409/ft2_4FGL_J1254.2-2205_daily_bin326.fits sctable="SC_DATA" expcube=/scratch/kocevski/976409/ltcube_323827201_324086401_4FGL_J1254.2-2205_daily_bin326.fits outfile=/scratch/kocevski/976409/expmap_323827201_324086401_4FGL_J1254.2-2205_daily_bin326.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/976409/ltcube_323827201_324086401_4FGL_J1254.2-2205_daily_bin326.fits
.....................!
real 190.53
user 185.26
sys 4.57

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/976409/ft1_filtered_4FGL_J1254.2-2205_daily_bin326.fits scfile=/scratch/kocevski/976409/ft2_4FGL_J1254.2-2205_daily_bin326.fits outfile=/scratch/kocevski/976409/cmap_323827201_324086401_4FGL_J1254.2-2205_daily_bin326.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/976409/ft1_filtered_4FGL_J1254.2-2205_daily_bin326.fits scfile=/scratch/kocevski/976409/ft2_4FGL_J1254.2-2205_daily_bin326.fits outfile=/scratch/kocevski/976409/cmap_HighResolution_323827201_324086401_4FGL_J1254.2-2205_daily_bin326.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/976409/ft1_filtered_4FGL_J1254.2-2205_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/976409/ft2_4FGL_J1254.2-2205_daily_bin326.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/976409/Model_4FGL_J1254.2-2205_daily_bin326.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/976409/ft1_filtered_4FGL_J1254.2-2205_daily_bin326.fits.....................!
real 58.69
user 57.14
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.398       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.909       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1636       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3713       1.0000         .10000E-03   10000.    
    11 'norm      '    .71266E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.1054       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14367E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .17046E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11673E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .84733       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2115       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=   7197.066     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2753 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.399        10.742       -.23325E-08    .13490E-04
   2  Prefactor     .10000E-03    13.646        .40099E-06** at limit **
   3  Prefactor     18.915        42.650        .52304E-07    .10552E-05
   4  Prefactor     .10000E-03    6.7988        .39708E-07** at limit **
   5  Prefactor     .10000E-03    16.326       -.34168E-06** at limit **
   6  Prefactor     .10000E-03    8.1501        .32448E-06** at limit **
   7  Prefactor     .10000E-03    1.9203       -.75568E-08** at limit **
   8  Prefactor     3.1636        1.9901       -.26686E-07   -.17655E-03
   9  Prefactor     .10000E-03    10.308       -.11404E-06** at limit **
  10  Prefactor     6.3708        13.063       -.39276E-06   -.12264E-03
  11  norm          .69761E-01    .89853       -.80215E-06    .36613E-03
  12  Prefactor     .10001E-03    205.48       -.37400E-05** at limit **
  13  norm          .10000E-03    16.194       -.13229E-05** at limit **
  14  norm          4.1064        6.2497        .54419E-06    .32043E-03
  15  Prefactor     .10001E-03    7.4968       -.35533E-05** at limit **
  16  norm          .10005E-03    40.662        .49128E-05** at limit **
  17  norm          .10000E-03    1.5973       -.60053E-07** at limit **
  18  Prefactor     .10001E-03    19.715        .24741E-05** at limit **
  19  Prefactor     .10000E-03    15.427        .18793E-06** at limit **
  20  Prefactor     .10000E-03    7.6771       -.61711E-07** at limit **
  21  Prefactor     .10009E-03    17.620        .32668E-05** at limit **
  22  Prefactor     .10000E-03    13.560        .92768E-06** at limit **
  23  Normalizat    .84725        .25790       -.31372E-06   -.71507E-04
  24  Prefactor     1.2116        .12149        .14069E-06   -.84730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3985
  Prefactor  = 0.0001
  Prefactor  = 18.9151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.16356
  Prefactor  = 0.0001
  Prefactor  = 6.37085
  norm       = 0.0697607
  Prefactor  = 0.000100006
  norm       = 0.000100003
  norm       = 4.10641
  Prefactor  = 0.000100009
  norm       = 0.000100052
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100093
  Prefactor  = 0.000100001
  Normalizat = 0.847251
  Prefactor  = 1.21158
 **********
 **   18 **HESSE 
 **********

 FCN=   7197.066     FROM HESSE     STATUS=OK           397 CALLS     3150 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.399        10.729        .93377E-04   -1.4850    
   2  Prefactor     .10000E-03    13.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.915        42.589        .92105E-04   -1.4838    
   4  Prefactor     .10000E-03    6.8010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.1989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9237        .11478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1636        1.9880        .92032E-04   -1.5352    
   9  Prefactor     .10000E-03    10.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.3708        13.088        .15902E-03   -1.5203    
  11  norm          .69761E-01    1.7250        .13037E-02   -1.5655    
  12  Prefactor     .10001E-03    207.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    16.829        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.1064        6.4620        .19896E-03   -1.5303    
  15  Prefactor     .10001E-03    8.7645        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10005E-03    43.778        .26855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6651        .20933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    20.739        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.6909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10009E-03    29.676        .42008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .84725        .28826        .42024E-03   -.98339    
  24  Prefactor     1.2116        .13745        .17123E-03   -.85976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45932e-09
Minuit parameter uncertainties:
  1  10.7301
  2  0.000152677
  3  42.6573
  4  6.41201e-06
  5  0.000159443
  6  8.97372e-05
  7  6.05973e-07
  8  1.98804
  9  4.59708e-05
  10  13.0936
  11  0.693316
  12  0.00224035
  13  0.000421307
  14  6.46314
  15  0.000567868
  16  0.0030201
  17  4.16123e-06
  18  0.00081862
  19  1.89485e-05
  20  3.39861e-05
  21  0.00332265
  22  0.000248491
  23  0.288785
  24  0.137493
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  2.240e-03  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.191e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  2.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.212e+00  1.375e-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.473e-01  2.888e-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.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/976409/likelihoodResults_323827201_324086401_4FGL_J1254.2-2205_daily_bin326.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) = 7197.0658716
delta logL = -2.27839364015e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7197.06584972
delta logL = -9.03118234419e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40492E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1672       1.0000          .0000       10.000    
     3 'Normalizat'    .84725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2116       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=   7197.066     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      239 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6758.6        .10629E-01** at limit **
   2  Index         2.1719        8.2139        .50000       -.73742E-05
   3  Normalizat    .84725        .31356E-01    .94855E-01    .24716E-05
   4  Prefactor     1.2116        .15076E-01    .34363E-01    .14166E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.1719
  Normalizat = 0.847251
  Prefactor  = 1.21158
 **********
 **   18 **HESSE 
 **********

 FCN=   7197.066     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8518.8        .21258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1719        5.9111        .50000       -.60118    
   3  Normalizat    .84725        .51026E-01    .42024E-03   -.98339    
   4  Prefactor     1.2116        .24608E-01    .17123E-03   -.85976    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.88201e-09
Minuit parameter uncertainties:
  1  0.0074738
  2  31.4568
  3  0.0510292
  4  0.0246085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/976409': 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) = 7197.06584885
delta logL = -3.48263711203e-08

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  7.474e-03  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.172e+00  3.146e+01  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.212e+00  2.461e-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:  8.473e-01  5.103e-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/976409/cmap_HighResolution_323827201_324086401_4FGL_J1254.2-2205_daily_bin326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.26e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-06 08:41:35.559703', job_id='976409', GAL2='1.21', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630942895.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='-3.48e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='326' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:41:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 976409: <4FGL_J1254.2-2205_daily_bin326> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin326> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 08:26:06 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:26:08 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:26:08 2021
Terminated at Mon Sep  6 08:41:36 2021
Results reported at Mon Sep  6 08:41:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin326 193.552 -22.0872 323827201 324086401 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 :                                   764.00 sec.
    Max Memory :                                 1066 MB
    Average Memory :                             299.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

