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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1211
RA = 193.552, Dec = -22.0872
tmin = 553219201, tmax = 553478401
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='982067', job_status='RUN', time_executed='2021-09-06 08:46:13.222128', time_epoch_executed='1630943173.22' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/982067

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/982067/ft1_4FGL_J1254.2-2205_daily_bin1211.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/982067/ft2_4FGL_J1254.2-2205_daily_bin1211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/982067/ft1_4FGL_J1254.2-2205_daily_bin1211.fits outfile=/scratch/kocevski/982067/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1211.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=553219201.0 tmax=553478401.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 2.75
user 2.52
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/982067/ft2_4FGL_J1254.2-2205_daily_bin1211.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/982067/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1211.fits evtable="EVENTS" outfile="/scratch/kocevski/982067/ft1_filtered_4FGL_J1254.2-2205_daily_bin1211.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/982067/ft1_filtered_4FGL_J1254.2-2205_daily_bin1211.fits" evtable="EVENTS" scfile=/scratch/kocevski/982067/ft2_4FGL_J1254.2-2205_daily_bin1211.fits sctable="SC_DATA" outfile=/scratch/kocevski/982067/ltcube_553219201_553478401_4FGL_J1254.2-2205_daily_bin1211.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/982067/ft2_4FGL_J1254.2-2205_daily_bin1211.fits
.....................!
real 12.25
user 11.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/982067/ft1_filtered_4FGL_J1254.2-2205_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/982067/ft2_4FGL_J1254.2-2205_daily_bin1211.fits sctable="SC_DATA" expcube=/scratch/kocevski/982067/ltcube_553219201_553478401_4FGL_J1254.2-2205_daily_bin1211.fits outfile=/scratch/kocevski/982067/expmap_553219201_553478401_4FGL_J1254.2-2205_daily_bin1211.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/982067/ltcube_553219201_553478401_4FGL_J1254.2-2205_daily_bin1211.fits
.....................!
real 192.45
user 186.26
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/982067/ft1_filtered_4FGL_J1254.2-2205_daily_bin1211.fits scfile=/scratch/kocevski/982067/ft2_4FGL_J1254.2-2205_daily_bin1211.fits outfile=/scratch/kocevski/982067/cmap_553219201_553478401_4FGL_J1254.2-2205_daily_bin1211.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 1.12
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/982067/ft1_filtered_4FGL_J1254.2-2205_daily_bin1211.fits scfile=/scratch/kocevski/982067/ft2_4FGL_J1254.2-2205_daily_bin1211.fits outfile=/scratch/kocevski/982067/cmap_HighResolution_553219201_553478401_4FGL_J1254.2-2205_daily_bin1211.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.98
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.828       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5984       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0938       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3292       1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    93.056       1.0000         .10000E-03   10000.    
    13 'norm      '    .72936E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .15489E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.0013       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0162       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0387       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.612       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11555E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2109       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98530       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=   10271.30     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2745 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4112       -.77197E-07** at limit **
   2  Prefactor     .10000E-03    21.590       -.29551E-06** at limit **
   3  Prefactor     15.819        20.705        .20851E-06   -.42465E-04
   4  Prefactor     .10000E-03    13.716       -.28696E-06** at limit **
   5  Prefactor     .10000E-03    46.482        .71702E-06** at limit **
   6  Prefactor     .10000E-03    6.4850        .40207E-07** at limit **
   7  Prefactor     .10000E-03    1.3382        .36031E-07** at limit **
   8  Prefactor     8.5983        2.3432       -.12903E-07   -.10333E-04
   9  Prefactor     4.0939        9.0063        .16526E-05    .41209E-03
  10  Prefactor     7.3291        9.5110        .66013E-06    .21978E-03
  11  norm          .10000E-03    .19863       -.59219E-07** at limit **
  12  Prefactor     93.006        59.036        .40252E-05    .40773E-03
  13  norm          .10045E-03    4.9657        .23230E-05** at limit **
  14  norm          .10000E-03    4.5008       -.42703E-05** at limit **
  15  Prefactor     .10000E-03    2.6713       -.37177E-06** at limit **
  16  norm          .10000E-03    1.8759        .43301E-07** at limit **
  17  norm          7.0011        2.6786        .50724E-07    .73763E-03
  18  Prefactor     5.0162        6.3751        .43664E-06    .22311E-03
  19  Prefactor     6.0405        7.3614        .20927E-06    .84105E-04
  20  Prefactor     10.617        18.497       -.24801E-06   -.10089E-04
  21  Prefactor     .10000E-03    15.756        .24673E-06** at limit **
  22  Prefactor     .10000E-03    15.167        .47094E-06** at limit **
  23  Normalizat    1.2109        .19800       -.29544E-06    .37364E-03
  24  Prefactor     .98528        .94234E-01   -.76546E-07    .68512E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8193
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.59831
  Prefactor  = 4.09393
  Prefactor  = 7.32912
  norm       = 0.0001
  Prefactor  = 93.006
  norm       = 0.00010045
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.00106
  Prefactor  = 5.01621
  Prefactor  = 6.0405
  Prefactor  = 10.6172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21093
  Prefactor  = 0.98528
 **********
 **   18 **HESSE 
 **********

 FCN=   10271.30     FROM HESSE     STATUS=OK           397 CALLS     3142 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5327        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.819        20.661        .10067E-03   -1.4912    
   4  Prefactor     .10000E-03    13.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    46.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.3430        .11446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.5983        2.3426        .78341E-04   -1.5121    
   9  Prefactor     4.0939        9.3879        .99626E-03   -1.5303    
  10  Prefactor     7.3291        9.6069        .74077E-03   -1.5166    
  11  norm          .10000E-03    .33000        .87690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     93.006        63.595        .20830E-03   -1.3776    
  13  norm          .10045E-03    43.088        .35568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.7214        .30371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7063        .16126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8954        .13553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.0011        2.6812        .99534E-04   -1.5179    
  18  Prefactor     5.0162        6.4133        .89773E-03   -1.5260    
  19  Prefactor     6.0405        7.3786        .81695E-03   -1.5216    
  20  Prefactor     10.617        18.494        .12299E-03   -1.5056    
  21  Prefactor     .10000E-03    16.395        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.643        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2109        .23344        .34427E-03   -.86266    
  24  Prefactor     .98528        .11202        .18207E-03   -.93222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12333e-08
