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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1426
RA = 193.552, Dec = -22.0872
tmin = 608947201, tmax = 609206401
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='983738', job_status='RUN', time_executed='2021-09-06 08:53:54.234046', time_epoch_executed='1630943634.23' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983738

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983738/ft1_4FGL_J1254.2-2205_daily_bin1426.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983738/ft2_4FGL_J1254.2-2205_daily_bin1426.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983738/ft1_4FGL_J1254.2-2205_daily_bin1426.fits outfile=/scratch/kocevski/983738/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1426.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=608947201.0 tmax=609206401.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.25
user 2.90
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/983738/ft2_4FGL_J1254.2-2205_daily_bin1426.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/983738/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1426.fits evtable="EVENTS" outfile="/scratch/kocevski/983738/ft1_filtered_4FGL_J1254.2-2205_daily_bin1426.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.05
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983738/ft1_filtered_4FGL_J1254.2-2205_daily_bin1426.fits" evtable="EVENTS" scfile=/scratch/kocevski/983738/ft2_4FGL_J1254.2-2205_daily_bin1426.fits sctable="SC_DATA" outfile=/scratch/kocevski/983738/ltcube_608947201_609206401_4FGL_J1254.2-2205_daily_bin1426.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/983738/ft2_4FGL_J1254.2-2205_daily_bin1426.fits
.....................!
real 14.21
user 12.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983738/ft1_filtered_4FGL_J1254.2-2205_daily_bin1426.fits evtable="EVENTS" scfile=/scratch/kocevski/983738/ft2_4FGL_J1254.2-2205_daily_bin1426.fits sctable="SC_DATA" expcube=/scratch/kocevski/983738/ltcube_608947201_609206401_4FGL_J1254.2-2205_daily_bin1426.fits outfile=/scratch/kocevski/983738/expmap_608947201_609206401_4FGL_J1254.2-2205_daily_bin1426.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/983738/ltcube_608947201_609206401_4FGL_J1254.2-2205_daily_bin1426.fits
.....................!
real 192.78
user 185.95
sys 5.35

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/983738/ft1_filtered_4FGL_J1254.2-2205_daily_bin1426.fits scfile=/scratch/kocevski/983738/ft2_4FGL_J1254.2-2205_daily_bin1426.fits outfile=/scratch/kocevski/983738/cmap_608947201_609206401_4FGL_J1254.2-2205_daily_bin1426.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=193.552 yref=-22.0872 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983738/ft1_filtered_4FGL_J1254.2-2205_daily_bin1426.fits scfile=/scratch/kocevski/983738/ft2_4FGL_J1254.2-2205_daily_bin1426.fits outfile=/scratch/kocevski/983738/cmap_HighResolution_608947201_609206401_4FGL_J1254.2-2205_daily_bin1426.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/983738/ft1_filtered_4FGL_J1254.2-2205_daily_bin1426.fits evtable="EVENTS" scfile=/scratch/kocevski/983738/ft2_4FGL_J1254.2-2205_daily_bin1426.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/983738/Model_4FGL_J1254.2-2205_daily_bin1426.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/983738/ft1_filtered_4FGL_J1254.2-2205_daily_bin1426.fits...........!
real 14.83
user 13.44
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/983738/ft1_filtered_4FGL_J1254.2-2205_daily_bin1426.fits', '/scratch/kocevski/983738/ft2_4FGL_J1254.2-2205_daily_bin1426.fits', expMap='/scratch/kocevski/983738/expmap_608947201_609206401_4FGL_J1254.2-2205_daily_bin1426.fits', expCube='/scratch/kocevski/983738/ltcube_608947201_609206401_4FGL_J1254.2-2205_daily_bin1426.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/983738/Model_4FGL_J1254.2-2205_daily_bin1426.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/983738/ft1_filtered_4FGL_J1254.2-2205_daily_bin1426.fits
Spacecraft file(s): /scratch/kocevski/983738/ft2_4FGL_J1254.2-2205_daily_bin1426.fits
Exposure map: /scratch/kocevski/983738/expmap_608947201_609206401_4FGL_J1254.2-2205_daily_bin1426.fits
Exposure cube: /scratch/kocevski/983738/ltcube_608947201_609206401_4FGL_J1254.2-2205_daily_bin1426.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/983738/Model_4FGL_J1254.2-2205_daily_bin1426.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 141.496467138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 139.580814766

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12673E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13163       1.0000         .10000E-03   10000.    
     3 'Prefactor '    72.101       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .88468E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    168.95       1.0000         .10000E-03   10000.    
     6 'Prefactor '    112.60       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10940E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10840E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50276E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .85657       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7512       1.0000         .10000E-03   10000.    
    13 'norm      '    .52775       1.0000         .10000E-03   10000.    
    14 'norm      '    .85552E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18382E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .87834E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .80544       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9408       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1439       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6273       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2961       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2346       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    .46443       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   139.5638     FROM MIGRAD    STATUS=CONVERGED    221 CALLS      655 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.357        .67244E-04** at limit **
   2  Prefactor     .10000E-03    116.55       -.37603E-03** at limit **
   3  Prefactor     97.335        193.93        .34833E-03    .35847E-03
   4  Prefactor     .10002E-03    95.839        .36228E-03** at limit **
   5  Prefactor     157.31        98.667        .41256E-04   -.13269E-01
   6  Prefactor     98.007        207.13       -.22934E-03    .35671E-02
   7  Prefactor     .10000E-03    48.562        .44339E-04** at limit **
   8  Prefactor     .10000E-03    12.905        .10149E-05** at limit **
   9  Prefactor     .10000E-03    75.293       -.47543E-03** at limit **
  10  Prefactor     .10000E-03    87.212        .45656E-04** at limit **
  11  norm          1.2650        20.987        .19619E-03    .67476E-04
  12  Prefactor     .10006E-02    746.81        .80135E-03** at limit **
  13  norm          .10000E-03    302.76       -.68681E-04** at limit **
  14  norm          .10000E-03    158.77       -.29305E-03** at limit **
  15  Prefactor     .10000E-03    120.60       -.69540E-04** at limit **
  16  norm          .10000E-03    54.930        .21418E-03** at limit **
  17  norm          .11945E-03    6839.4       -.59659E-03** at limit **
  18  Prefactor     1.9408        1.0378         .0000         .0000    
  19  Prefactor     1.1439        1.1603         .0000         .0000    
  20  Prefactor     8.6273        1.0017         .0000         .0000    
  21  Prefactor     1.2961        1.1056         .0000         .0000    
  22  Prefactor     3.2346        1.0125         .0000         .0000    
  23  Normalizat    .10000E-01    1.3972        .95492E-04** at limit **
  24  Prefactor     .45698        .33752        .32086E-06    .29107E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 97.3354
  Prefactor  = 0.000100023
  Prefactor  = 157.313
  Prefactor  = 98.0073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.26498
  Prefactor  = 0.00100059
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000119454
  Prefactor  = 1.94084
  Prefactor  = 1.14393
  Prefactor  = 8.62728
  Prefactor  = 1.29613
  Prefactor  = 3.23462
  Normalizat = 0.01
  Prefactor  = 0.456982
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   139.5638     FROM HESSE     STATUS=FAILED        77 CALLS      732 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.171        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    116.62        .96610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     97.335        145.38        .11820E-02   -1.3732    
   4  Prefactor     .10002E-03    95.627        .94561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     157.31        170.84        .77592E-03   -1.3193    
   6  Prefactor     98.007        151.55        .94775E-03   -1.3725    
   7  Prefactor     .10000E-03    47.797        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.870        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    75.190        .90772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    87.246        .95974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2650        16.921        .12649E-01   -1.5483    
  12  Prefactor     .10006E-02    914.70        .38606E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    301.65        .11384E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    158.50        .94421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    120.65        .91146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    55.254        .94531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11945E-03    6845.5        .12460E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     569.97        567.89         .0000       -1.5429    
  19  Prefactor     1.1439        1.1603         .0000       -1.5494    
  20  Prefactor     8.6273        1.0017         .0000       -1.5120    
  21  Prefactor     1.2961        1.1056         .0000       -1.5480    
  22  Prefactor     3.2346        1.0125         .0000       -1.5348    
  23  Normalizat    .10000E-01    .25763        .95492E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .45698        .79726        .32086E-06   -1.1399    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.27963e-10
