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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1419
RA = 193.552, Dec = -22.0872
tmin = 607132801, tmax = 607392001
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='983728', job_status='RUN', time_executed='2021-09-06 08:51:24.763558', time_epoch_executed='1630943484.76' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983728

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983728/ft1_4FGL_J1254.2-2205_daily_bin1419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983728/ft2_4FGL_J1254.2-2205_daily_bin1419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983728/ft1_4FGL_J1254.2-2205_daily_bin1419.fits outfile=/scratch/kocevski/983728/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1419.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=607132801.0 tmax=607392001.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 5.38
user 5.03
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983728/ft1_filtered_4FGL_J1254.2-2205_daily_bin1419.fits" evtable="EVENTS" scfile=/scratch/kocevski/983728/ft2_4FGL_J1254.2-2205_daily_bin1419.fits sctable="SC_DATA" outfile=/scratch/kocevski/983728/ltcube_607132801_607392001_4FGL_J1254.2-2205_daily_bin1419.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/983728/ft2_4FGL_J1254.2-2205_daily_bin1419.fits
.....................!
real 11.40
user 11.07
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983728/ft1_filtered_4FGL_J1254.2-2205_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/983728/ft2_4FGL_J1254.2-2205_daily_bin1419.fits sctable="SC_DATA" expcube=/scratch/kocevski/983728/ltcube_607132801_607392001_4FGL_J1254.2-2205_daily_bin1419.fits outfile=/scratch/kocevski/983728/expmap_607132801_607392001_4FGL_J1254.2-2205_daily_bin1419.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/983728/ltcube_607132801_607392001_4FGL_J1254.2-2205_daily_bin1419.fits
.....................!
real 190.00
user 185.65
sys 3.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/983728/ft1_filtered_4FGL_J1254.2-2205_daily_bin1419.fits scfile=/scratch/kocevski/983728/ft2_4FGL_J1254.2-2205_daily_bin1419.fits outfile=/scratch/kocevski/983728/cmap_607132801_607392001_4FGL_J1254.2-2205_daily_bin1419.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983728/ft1_filtered_4FGL_J1254.2-2205_daily_bin1419.fits scfile=/scratch/kocevski/983728/ft2_4FGL_J1254.2-2205_daily_bin1419.fits outfile=/scratch/kocevski/983728/cmap_HighResolution_607132801_607392001_4FGL_J1254.2-2205_daily_bin1419.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/983728/ft1_filtered_4FGL_J1254.2-2205_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/983728/ft2_4FGL_J1254.2-2205_daily_bin1419.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/983728/Model_4FGL_J1254.2-2205_daily_bin1419.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/983728/ft1_filtered_4FGL_J1254.2-2205_daily_bin1419.fits.....................!
real 46.09
user 44.74
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29818E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    68.849       1.0000         .10000E-03   10000.    
     3 'Prefactor '    103.88       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11458E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8804       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .77614       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    22.020       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.383       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10987E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5742       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84224       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=   5187.013     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2773 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10061E-03    18.472       -.60535E-05** at limit **
   2  Prefactor     68.888        72.635        .19524E-04    .14081E-03
   3  Prefactor     103.68        69.812       -.87254E-06    .17547E-03
   4  Prefactor     .10000E-03    18.641        .69325E-06** at limit **
   5  Prefactor     .10000E-03    74.495       -.28658E-05** at limit **
   6  Prefactor     .10000E-03    21.164       -.51650E-05** at limit **
   7  Prefactor     .10000E-03    1.9967       -.80793E-08** at limit **
   8  Prefactor     9.8819        3.4575       -.19550E-06    .60283E-04
   9  Prefactor     .10000E-03    13.594        .82471E-06** at limit **
  10  Prefactor     .10000E-03    9.8016       -.74885E-07** at limit **
  11  norm          .77624        1.0941       -.13570E-06    .11810E-03
  12  Prefactor     .10000E-03    34.760        .30672E-05** at limit **
  13  norm          .10000E-03    3.5348       -.24748E-07** at limit **
  14  norm          .10000E-03    3.0210       -.40154E-07** at limit **
  15  Prefactor     .10000E-03    4.5580       -.53716E-07** at limit **
  16  norm          22.019        11.922       -.90363E-06    .68450E-04
  17  norm          .10000E-03    1.0554        .12447E-08** at limit **
  18  Prefactor     .10000E-03    17.227        .26939E-05** at limit **
  19  Prefactor     32.395        27.830       -.35111E-05    .17561E-03
  20  Prefactor     .10000E-03    76.536        .60926E-06** at limit **
  21  Prefactor     .10000E-03    14.666       -.23140E-05** at limit **
  22  Prefactor     .10000E-03    69.947       -.80617E-05** at limit **
  23  Normalizat    1.5742        .32095        .13446E-04    .21524E-03
  24  Prefactor     .84217        .13948       -.12949E-05    .94753E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100609
  Prefactor  = 68.8884
  Prefactor  = 103.675
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.88188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.776243
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 22.0193
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.3947
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.57418
  Prefactor  = 0.842173
 **********
 **   18 **HESSE 
 **********

 FCN=   5187.013     FROM HESSE     STATUS=OK           385 CALLS     3158 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10061E-03    167.83        .52267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     68.888        72.709        .24188E-03   -1.4046    
   3  Prefactor     103.68        71.513        .19726E-03   -1.3668    
   4  Prefactor     .10000E-03    18.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    74.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9983        .99383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.8819        3.4578        .77023E-04   -1.5079    
   9  Prefactor     .10000E-03    13.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.8560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .77624        1.0946        .49403E-04   -1.5532    
  12  Prefactor     .10000E-03    34.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.5416        .13224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.0450        .12224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.6522        .15014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          22.019        11.934        .85359E-04   -1.4769    
  17  norm          .10000E-03    1.0600        .72252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.395        27.552        .70413E-04   -1.4569    
  20  Prefactor     .10000E-03    76.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    70.612        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5742        .36907        .34831E-03   -.75715    
  24  Prefactor     .84217        .16501        .20477E-03   -.98192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16419e-09
