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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1575
RA = 193.552, Dec = -22.0872
tmin = 647568001, tmax = 647827201
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='984934', job_status='RUN', time_executed='2021-09-06 08:56:52.683061', time_epoch_executed='1630943812.68' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984934

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984934/ft1_4FGL_J1254.2-2205_daily_bin1575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984934/ft2_4FGL_J1254.2-2205_daily_bin1575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984934/ft1_4FGL_J1254.2-2205_daily_bin1575.fits outfile=/scratch/kocevski/984934/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1575.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=647568001.0 tmax=647827201.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.43
user 3.18
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984934/ft1_filtered_4FGL_J1254.2-2205_daily_bin1575.fits" evtable="EVENTS" scfile=/scratch/kocevski/984934/ft2_4FGL_J1254.2-2205_daily_bin1575.fits sctable="SC_DATA" outfile=/scratch/kocevski/984934/ltcube_647568001_647827201_4FGL_J1254.2-2205_daily_bin1575.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/984934/ft2_4FGL_J1254.2-2205_daily_bin1575.fits
.....................!
real 12.37
user 11.95
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984934/ft1_filtered_4FGL_J1254.2-2205_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/984934/ft2_4FGL_J1254.2-2205_daily_bin1575.fits sctable="SC_DATA" expcube=/scratch/kocevski/984934/ltcube_647568001_647827201_4FGL_J1254.2-2205_daily_bin1575.fits outfile=/scratch/kocevski/984934/expmap_647568001_647827201_4FGL_J1254.2-2205_daily_bin1575.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/984934/ltcube_647568001_647827201_4FGL_J1254.2-2205_daily_bin1575.fits
.....................!
real 190.63
user 185.45
sys 4.76

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/984934/ft1_filtered_4FGL_J1254.2-2205_daily_bin1575.fits scfile=/scratch/kocevski/984934/ft2_4FGL_J1254.2-2205_daily_bin1575.fits outfile=/scratch/kocevski/984934/cmap_647568001_647827201_4FGL_J1254.2-2205_daily_bin1575.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984934/ft1_filtered_4FGL_J1254.2-2205_daily_bin1575.fits scfile=/scratch/kocevski/984934/ft2_4FGL_J1254.2-2205_daily_bin1575.fits outfile=/scratch/kocevski/984934/cmap_HighResolution_647568001_647827201_4FGL_J1254.2-2205_daily_bin1575.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/984934/ft1_filtered_4FGL_J1254.2-2205_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/984934/ft2_4FGL_J1254.2-2205_daily_bin1575.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/984934/Model_4FGL_J1254.2-2205_daily_bin1575.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/984934/ft1_filtered_4FGL_J1254.2-2205_daily_bin1575.fits.....................!
real 58.80
user 57.31
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5587       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.490       1.0000         .10000E-03   10000.    
     3 'Prefactor '    59.553       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1313       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12981E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5494       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.942       1.0000         .10000E-03   10000.    
    11 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.8072       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8657       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0213       1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.071       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7754       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1949       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5090       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0322       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=   7058.983     FROM MIGRAD    STATUS=CONVERGED    953 CALLS     3640 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5579        11.508        .18854E-03   -.49807E-04
   2  Prefactor     14.477        49.755        .10522E-03   -.20205E-04
   3  Prefactor     59.580        41.428        .25995E-03   -.24837E-03
   4  Prefactor     2.1708        154.57        .28241E-03   -.71334E-04
   5  Prefactor     .10002E-03    74.171        .16808    ** at limit **
   6  Prefactor     .10000E-03    22.591        .18142E-02** at limit **
   7  Prefactor     .10000E-03    2.9619        .14069E-02** at limit **
   8  Prefactor     4.5495        2.4378        .93061E-04   -.72321E-04
   9  Prefactor     .10000E-03    4.1318        .16671E-02** at limit **
  10  Prefactor     11.941        16.274        .11592E-03   -.23145E-04
  11  norm          .10000E-03    1.2715        .13618E-02** at limit **
  12  Prefactor     .10000E-03    33.973        .18142E-02** at limit **
  13  norm          4.8103        9.7272        .91745E-03    .13456E-03
  14  norm          .10000E-03    2.8405        .13774E-02** at limit **
  15  Prefactor     .10000E-03    5.6133        .18142E-02** at limit **
  16  norm          .10000E-03    1.3205        .94226E-03** at limit **
  17  norm          1.8657        3.3776        .19934E-03    .78590E-04
  18  Prefactor     .10000E-03    4.7404        .17835E-02** at limit **
  19  Prefactor     8.0165        17.537        .14157E-03    .70669E-05
  20  Prefactor     40.069        47.970        .63322E-04   -.35908E-04
  21  Prefactor     4.7997        23.155        .18411E-03   -.67738E-04
  22  Prefactor     5.1967        14.777        .17637E-03   -.95399E-05
  23  Normalizat    1.5090        .33312        .36677E-03   -.52939E-03
  24  Prefactor     1.0322        .15234        .19817E-03   -.85924E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.55788
  Prefactor  = 14.4774
  Prefactor  = 59.5796
  Prefactor  = 2.17076
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.54949
  Prefactor  = 0.0001
  Prefactor  = 11.941
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.8103
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.86566
  Prefactor  = 0.0001
  Prefactor  = 8.01654
  Prefactor  = 40.0688
  Prefactor  = 4.79972
  Prefactor  = 5.19671
  Normalizat = 1.50898
  Prefactor  = 1.03221
 **********
 **   18 **HESSE 
 **********

 FCN=   7058.983     FROM HESSE     STATUS=OK           383 CALLS     4023 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5579        11.504        .75416E-05   -1.5281    
   2  Prefactor     14.477        49.710        .42088E-05   -1.4947    
   3  Prefactor     59.580        41.417        .51990E-04   -1.4163    
   4  Prefactor     2.1708        154.03        .11296E-04   -1.5413    
   5  Prefactor     .10002E-03    74.641        .16700       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9623        .28138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5495        2.4378        .37224E-05   -1.5281    
   9  Prefactor     .10000E-03    4.1319        .33343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.941        16.274        .46369E-05   -1.5017    
  11  norm          .10000E-03    1.2747        .27237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.974        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.8103        9.7243        .36698E-04   -1.5269    
  14  norm          .10000E-03    2.8410        .27548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.6178        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3205        .18845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8657        3.3774        .79735E-05   -1.5435    
  18  Prefactor     .10000E-03    4.7410        .35671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.0165        17.534        .56627E-05   -1.5142    
  20  Prefactor     40.069        47.960        .25329E-05   -1.4441    
  21  Prefactor     4.7997        23.133        .73645E-05   -1.5270    
  22  Prefactor     5.1967        14.774        .70549E-05   -1.5252    
  23  Normalizat    1.5090        .33336        .73354E-04   -.77526    
  24  Prefactor     1.0322        .15246        .39634E-04   -.91663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61952e-09