Minuit parameter uncertainties:
  1  0.000193901
  2  0.00111772
  3  145.915
  4  0.00294556
  5  171.382
  6  152.153
  7  5.91245e-05
  8  3.31934e-06
  9  1.74435e-07
  10  3.71491e-05
  11  9.25601
  12  1.84411
  13  4.94165e-05
  14  0.000407569
  15  5.07472e-05
  16  0.000155603
  17  0.57603
  18  1.03778
  19  1.16033
  20  1.00169
  21  1.10561
  22  1.01247
  23  8.64166e-07
  24  0.818022
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 139.563845775

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.001e-03  1.844e+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

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  4.570e-01  8.180e-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.000e-02  8.642e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.552 -22.087
Photon Flux Upper Limit: 2.90e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.21e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/983738/likelihoodResults_608947201_609206401_4FGL_J1254.2-2205_daily_bin1426.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 139.56384606
delta logL = -2.85249541321e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 139.56384895
delta logL = -3.17508013836e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99791E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1911       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45702       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=   139.5638     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      233 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10139E-03    326.52        .20764E-01** at limit **
   2  Index         2.4281        5.2217        .50000        .45532E-06
   3  Normalizat    .10000E-01    .13735E-02    .75115E-02** at limit **
   4  Prefactor     .45698        .80393E-02    .14411E-03    .35082E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101389
  Index      = 2.42811
  Normalizat = 0.01
  Prefactor  = 0.456982
 **********
 **   18 **HESSE 
 **********

 FCN=   139.5638     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      262 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10139E-03    2070.1        .30386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4281        6.1398        .50000       -.54028    
   3  Normalizat    .10000E-01    .93357E-02    .15023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .45698        .20956E-01    .28821E-04   -1.1399    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.88346e-10
Minuit parameter uncertainties:
  1  0.111324
  2  1002.29
  3  1.84825e-07
  4  0.0209567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983738': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 139.563845318
delta logL = 4.56618977296e-07

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.014e-04  1.113e-01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.428e+00  1.002e+03  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:  4.570e-01  2.096e-02  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.000e-02  1.848e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.552 -22.087

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/983738/cmap_HighResolution_608947201_609206401_4FGL_J1254.2-2205_daily_bin1426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-01', job_status='DONE', photon_flux_upper_limit='2.90e-06', time_completed='2021-09-06 09:05:27.904514', job_id='983738', GAL2='0.46', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630944327.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.46', dlogl='4.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1426' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:05:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 983738: <4FGL_J1254.2-2205_daily_bin1426> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1426> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 08:50:49 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:50:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 08:50:51 2021
Terminated at Mon Sep  6 09:05:28 2021
Results reported at Mon Sep  6 09:05:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1426 193.552 -22.0872 608947201 609206401 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 :                                   323.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             159.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            879 sec.

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