Minuit parameter uncertainties:
  1  0.0202761
  2  72.8027
  3  71.5727
  4  0.000136834
  5  0.000757207
  6  0.000111192
  7  6.17715e-06
  8  3.45789
  9  0.000113467
  10  8.82523e-05
  11  1.09461
  12  7.73559e-06
  13  1.77694e-05
  14  2.36653e-05
  15  4.19675e-05
  16  11.9353
  17  4.7089e-06
  18  0.000179155
  19  27.5624
  20  0.000451752
  21  0.000129963
  22  1.4181e-05
  23  0.36971
  24  0.165112
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.422e-01  1.651e-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.574e+00  3.697e-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: 9.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/983728/likelihoodResults_607132801_607392001_4FGL_J1254.2-2205_daily_bin1419.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) = 5187.01313225
delta logL = -0.000137011081279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5187.01299617
delta logL = -9.31594513531e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4199       1.0000          .0000       10.000    
     3 'Normalizat'    1.5742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84217       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=   5187.013     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      279 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10445E-03    9.8786        .18142E-01** at limit **
   2  Index         2.3211        8.8032        .50000        .16412E-04
   3  Normalizat    1.5742        .48575E-02    .34830E-03    .50103E-04
   4  Prefactor     .84217        .21866E-02    .20477E-03    .10859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104455
  Index      = 2.32107
  Normalizat = 1.57419
  Prefactor  = 0.842167
 **********
 **   18 **HESSE 
 **********

 FCN=   5187.013     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10445E-03    76.296        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3211        5.0155        .50000       -.56544    
   3  Normalizat    1.5742        .13536E-01    .13932E-04   -.75714    
   4  Prefactor     .84217        .60933E-02    .81909E-05   -.98192    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.12244e-09
Minuit parameter uncertainties:
  1  0.0369178
  2  194.141
  3  0.0135364
  4  0.00609335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983728': 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) = 5187.01299573
delta logL = -4.96071152156e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.422e-01  6.093e-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.574e+00  1.354e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/983728/cmap_HighResolution_607132801_607392001_4FGL_J1254.2-2205_daily_bin1419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.96e-03', job_status='DONE', photon_flux_upper_limit='9.14e-08', time_completed='2021-09-06 09:02:28.837617', job_id='983728', GAL2='0.84', fit_tolerance='1e-08', EG2='1.57', EG='1.57', time_epoch_completed='1630944148.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='-4.96e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1419' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:02:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 983728: <4FGL_J1254.2-2205_daily_bin1419> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1419> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 08:50:49 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:50:50 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:50:50 2021
Terminated at Mon Sep  6 09:02:32 2021
Results reported at Mon Sep  6 09:02:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1419 193.552 -22.0872 607132801 607392001 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 :                                   630.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            703 sec.

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