Minuit parameter uncertainties:
  1  11.5097
  2  49.8525
  3  41.4366
  4  36.6694
  5  0.00235507
  6  0.000163023
  7  1.02287e-05
  8  2.43782
  9  1.09384e-06
  10  16.2801
  11  5.02858e-05
  12  0.000201578
  13  9.72749
  14  1.31436e-05
  15  2.4704e-05
  16  2.37611e-06
  17  3.37777
  18  2.62061e-05
  19  17.5449
  20  48.006
  21  21.0875
  22  14.7842
  23  0.333851
  24  0.152527
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  2.016e-04  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.032e+00  1.525e-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.509e+00  3.339e-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.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/984934/likelihoodResults_647568001_647827201_4FGL_J1254.2-2205_daily_bin1575.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) = 7058.98330198
delta logL = -0.000127163024445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7058.98317611
delta logL = -1.28859574033e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11985E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4927       1.0000          .0000       10.000    
     3 'Normalizat'    1.5092       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0321       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=   7058.983     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      275 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10261E-03    5.9728        .18142E-01** at limit **
   2  Index         2.4166        6.6622        .50000        .10522E-04
   3  Normalizat    1.5090        .33830E-02    .36677E-03   -.62489E-04
   4  Prefactor     1.0322        .15610E-02    .19817E-03   -.18530E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102614
  Index      = 2.41663
  Normalizat = 1.50898
  Prefactor  = 1.03221
 **********
 **   18 **HESSE 
 **********

 FCN=   7058.983     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10261E-03    80.240        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4166        6.1296        .50000       -.54296    
   3  Normalizat    1.5090        .12422E-01    .14671E-04   -.77526    
   4  Prefactor     1.0322        .57316E-02    .79267E-05   -.91663    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.56108e-09
Minuit parameter uncertainties:
  1  0.0290043
  2  240.033
  3  0.0124217
  4  0.0057316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984934': 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) = 7058.98317528
delta logL = -4.62258867628e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.032e+00  5.732e-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.509e+00  1.242e-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/984934/cmap_HighResolution_647568001_647827201_4FGL_J1254.2-2205_daily_bin1575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-03', job_status='DONE', photon_flux_upper_limit='8.06e-08', time_completed='2021-09-06 09:10:42.399709', job_id='984934', GAL2='1.03', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1630944642.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='-4.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1575' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:10:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 984934: <4FGL_J1254.2-2205_daily_bin1575> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1575 193.552 -22.0872 647568001 647827201 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 :                                   824.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

