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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1259
RA = 193.552, Dec = -22.0872
tmin = 565660801, tmax = 565920001
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='982118', job_status='RUN', time_executed='2021-09-06 08:46:43.905583', time_epoch_executed='1630943203.91' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1259'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/982118

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/982118/ft1_4FGL_J1254.2-2205_daily_bin1259.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/982118/ft2_4FGL_J1254.2-2205_daily_bin1259.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/982118/ft1_4FGL_J1254.2-2205_daily_bin1259.fits outfile=/scratch/kocevski/982118/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1259.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=565660801.0 tmax=565920001.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.61
user 3.30
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/982118/ft1_filtered_4FGL_J1254.2-2205_daily_bin1259.fits" evtable="EVENTS" scfile=/scratch/kocevski/982118/ft2_4FGL_J1254.2-2205_daily_bin1259.fits sctable="SC_DATA" outfile=/scratch/kocevski/982118/ltcube_565660801_565920001_4FGL_J1254.2-2205_daily_bin1259.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/982118/ft2_4FGL_J1254.2-2205_daily_bin1259.fits
.....................!
real 12.11
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/982118/ft1_filtered_4FGL_J1254.2-2205_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/982118/ft2_4FGL_J1254.2-2205_daily_bin1259.fits sctable="SC_DATA" expcube=/scratch/kocevski/982118/ltcube_565660801_565920001_4FGL_J1254.2-2205_daily_bin1259.fits outfile=/scratch/kocevski/982118/expmap_565660801_565920001_4FGL_J1254.2-2205_daily_bin1259.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/982118/ltcube_565660801_565920001_4FGL_J1254.2-2205_daily_bin1259.fits
.....................!
real 200.45
user 185.28
sys 4.18

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/982118/ft1_filtered_4FGL_J1254.2-2205_daily_bin1259.fits scfile=/scratch/kocevski/982118/ft2_4FGL_J1254.2-2205_daily_bin1259.fits outfile=/scratch/kocevski/982118/cmap_565660801_565920001_4FGL_J1254.2-2205_daily_bin1259.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/982118/ft1_filtered_4FGL_J1254.2-2205_daily_bin1259.fits scfile=/scratch/kocevski/982118/ft2_4FGL_J1254.2-2205_daily_bin1259.fits outfile=/scratch/kocevski/982118/cmap_HighResolution_565660801_565920001_4FGL_J1254.2-2205_daily_bin1259.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.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/982118/ft1_filtered_4FGL_J1254.2-2205_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/982118/ft2_4FGL_J1254.2-2205_daily_bin1259.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/982118/Model_4FGL_J1254.2-2205_daily_bin1259.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/982118/ft1_filtered_4FGL_J1254.2-2205_daily_bin1259.fits.....................!
real 60.43
user 57.87
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    55.478       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.072       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12235E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7083       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4903       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1783       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.028       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1869       1.0000         .10000E-03   10000.    
    12 'Prefactor '    76.010       1.0000         .10000E-03   10000.    
    13 'norm      '    3.2760       1.0000         .10000E-03   10000.    
    14 'norm      '    .10196E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.583       1.0000         .10000E-03   10000.    
    16 'norm      '    3.7070       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8712       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.1325       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.133       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2644       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3881       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78401       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=   7114.800     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2684 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0626        .10028E-06** at limit **
   2  Prefactor     55.470        51.647       -.83960E-05    .23499E-03
   3  Prefactor     .10000E-03    23.982        .80528E-05** at limit **
   4  Prefactor     32.064        24.675       -.60279E-05    .43183E-03
   5  Prefactor     .10000E-03    30.353       -.82865E-05** at limit **
   6  Prefactor     8.7081        9.6387       -.17028E-07    .27252E-04
   7  Prefactor     1.4871        8.7566       -.43682E-05   -.61798E-03
   8  Prefactor     7.1786        2.7843        .20505E-06    .44568E-03
   9  Prefactor     .10000E-03    7.6739        .97753E-05** at limit **
  10  Prefactor     36.026        16.143       -.63329E-06    .22330E-03
  11  norm          1.1869        .92186       -.15957E-06   -.40449E-03
  12  Prefactor     76.026        78.783        .16612E-04   -.10840E-04
  13  norm          3.2759        5.6017       -.74521E-06   -.23080E-03
  14  norm          .10000E-03    7.3573       -.11323E-04** at limit **
  15  Prefactor     10.586        6.4168        .18482E-05    .73050E-03
  16  norm          3.7071        6.0873       -.64662E-06   -.35958E-03
  17  norm          2.8715        2.6713       -.24231E-06   -.53404E-04
  18  Prefactor     7.1322        8.0582       -.26401E-06   -.76228E-05
  19  Prefactor     .10000E-03    4.8805       -.30311E-06** at limit **
  20  Prefactor     25.133        20.735       -.54120E-06    .36968E-04
  21  Prefactor     .10000E-03    2.7835       -.17760E-07** at limit **
  22  Prefactor     2.2649        5.6994       -.78743E-06   -.37881E-03
  23  Normalizat    1.3884        .24405        .77232E-06    .13529E-03
  24  Prefactor     .78387        .11116       -.61039E-07    .27276E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 55.47
  Prefactor  = 0.000100001
  Prefactor  = 32.064
  Prefactor  = 0.000100005
  Prefactor  = 8.70806
  Prefactor  = 1.48715
  Prefactor  = 7.17861
  Prefactor  = 0.000100003
  Prefactor  = 36.026
  norm       = 1.18686
  Prefactor  = 76.0255
  norm       = 3.27589
  norm       = 0.0001
  Prefactor  = 10.5864
  norm       = 3.70712
  norm       = 2.87149
  Prefactor  = 7.13216
  Prefactor  = 0.0001
  Prefactor  = 25.1327
  Prefactor  = 0.0001
  Prefactor  = 2.26487
  Normalizat = 1.38837
  Prefactor  = 0.783873
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0738        .14415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     55.470        51.504        .53855E-04   -1.4217    
   3  Prefactor     .10000E-03    24.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.064        24.561        .70753E-04   -1.4575    
   5  Prefactor     .10000E-03    30.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.7081        9.6397        .13583E-03   -1.5118    
   7  Prefactor     1.4871        8.8690        .35119E-03   -1.5464    
   8  Prefactor     7.1786        2.7554        .78613E-04   -1.5172    
   9  Prefactor     .10000E-03    7.5809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     36.026        16.118        .66767E-04   -1.4507    
  11  norm          1.1869        .91027        .68465E-04   -1.5490    
  12  Prefactor     76.026        78.875        .46056E-04   -1.3962    
  13  norm          3.2759        5.5945        .22372E-03   -1.5346    
  14  norm          .10000E-03    7.7811        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.586        6.4348        .12316E-03   -1.5057    
  16  norm          3.7071        6.0902        .20975E-03   -1.5323    
  17  norm          2.8715        2.6685        .12840E-03   -1.5369    
  18  Prefactor     7.1322        8.0578        .15020E-03   -1.5174    
  19  Prefactor     .10000E-03    4.8873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     25.133        20.735        .79904E-04   -1.4705    
  21  Prefactor     .10000E-03    2.7843        .13744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.2649        5.6798        .27296E-03   -1.5407    
  23  Normalizat    1.3884        .28692        .33482E-03   -.80966    
  24  Prefactor     .78387        .13098        .19754E-03   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43043e-09
