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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin798
RA = 193.552, Dec = -22.0872
tmin = 446169601, tmax = 446428801
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='980237', job_status='RUN', time_executed='2021-09-06 08:43:15.659304', time_epoch_executed='1630942995.66' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='798'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/980237

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/980237/ft1_4FGL_J1254.2-2205_daily_bin798.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/980237/ft2_4FGL_J1254.2-2205_daily_bin798.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/980237/ft1_4FGL_J1254.2-2205_daily_bin798.fits outfile=/scratch/kocevski/980237/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin798.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=446169601.0 tmax=446428801.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.22
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/980237/ft2_4FGL_J1254.2-2205_daily_bin798.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/980237/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin798.fits evtable="EVENTS" outfile="/scratch/kocevski/980237/ft1_filtered_4FGL_J1254.2-2205_daily_bin798.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/980237/ft1_filtered_4FGL_J1254.2-2205_daily_bin798.fits" evtable="EVENTS" scfile=/scratch/kocevski/980237/ft2_4FGL_J1254.2-2205_daily_bin798.fits sctable="SC_DATA" outfile=/scratch/kocevski/980237/ltcube_446169601_446428801_4FGL_J1254.2-2205_daily_bin798.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/980237/ft2_4FGL_J1254.2-2205_daily_bin798.fits
.....................!
real 11.97
user 11.61
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/980237/ft1_filtered_4FGL_J1254.2-2205_daily_bin798.fits evtable="EVENTS" scfile=/scratch/kocevski/980237/ft2_4FGL_J1254.2-2205_daily_bin798.fits sctable="SC_DATA" expcube=/scratch/kocevski/980237/ltcube_446169601_446428801_4FGL_J1254.2-2205_daily_bin798.fits outfile=/scratch/kocevski/980237/expmap_446169601_446428801_4FGL_J1254.2-2205_daily_bin798.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/980237/ltcube_446169601_446428801_4FGL_J1254.2-2205_daily_bin798.fits
.....................!
real 190.39
user 185.99
sys 3.85

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/980237/ft1_filtered_4FGL_J1254.2-2205_daily_bin798.fits scfile=/scratch/kocevski/980237/ft2_4FGL_J1254.2-2205_daily_bin798.fits outfile=/scratch/kocevski/980237/cmap_446169601_446428801_4FGL_J1254.2-2205_daily_bin798.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.58
user 0.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/980237/ft1_filtered_4FGL_J1254.2-2205_daily_bin798.fits evtable="EVENTS" scfile=/scratch/kocevski/980237/ft2_4FGL_J1254.2-2205_daily_bin798.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/980237/Model_4FGL_J1254.2-2205_daily_bin798.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/980237/ft1_filtered_4FGL_J1254.2-2205_daily_bin798.fits.....................!
real 65.29
user 62.65
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3190       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.800       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0052       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8456       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1986       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6348       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5757       1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.361       1.0000         .10000E-03   10000.    
    13 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6235       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12345E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8845       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.690       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7119       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74648       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=   7955.528     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2712 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3181        6.3617        .25728E-06    .45235E-04
   2  Prefactor     .10000E-03    81.301        .22654E-06** at limit **
   3  Prefactor     .10000E-03    10.752       -.93663E-06** at limit **
   4  Prefactor     .10000E-03    6.0319       -.10328E-06** at limit **
   5  Prefactor     .10000E-03    16.788       -.10384E-05** at limit **
   6  Prefactor     45.798        24.388        .20468E-06    .63464E-05
   7  Prefactor     4.0051        4.1752        .26430E-06   -.56176E-05
   8  Prefactor     8.8456        2.8566       -.22758E-07   -.16293E-04
   9  Prefactor     3.1984        13.967        .54960E-05    .14184E-03
  10  Prefactor     5.6364        14.437        .39593E-06    .19005E-06
  11  norm          1.5756        .90251        .13668E-07    .37371E-04
  12  Prefactor     45.333        55.390        .45306E-05    .31761E-04
  13  norm          .10000E-03    8.5650       -.54303E-06** at limit **
  14  norm          1.6259        4.1522       -.45528E-06   -.23346E-04
  15  Prefactor     .10000E-03    1.3548       -.68770E-07** at limit **
  16  norm          .10000E-03    4.7878        .78488E-07** at limit **
  17  norm          .10003E-03    1.6524       -.11095E-05** at limit **
  18  Prefactor     .10000E-03    4.5096        .37584E-07** at limit **
  19  Prefactor     .10000E-03    13.318        .13218E-05** at limit **
  20  Prefactor     .10000E-03    11.332       -.26858E-06** at limit **
  21  Prefactor     4.8839        10.312        .24720E-05    .15280E-03
  22  Prefactor     12.697        12.772        .32653E-06   -.10039E-03
  23  Normalizat    1.7119        .24433       -.38825E-06    .12583E-03
  24  Prefactor     .74644        .10818       -.54311E-06    .16128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.31807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.7984
  Prefactor  = 4.00512
  Prefactor  = 8.84561
  Prefactor  = 3.19842
  Prefactor  = 5.63641
  norm       = 1.57564
  Prefactor  = 45.3332
  norm       = 0.0001
  norm       = 1.6259
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.88393
  Prefactor  = 12.6972
  Normalizat = 1.71193
  Prefactor  = 0.746442
 **********
 **   18 **HESSE 
 **********

 FCN=   7955.528     FROM HESSE     STATUS=OK           397 CALLS     3109 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3181        6.3529        .19384E-03   -1.5292    
   2  Prefactor     .10000E-03    82.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     45.798        24.389        .59245E-04   -1.4353    
   7  Prefactor     4.0051        4.1741        .17924E-03   -1.5308    
   8  Prefactor     8.8456        2.8556        .82134E-04   -1.5113    
   9  Prefactor     3.1984        14.277        .11328E-02   -1.5350    
  10  Prefactor     5.6364        14.502        .16923E-03   -1.5233    
  11  norm          1.5756        .89840        .61666E-04   -1.5457    
  12  Prefactor     45.333        55.611        .59530E-04   -1.4360    
  13  norm          .10000E-03    8.6334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6259        4.1052        .26828E-03   -1.5453    
  15  Prefactor     .10000E-03    1.3571        .10136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.9989        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10003E-03    7.8900        .19364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.5323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.8839        10.360        .91000E-03   -1.5266    
  22  Prefactor     12.697        12.720        .11244E-03   -1.4995    
  23  Normalizat    1.7119        .29262        .31810E-03   -.71985    
  24  Prefactor     .74644        .12854        .20539E-03   -1.0173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39263e-09
