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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1141
RA = 193.552, Dec = -22.0872
tmin = 535075201, tmax = 535334401
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='981970', job_status='RUN', time_executed='2021-09-06 08:46:23.182269', time_epoch_executed='1630943183.18' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/981970

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/981970/ft1_4FGL_J1254.2-2205_daily_bin1141.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/981970/ft2_4FGL_J1254.2-2205_daily_bin1141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/981970/ft1_4FGL_J1254.2-2205_daily_bin1141.fits outfile=/scratch/kocevski/981970/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1141.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=535075201.0 tmax=535334401.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 4.94
user 4.71
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/981970/ft1_filtered_4FGL_J1254.2-2205_daily_bin1141.fits" evtable="EVENTS" scfile=/scratch/kocevski/981970/ft2_4FGL_J1254.2-2205_daily_bin1141.fits sctable="SC_DATA" outfile=/scratch/kocevski/981970/ltcube_535075201_535334401_4FGL_J1254.2-2205_daily_bin1141.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/981970/ft2_4FGL_J1254.2-2205_daily_bin1141.fits
.....................!
real 12.02
user 11.22
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/981970/ft1_filtered_4FGL_J1254.2-2205_daily_bin1141.fits evtable="EVENTS" scfile=/scratch/kocevski/981970/ft2_4FGL_J1254.2-2205_daily_bin1141.fits sctable="SC_DATA" expcube=/scratch/kocevski/981970/ltcube_535075201_535334401_4FGL_J1254.2-2205_daily_bin1141.fits outfile=/scratch/kocevski/981970/expmap_535075201_535334401_4FGL_J1254.2-2205_daily_bin1141.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/981970/ltcube_535075201_535334401_4FGL_J1254.2-2205_daily_bin1141.fits
.....................!
real 191.47
user 185.33
sys 5.05

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/981970/ft1_filtered_4FGL_J1254.2-2205_daily_bin1141.fits scfile=/scratch/kocevski/981970/ft2_4FGL_J1254.2-2205_daily_bin1141.fits outfile=/scratch/kocevski/981970/cmap_535075201_535334401_4FGL_J1254.2-2205_daily_bin1141.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/981970/ft1_filtered_4FGL_J1254.2-2205_daily_bin1141.fits scfile=/scratch/kocevski/981970/ft2_4FGL_J1254.2-2205_daily_bin1141.fits outfile=/scratch/kocevski/981970/cmap_HighResolution_535075201_535334401_4FGL_J1254.2-2205_daily_bin1141.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/981970/ft1_filtered_4FGL_J1254.2-2205_daily_bin1141.fits evtable="EVENTS" scfile=/scratch/kocevski/981970/ft2_4FGL_J1254.2-2205_daily_bin1141.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/981970/Model_4FGL_J1254.2-2205_daily_bin1141.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/981970/ft1_filtered_4FGL_J1254.2-2205_daily_bin1141.fits.....................!
real 65.68
user 64.12
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9602       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7810       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6673       1.0000         .10000E-03   10000.    
    12 'Prefactor '    86.813       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .12929E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.304       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.4819       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.693       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6056       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71834       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=   8360.442     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2353 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9606        6.5550       -.31393E-06   -.30147E-03
   2  Prefactor     .10000E-03    31.379        .88042E-05** at limit **
   3  Prefactor     .10000E-03    17.881        .86881E-05** at limit **
   4  Prefactor     .10000E-03    5.8516       -.37726E-06** at limit **
   5  Prefactor     .10000E-03    13.015       -.44059E-05** at limit **
   6  Prefactor     .10000E-03    7.0174        .86356E-06** at limit **
   7  Prefactor     .10000E-03    4.8193        .19172E-06** at limit **
   8  Prefactor     6.7811        2.4493       -.29320E-07    .41428E-04
   9  Prefactor     .10000E-03    4.5707       -.10534E-06** at limit **
  10  Prefactor     .10000E-03    8.6834       -.22571E-05** at limit **
  11  norm          1.6673        .95577       -.20847E-07   -.59849E-03
  12  Prefactor     86.811        57.639       -.10513E-04   -.88000E-04
  13  norm          .10000E-03    10.883        .66813E-05** at limit **
  14  norm          .22402E-01    4.1622        .79740E-06   -.25705E-03
  15  Prefactor     11.297        6.0241        .46415E-06   -.57062E-03
  16  norm          .10000E-03    2.3891       -.15145E-07** at limit **
  17  norm          6.4817        2.8656       -.15401E-07   -.11966E-03
  18  Prefactor     .10000E-03    2.0182        .12956E-07** at limit **
  19  Prefactor     .10000E-03    12.990       -.49691E-05** at limit **
  20  Prefactor     .10000E-03    26.254       -.12647E-04** at limit **
  21  Prefactor     12.693        11.170       -.11825E-05   -.10817E-02
  22  Prefactor     .10000E-03    4.3232        .83075E-07** at limit **
  23  Normalizat    1.6056        .21666        .49947E-06   -.11121E-03
  24  Prefactor     .71833        .99417E-01    .24024E-06   -.13217E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.96057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.78106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.6673
  Prefactor  = 86.811
  norm       = 0.0001
  norm       = 0.0224016
  Prefactor  = 11.2971
  norm       = 0.0001
  norm       = 6.4817
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6933
  Prefactor  = 0.0001
  Normalizat = 1.60561
  Prefactor  = 0.71833
 **********
 **   18 **HESSE 
 **********

 FCN=   8360.442     FROM HESSE     STATUS=OK           399 CALLS     2752 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9606        6.5621        .16448E-03   -1.5220    
   2  Prefactor     .10000E-03    31.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.0312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9437        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.7811        2.4471        .83549E-04   -1.5187    
   9  Prefactor     .10000E-03    4.5866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.7729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6673        .95007        .64700E-04   -1.5450    
  12  Prefactor     86.811        57.735        .21560E-03   -1.3842    
  13  norm          .10000E-03    11.113        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22402E-01    4.6541        .50589E-01   -1.5678    
  15  Prefactor     11.297        6.0411        .11916E-03   -1.5036    
  16  norm          .10000E-03    2.4410        .13798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.4817        2.8660        .99548E-04   -1.5199    
  18  Prefactor     .10000E-03    2.0189        .12686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.330        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.693        11.418        .56216E-03   -1.4995    
  22  Prefactor     .10000E-03    4.3407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6056        .25548        .30775E-03   -.74853    
  24  Prefactor     .71833        .11723        .20055E-03   -1.0281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42496e-09