Minuit parameter uncertainties:
  1  1.03147e-05
  2  51.5449
  3  0.000365072
  4  24.5689
  5  0.000775276
  6  9.64142
  7  7.26483
  8  2.75546
  9  0.000296055
  10  16.1201
  11  0.910284
  12  78.9835
  13  5.59534
  14  0.000114506
  15  6.4352
  16  6.09125
  17  2.66861
  18  8.05902
  19  6.41973e-06
  20  20.7408
  21  4.98067e-08
  22  5.68113
  23  0.287256
  24  0.131028
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  7.603e+01  7.898e+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.839e-01  1.310e-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.388e+00  2.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.51
Ra Dec: 193.552 -22.087
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 4.53e-08 +/- 4.70e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 2.15e-05

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

Saving results to:
/scratch/kocevski/982118/likelihoodResults_565660801_565920001_4FGL_J1254.2-2205_daily_bin1259.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) = 7114.79831853
delta logL = 0.00163320846787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7114.79669749
delta logL = 0.00325424751281

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.239       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2529       1.0000          .0000       10.000    
     3 'Normalizat'    1.3860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78443       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=   7114.797     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      285 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.328        113.82        .23949E-03    .14545E-03
   2  Index         2.2523        .86789        .75985E-02    .14856E-03
   3  Normalizat    1.3854        .28304        .33511E-03   -.61744E-04
   4  Prefactor     .78471        .12956        .19744E-03    .15305E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.3277
  Index      = 2.25232
  Normalizat = 1.38542
  Prefactor  = 0.784709
 **********
 **   18 **HESSE 
 **********

 FCN=   7114.797     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.328        100.67        .95795E-05   -1.4029    
   2  Index         2.2523        .76778        .30394E-03   -.58181    
   3  Normalizat    1.3854        .28248        .13404E-04   -.81051    
   4  Prefactor     .78471        .12944        .78976E-05   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40406e-10
Minuit parameter uncertainties:
  1  100.917
  2  0.77217
  3  0.282796
  4  0.129486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/982118': 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) = 7114.79669435
delta logL = 0.00325738188894

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  7.033e+01  1.009e+02  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.252e+00  7.722e-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.847e-01  1.295e-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.385e+00  2.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 193.552 -22.087
Photon Index (Free Index): 2.25 +/- 0.77
Photon Flux (Free Index): 4.78e-08 +/- 5.63e-08
Energy Flux (Free Index): 1.96e-05 +/- 2.32e-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/982118/cmap_HighResolution_565660801_565920001_4FGL_J1254.2-2205_daily_bin1259.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', photon_flux='4.53e-08', energy_flux2='1.96e-05', photon_flux_error='4.70e-08', dlogl='3.26e-03', energy_flux='2.07e-05', photon_flux2='4.78e-08', job_status='DONE', time_completed='2021-09-06 08:59:29.273370', photon_index_error2='0.77', photon_index2='2.25', ts='1.51', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='2.32e-05', EG='1.39', time_epoch_completed='1630943969.27', return_code='0', job_id='982118', GAL2='0.78', EG2='1.39', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='5.63e-08', ts2='1.52', photon_index='2.19' WHERE bin_id='1259' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:59:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 982118: <4FGL_J1254.2-2205_daily_bin1259> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1259> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 08:46:01 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:46:01 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:46:01 2021
Terminated at Mon Sep  6 08:59:30 2021
Results reported at Mon Sep  6 08:59:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1259 193.552 -22.0872 565660801 565920001 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 :                                   745.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            809 sec.

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