Minuit parameter uncertainties:
  1  6.35394
  2  3.1638e-05
  3  1.02956e-06
  4  9.26234e-07
  5  1.96525e-06
  6  24.3941
  7  4.17437
  8  2.85562
  9  13.52
  10  14.5111
  11  0.898403
  12  55.6748
  13  5.91222e-06
  14  4.10591
  15  2.71056e-06
  16  4.55367e-06
  17  0.000900285
  18  1.46173e-06
  19  6.87616e-05
  20  7.33887e-06
  21  10.3635
  22  12.7227
  23  0.292916
  24  0.128596
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  4.533e+01  5.567e+01  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:  7.464e-01  1.286e-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.712e+00  2.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.35
Ra Dec: 193.552 -22.087
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 3.31e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.51e-05

TS (Fixed Index): 1.35
Ra Dec: 193.552 -22.087
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/980237/likelihoodResults_446169601_446428801_4FGL_J1254.2-2205_daily_bin798.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) = 7955.46659649
delta logL = 0.0617641418157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7955.46271683
delta logL = 0.0656438057003

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.397       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5234       1.0000          .0000       10.000    
     3 'Normalizat'    1.6997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74907       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7955.463     FROM MIGRAD    STATUS=FAILED       108 CALLS      324 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.285        66.895        .72672E-04   -.20650E-04
   2  Index         2.5278        1.1415        .82464E-02    .56589E-03
   3  Normalizat    1.6997        .28501        .31899E-03   -.13222E-04
   4  Prefactor     .74940        .12753        .20500E-03   -.25399E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7955.463     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      397 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.285        66.895        .42101E-03   -1.4607    
   2  Index         2.5278        1.1415        .90933E-03   -.51719    
   3  Normalizat    1.6997        .28501        .29633E-03   -.72312    
   4  Prefactor     .74940        .12753        .23789E-03   -1.0162    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7955.463     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      435 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.285        56.352        .29069E-05    .78220E-06
   2  Index         2.5278        .96368        .16493E-02    .21729E-04
   3  Normalizat    1.6997        .28435        .12760E-04    .17820E-06
   4  Prefactor     .74940        .12744        .82002E-05    .27728E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.2849
  Index      = 2.52781
  Normalizat = 1.69967
  Prefactor  = 0.749399
 **********
 **   18 **HESSE 
 **********

 FCN=   7955.463     FROM HESSE     STATUS=OK            25 CALLS      460 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.285        53.864        .58137E-06   -1.4607    
   2  Index         2.5278        .92747        .32986E-03   -.51719    
   3  Normalizat    1.6997        .28375        .25519E-05   -.72312    
   4  Prefactor     .74940        .12717        .16400E-05   -1.0162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26147e-13
Minuit parameter uncertainties:
  1  53.951
  2  0.934656
  3  0.284022
  4  0.127215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/980237': 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) = 7955.46268336
delta logL = 0.0656772724769

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  3.028e+01  5.395e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.528e+00  9.347e-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:  7.494e-01  1.272e-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.700e+00  2.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 193.552 -22.087
Photon Index (Free Index): 2.53 +/- 0.93
Photon Flux (Free Index): 3.86e-08 +/- 5.17e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.21e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/980237/cmap_HighResolution_446169601_446428801_4FGL_J1254.2-2205_daily_bin798.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.59e-03', comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='1.09e-05', photon_flux_error='3.31e-08', dlogl='6.57e-02', energy_flux='1.23e-05', photon_flux2='3.86e-08', job_status='DONE', time_completed='2021-09-06 08:56:55.691092', photon_index_error2='0.93', photon_index2='2.53', ts='1.35', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.21e-05', EG='1.71', time_epoch_completed='1630943815.69', return_code='0', job_id='980237', GAL2='0.75', EG2='1.70', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='5.17e-08', ts2='1.48', photon_index='2.19' WHERE bin_id='798' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:56:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 980237: <4FGL_J1254.2-2205_daily_bin798> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin798> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 08:40:35 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:40:37 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:40:37 2021
Terminated at Mon Sep  6 08:56:56 2021
Results reported at Mon Sep  6 08:56:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin798 193.552 -22.0872 446169601 446428801 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 :                                   815.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            981 sec.

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

