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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1119
RA = 193.552, Dec = -22.0872
tmin = 529372801, tmax = 529632001
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='981938', job_status='RUN', time_executed='2021-09-06 08:47:37.892679', time_epoch_executed='1630943257.89' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1119'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/981938

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/981938/ft1_4FGL_J1254.2-2205_daily_bin1119.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/981938/ft2_4FGL_J1254.2-2205_daily_bin1119.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/981938/ft1_4FGL_J1254.2-2205_daily_bin1119.fits outfile=/scratch/kocevski/981938/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1119.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=529372801.0 tmax=529632001.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.07
user 3.31
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/981938/ft1_filtered_4FGL_J1254.2-2205_daily_bin1119.fits" evtable="EVENTS" scfile=/scratch/kocevski/981938/ft2_4FGL_J1254.2-2205_daily_bin1119.fits sctable="SC_DATA" outfile=/scratch/kocevski/981938/ltcube_529372801_529632001_4FGL_J1254.2-2205_daily_bin1119.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/981938/ft2_4FGL_J1254.2-2205_daily_bin1119.fits
.....................!
real 11.97
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/981938/ft1_filtered_4FGL_J1254.2-2205_daily_bin1119.fits evtable="EVENTS" scfile=/scratch/kocevski/981938/ft2_4FGL_J1254.2-2205_daily_bin1119.fits sctable="SC_DATA" expcube=/scratch/kocevski/981938/ltcube_529372801_529632001_4FGL_J1254.2-2205_daily_bin1119.fits outfile=/scratch/kocevski/981938/expmap_529372801_529632001_4FGL_J1254.2-2205_daily_bin1119.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/981938/ltcube_529372801_529632001_4FGL_J1254.2-2205_daily_bin1119.fits
.....................!
real 192.77
user 186.77
sys 4.40

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/981938/ft1_filtered_4FGL_J1254.2-2205_daily_bin1119.fits scfile=/scratch/kocevski/981938/ft2_4FGL_J1254.2-2205_daily_bin1119.fits outfile=/scratch/kocevski/981938/cmap_529372801_529632001_4FGL_J1254.2-2205_daily_bin1119.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/981938/ft1_filtered_4FGL_J1254.2-2205_daily_bin1119.fits scfile=/scratch/kocevski/981938/ft2_4FGL_J1254.2-2205_daily_bin1119.fits outfile=/scratch/kocevski/981938/cmap_HighResolution_529372801_529632001_4FGL_J1254.2-2205_daily_bin1119.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=193.552 yref=-22.0872 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/981938/ft1_filtered_4FGL_J1254.2-2205_daily_bin1119.fits evtable="EVENTS" scfile=/scratch/kocevski/981938/ft2_4FGL_J1254.2-2205_daily_bin1119.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/981938/Model_4FGL_J1254.2-2205_daily_bin1119.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/981938/ft1_filtered_4FGL_J1254.2-2205_daily_bin1119.fits.....................!
real 53.37
user 51.91
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68286E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.657       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6546       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9489       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4065       1.0000         .10000E-03   10000.    
    11 'norm      '    .16390       1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.197       1.0000         .10000E-03   10000.    
    13 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10440E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.760       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.6860       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7144       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77946       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=   6219.852     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     3071 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    6.8453        .69385E-05** at limit **
   2  Prefactor     .10000E-03    17.126       -.47106E-05** at limit **
   3  Prefactor     45.631        38.681       -.27009E-04   -.44645E-04
   4  Prefactor     .10000E-03    24.546        .91611E-05** at limit **
   5  Prefactor     .10000E-03    36.480       -.24614E-05** at limit **
   6  Prefactor     .10000E-03    13.271        .26588E-05** at limit **
   7  Prefactor     .10000E-03    1.7700       -.23542E-07** at limit **
   8  Prefactor     9.6545        2.8978        .13073E-07    .83326E-04
   9  Prefactor     1.9461        26.518       -.47547E-05   -.14570E-03
  10  Prefactor     8.4074        13.255       -.26309E-06   -.44347E-04
  11  norm          .16147        .77005       -.88818E-06   -.33443E-04
  12  Prefactor     38.243        139.90        .72023E-04   -.61270E-04
  13  norm          .10000E-03    9.1007       -.17147E-05** at limit **
  14  norm          .10000E-03    6.2952       -.15147E-05** at limit **
  15  Prefactor     14.762        9.7797       -.36507E-05    .29649E-03
  16  norm          .10000E-03    3.2864       -.43678E-07** at limit **
  17  norm          9.6859        3.9867       -.38789E-06    .20643E-03
  18  Prefactor     .10000E-03    14.670       -.16180E-05** at limit **
  19  Prefactor     .10000E-03    12.099        .45269E-05** at limit **
  20  Prefactor     .10000E-03    18.274       -.44606E-05** at limit **
  21  Prefactor     .10000E-03    8.4560       -.24991E-05** at limit **
  22  Prefactor     .10000E-03    7.3403        .24196E-05** at limit **
  23  Normalizat    1.7144        .27712       -.59317E-06   -.11365E-03
  24  Prefactor     .77951        .12325        .58493E-06   -.27018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100099
  Prefactor  = 0.0001
  Prefactor  = 45.6311
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.65449
  Prefactor  = 1.94608
  Prefactor  = 8.40738
  norm       = 0.161474
  Prefactor  = 38.2428
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 14.7618
  norm       = 0.0001
  norm       = 9.68593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.71438
  Prefactor  = 0.779507
 **********
 **   18 **HESSE 
 **********

 FCN=   6219.852     FROM HESSE     STATUS=OK           387 CALLS     3458 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10010E-03    29.071        .38989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     45.631        38.675        .59337E-04   -1.4356    
   4  Prefactor     .10000E-03    24.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.7719        .10246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.6545        2.8977        .71519E-04   -1.5086    
   9  Prefactor     1.9461        26.620        .29728E-03   -1.5429    
  10  Prefactor     8.4074        13.270        .13826E-03   -1.5128    
  11  norm          .16147        2.5101        .12726E-02   -1.5628    
  12  Prefactor     38.243        138.95        .64851E-04   -1.4470    
  13  norm          .10000E-03    9.1600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.3401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.762        9.7127        .10425E-03   -1.4939    
  16  norm          .10000E-03    3.3209        .13960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.6859        3.9872        .97742E-04   -1.5085    
  18  Prefactor     .10000E-03    14.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.5011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.3642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.7144        .32581        .32922E-03   -.71920    
  24  Prefactor     .77951        .14535        .20753E-03   -1.0049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12155e-08