Minuit parameter uncertainties:
  1  7.60452e-06
  2  0.000185844
  3  20.6701
  4  0.000152372
  5  0.000338158
  6  4.74657e-06
  7  5.20274e-07
  8  2.34265
  9  9.39126
  10  9.60895
  11  4.68776e-07
  12  63.642
  13  0.00881444
  14  8.30358e-05
  15  1.22332e-05
  16  2.88104e-06
  17  2.68123
  18  6.41416
  19  7.37967
  20  18.504
  21  0.000163315
  22  7.58723e-05
  23  0.233637
  24  0.112045
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  9.301e+01  6.364e+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:  9.853e-01  1.120e-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.211e+00  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.30
Ra Dec: 193.552 -22.087
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 5.54e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.73e-05

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

Saving results to:
/scratch/kocevski/982067/likelihoodResults_553219201_553478401_4FGL_J1254.2-2205_daily_bin1211.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) = 10271.1183228
delta logL = 0.181851395406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10271.0833185
delta logL = 0.216855752346

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.611       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5903       1.0000          .0000       10.000    
     3 'Normalizat'    1.1811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99377       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=   10271.08     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      317 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.665        109.96        .55295E-04   -.29738E-03
   2  Index         2.5894        1.0144        .53217E-02   -.19608E-03
   3  Normalizat    1.1799        .24196        .34809E-03   -.15625E-03
   4  Prefactor     .99452        .11462        .18131E-03    .96841E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.665
  Index      = 2.58941
  Normalizat = 1.17989
  Prefactor  = 0.99452
 **********
 **   18 **HESSE 
 **********

 FCN=   10271.08     FROM HESSE     STATUS=OK            25 CALLS      342 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.665        72.314        .11059E-04   -1.4255    
   2  Index         2.5894        .66818        .21287E-03   -.50307    
   3  Normalizat    1.1799        .23597        .13923E-04   -.87227    
   4  Prefactor     .99452        .11269        .36263E-04   -.92912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25996e-09
Minuit parameter uncertainties:
  1  72.4344
  2  0.670803
  3  0.236187
  4  0.11272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/982067': 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) = 10271.0832927
delta logL = 0.216881547796

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  5.267e+01  7.243e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.589e+00  6.708e-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:  9.945e-01  1.127e-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.180e+00  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.74
Ra Dec: 193.552 -22.087
Photon Index (Free Index): 2.59 +/- 0.67
Photon Flux (Free Index): 7.75e-08 +/- 5.54e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.39e-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/982067/cmap_HighResolution_553219201_553478401_4FGL_J1254.2-2205_daily_bin1211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='5.54e-08', energy_flux2='2.05e-05', photon_flux_error='3.79e-08', dlogl='2.17e-01', energy_flux='2.53e-05', photon_flux2='7.75e-08', job_status='DONE', time_completed='2021-09-06 09:02:35.715608', photon_index_error2='0.67', photon_index2='2.59', ts='3.30', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.39e-05', EG='1.21', time_epoch_completed='1630944155.72', return_code='0', job_id='982067', GAL2='0.99', EG2='1.18', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='5.54e-08', ts2='3.74', photon_index='2.19' WHERE bin_id='1211' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:02:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 982067: <4FGL_J1254.2-2205_daily_bin1211> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1211 193.552 -22.0872 553219201 553478401 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 :                                   959.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             310.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   999 sec.
    Turnaround time :                            1000 sec.

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