Minuit parameter uncertainties:
  1  6.56291
  2  1.14933e-05
  3  1.00133e-05
  4  8.20896e-07
  5  1.62055e-06
  6  2.65713e-06
  7  3.25655e-06
  8  2.44715
  9  1.53356e-06
  10  5.59434e-07
  11  0.950077
  12  57.7728
  13  6.82586e-05
  14  0.644394
  15  6.04141
  16  2.35003e-06
  17  2.86605
  18  3.37934e-07
  19  4.97056e-05
  20  7.97945e-05
  21  11.4202
  22  2.78013e-06
  23  0.255689
  24  0.117272
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  8.681e+01  5.777e+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.183e-01  1.173e-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.606e+00  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.73
Ra Dec: 193.552 -22.087
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 5.17e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 1.57e-05

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) = 8359.55924606
delta logL = 0.882983892314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8359.5579775
delta logL = 0.884252451368

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    154.94       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6510       1.0000          .0000       10.000    
     3 'Normalizat'    1.6273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71170       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=   8359.558     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      301 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     154.96        98.438        .16193E-03    .48302E-05
   2  Index         1.6509        .37131        .72035E-02    .16206E-03
   3  Normalizat    1.6272        .25380        .30613E-03   -.19757E-04
   4  Prefactor     .71174        .11680        .20135E-03    .10050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 154.958
  Index      = 1.65093
  Normalizat = 1.62724
  Prefactor  = 0.71174
 **********
 **   18 **HESSE 
 **********

 FCN=   8359.558     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     154.96        97.960        .32387E-04   -1.3212    
   2  Index         1.6509        .36954        .14407E-02   -.73396    
   3  Normalizat    1.6272        .25401        .12245E-04   -.74263    
   4  Prefactor     .71174        .11690        .80540E-05   -1.0307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40563e-12
Minuit parameter uncertainties:
  1  98.063
  2  0.370151
  3  0.254214
  4  0.116944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/981970': 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) = 8359.55797741
delta logL = 0.88425254703

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.550e+02  9.806e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.651e+00  3.702e-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.117e-01  1.169e-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.627e+00  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.54
Ra Dec: 193.552 -22.087
Photon Index (Free Index): 1.65 +/- 0.37
Photon Flux (Free Index): 3.31e-08 +/- 2.53e-08
Energy Flux (Free Index): 6.33e-05 +/- 6.23e-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/981970/cmap_HighResolution_535075201_535334401_4FGL_J1254.2-2205_daily_bin1141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.17e-08', energy_flux2='6.33e-05', photon_flux_error='3.44e-08', dlogl='8.84e-01', energy_flux='2.36e-05', photon_flux2='3.31e-08', job_status='DONE', time_completed='2021-09-06 08:58:31.994562', photon_index_error2='0.37', photon_index2='1.65', ts='7.73', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='6.23e-05', EG='1.61', time_epoch_completed='1630943911.99', return_code='0', job_id='981970', GAL2='0.71', EG2='1.63', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='2.53e-08', ts2='9.54', photon_index='2.19' WHERE bin_id='1141' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:58:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 981970: <4FGL_J1254.2-2205_daily_bin1141> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1141 193.552 -22.0872 535075201 535334401 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 :                                   702.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            763 sec.

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