Minuit parameter uncertainties:
  1  0.00339077
  2  0.000169963
  3  38.6959
  4  0.000363121
  5  0.000190503
  6  1.00866e-05
  7  1.70719e-07
  8  2.89777
  9  14.4025
  10  13.2747
  11  1.27295
  12  140.149
  13  3.08074e-05
  14  0.000236584
  15  9.71378
  16  8.32614e-07
  17  3.98728
  18  5.4646e-05
  19  0.000146577
  20  0.000159468
  21  6.32774e-05
  22  6.15995e-05
  23  0.326219
  24  0.145417
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  3.824e+01  1.401e+02  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.795e-01  1.454e-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.714e+00  3.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/981938/likelihoodResults_529372801_529632001_4FGL_J1254.2-2205_daily_bin1119.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) = 6219.35596448
delta logL = 0.495934606199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6219.34023469
delta logL = 0.511664390079

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.566       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2071       1.0000          .0000       10.000    
     3 'Normalizat'    1.6304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79660       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=   6219.340     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      318 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.556        743.85        .95560E-04   -.34299E-03
   2  Index         3.2075        6.5973        .50241E-02   -.18511E-03
   3  Normalizat    1.6297        .35600        .33552E-03    .31579E-03
   4  Prefactor     .79692        .16163        .20523E-03    .51458E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5562
  Index      = 3.20747
  Normalizat = 1.62967
  Prefactor  = 0.796921
 **********
 **   18 **HESSE 
 **********

 FCN=   6219.340     FROM HESSE     STATUS=OK            25 CALLS      343 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.556        45.951        .38224E-05   -1.4870    
   2  Index         3.2075        1.0391        .20096E-03   -.36667    
   3  Normalizat    1.6297        .33378        .67104E-04   -.74197    
   4  Prefactor     .79692        .14560        .41045E-04   -.99842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79415e-10
Minuit parameter uncertainties:
  1  46.0439
  2  1.04783
  3  0.334236
  4  0.145668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/981938': 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) = 6219.34023197
delta logL = 0.511667107439

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.756e+01  4.604e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  3.207e+00  1.048e+00  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.969e-01  1.457e-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.630e+00  3.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 193.552 -22.087
Photon Index (Free Index): 3.21 +/- 1.05
Photon Flux (Free Index): 1.19e-07 +/- 1.24e-07
Energy Flux (Free Index): 2.17e-05 +/- 2.22e-05

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/981938/cmap_HighResolution_529372801_529632001_4FGL_J1254.2-2205_daily_bin1119.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', energy_flux2='2.17e-05', dlogl='5.12e-01', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-06 09:00:37.712775', photon_index_error2='1.05', photon_index2='3.21', ts='0.10', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.83e-07', energy_flux_error2='2.22e-05', EG='1.71', time_epoch_completed='1630944037.71', return_code='0', job_id='981938', GAL2='0.80', EG2='1.63', return_code2='0', photon_flux_error2='1.24e-07', ts2='1.17', photon_index='2.19' WHERE bin_id='1119' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:00:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 981938: <4FGL_J1254.2-2205_daily_bin1119> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1119> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 08:45:47 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:45:48 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:48 2021
Terminated at Mon Sep  6 09:00:38 2021
Results reported at Mon Sep  6 09:00:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1119 193.552 -22.0872 529372801 529632001 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 :                                   724.00 sec.
    Max Memory :                                 1037 MB
    Average Memory :                             289.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            891 sec.

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

