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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin604
RA = 193.552, Dec = -22.0872
tmin = 395884801, tmax = 396144001
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='978841', job_status='RUN', time_executed='2021-09-06 08:37:57.812249', time_epoch_executed='1630942677.81' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/978841

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/978841/ft1_4FGL_J1254.2-2205_daily_bin604.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/978841/ft2_4FGL_J1254.2-2205_daily_bin604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/978841/ft1_4FGL_J1254.2-2205_daily_bin604.fits outfile=/scratch/kocevski/978841/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin604.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=395884801.0 tmax=396144001.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.31
user 3.10
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/978841/ft1_filtered_4FGL_J1254.2-2205_daily_bin604.fits" evtable="EVENTS" scfile=/scratch/kocevski/978841/ft2_4FGL_J1254.2-2205_daily_bin604.fits sctable="SC_DATA" outfile=/scratch/kocevski/978841/ltcube_395884801_396144001_4FGL_J1254.2-2205_daily_bin604.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/978841/ft2_4FGL_J1254.2-2205_daily_bin604.fits
.....................!
real 12.73
user 12.29
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/978841/ft1_filtered_4FGL_J1254.2-2205_daily_bin604.fits evtable="EVENTS" scfile=/scratch/kocevski/978841/ft2_4FGL_J1254.2-2205_daily_bin604.fits sctable="SC_DATA" expcube=/scratch/kocevski/978841/ltcube_395884801_396144001_4FGL_J1254.2-2205_daily_bin604.fits outfile=/scratch/kocevski/978841/expmap_395884801_396144001_4FGL_J1254.2-2205_daily_bin604.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/978841/ltcube_395884801_396144001_4FGL_J1254.2-2205_daily_bin604.fits
.....................!
real 193.24
user 187.52
sys 5.26

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/978841/ft1_filtered_4FGL_J1254.2-2205_daily_bin604.fits scfile=/scratch/kocevski/978841/ft2_4FGL_J1254.2-2205_daily_bin604.fits outfile=/scratch/kocevski/978841/cmap_395884801_396144001_4FGL_J1254.2-2205_daily_bin604.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.37
sys 0.16

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/978841/ft1_filtered_4FGL_J1254.2-2205_daily_bin604.fits evtable="EVENTS" scfile=/scratch/kocevski/978841/ft2_4FGL_J1254.2-2205_daily_bin604.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/978841/Model_4FGL_J1254.2-2205_daily_bin604.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/978841/ft1_filtered_4FGL_J1254.2-2205_daily_bin604.fits.....................!
real 62.18
user 59.96
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.086       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.750       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.463       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20248E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10690E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .97799       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.7209       1.0000         .10000E-03   10000.    
    14 'norm      '    9.4444       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1691       1.0000         .10000E-03   10000.    
    16 'norm      '    .12027E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.032       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.505       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.9147       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81357       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=   7316.392     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2686 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7446       -.54283E-07** at limit **
   2  Prefactor     14.147        49.007        .11829E-03    .70828E-05
   3  Prefactor     .10000E-03    13.475        .19565E-05** at limit **
   4  Prefactor     28.747        23.543       -.10597E-04   -.10105E-03
   5  Prefactor     .10000E-03    26.141        .69735E-05** at limit **
   6  Prefactor     .10000E-03    11.204       -.18047E-05** at limit **
   7  Prefactor     .10000E-03    3.4405        .68310E-07** at limit **
   8  Prefactor     10.468        3.2829        .11671E-06   -.84693E-04
   9  Prefactor     .10003E-03    8.8824        .11242E-05** at limit **
  10  Prefactor     .10000E-03    13.479        .15055E-05** at limit **
  11  norm          .97822        .96658        .13233E-07   -.52775E-03
  12  Prefactor     .10000E-03    24.180       -.92988E-05** at limit **
  13  norm          9.7247        10.135        .66795E-06   -.95389E-04
  14  norm          9.4466        8.0108        .69486E-06   -.13854E-03
  15  Prefactor     5.1695        7.2028        .67833E-06   -.24479E-03
  16  norm          .10000E-03    11.098        .11493E-06** at limit **
  17  norm          .10000E-03    1.2087       -.75913E-07** at limit **
  18  Prefactor     13.035        11.926        .28785E-06   -.27649E-04
  19  Prefactor     .10000E-03    7.4424        .59426E-06** at limit **
  20  Prefactor     19.511        31.668        .65906E-05   -.16736E-04
  21  Prefactor     .10000E-03    4.1104        .13848E-06** at limit **
  22  Prefactor     .10000E-03    6.9549       -.19403E-06** at limit **
  23  Normalizat    1.9142        .27322       -.13024E-05   -.17909E-03
  24  Prefactor     .81356        .12297       -.25985E-05   -.13115E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.1474
  Prefactor  = 0.0001
  Prefactor  = 28.7469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4675
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  norm       = 0.978217
  Prefactor  = 0.0001
  norm       = 9.72467
  norm       = 9.44662
  Prefactor  = 5.16951
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.0352
  Prefactor  = 0.0001
  Prefactor  = 19.5107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.91415
  Prefactor  = 0.813556
 **********
 **   18 **HESSE 
 **********

 FCN=   7316.392     FROM HESSE     STATUS=OK           397 CALLS     3083 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7509        .13838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.147        48.945        .10672E-03   -1.4956    
   3  Prefactor     .10000E-03    13.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.747        23.551        .74719E-04   -1.4635    
   5  Prefactor     .10000E-03    26.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.4551        .15486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.468        3.2821        .84155E-04   -1.5061    
   9  Prefactor     .10003E-03    65.179        .49251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .97822        .92799        .80049E-03   -1.5510    
  12  Prefactor     .10000E-03    24.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.7247        10.132        .12853E-03   -1.5084    
  14  norm          9.4466        7.9733        .13040E-03   -1.5093    
  15  Prefactor     5.1695        7.1611        .17682E-03   -1.5253    
  16  norm          .10000E-03    11.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.2303        .91815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.035        11.927        .11096E-03   -1.4986    
  19  Prefactor     .10000E-03    7.4556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.511        31.666        .90689E-04   -1.4824    
  21  Prefactor     .10000E-03    4.1130        .16935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.9750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.9142        .32357        .33641E-03   -.66720    
  24  Prefactor     .81356        .14580        .21678E-03   -.99231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61643e-10
Minuit parameter uncertainties:
  1  1.29044e-05
  2  49.0848
  3  1.91392e-06
  4  23.5584
  5  0.000152893
  6  2.14668e-05
  7  5.02718e-06
  8  3.28213
  9  0.00256412
  10  4.07694e-05
  11  0.928003
  12  6.1199e-06
  13  10.134
  14  7.97419
  15  7.16233
  16  0.000122295
  17  4.21678e-06
  18  11.9292
  19  1.00107e-05
  20  31.6934
  21  4.70483e-06
  22  3.88562e-06
  23  0.323935
  24  0.145866
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  6.120e-06  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:  8.136e-01  1.459e-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.914e+00  3.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.552 -22.087
Photon Flux Upper Limit: 7.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/978841/likelihoodResults_395884801_396144001_4FGL_J1254.2-2205_daily_bin604.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) = 7316.39216765
delta logL = -0.000196542536287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7316.39197186
delta logL = -7.58693204261e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4596       1.0000          .0000       10.000    
     3 'Normalizat'    1.9141       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81356       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=   7316.392     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      267 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10166E-03    109.01        .18142E-02** at limit **
   2  Index         2.3988        8.1791        .50000        .13808E-04
   3  Normalizat    1.9142        .16854E-01    .33641E-03   -.98421E-04
   4  Prefactor     .81355        .75704E-02    .21678E-03   -.16478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101655
  Index      = 2.39884
  Normalizat = 1.91415
  Prefactor  = 0.813555
 **********
 **   18 **HESSE 
 **********

 FCN=   7316.392     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      296 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10166E-03    471.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3988        5.4579        .50000       -.54712    
   3  Normalizat    1.9142        .35984E-01    .67283E-04   -.66720    
   4  Prefactor     .81355        .16163E-01    .86711E-05   -.99231    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.45635e-08
Minuit parameter uncertainties:
  1  0.0562916
  2  492.55
  3  0.0359845
  4  0.0161626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/978841': 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) = 7316.39197166
delta logL = -5.5674900068e-07

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.017e-04  5.629e-02  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.399e+00  4.926e+02  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:  8.136e-01  1.616e-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.914e+00  3.598e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/978841/cmap_HighResolution_395884801_396144001_4FGL_J1254.2-2205_daily_bin604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-03', job_status='DONE', photon_flux_upper_limit='7.54e-08', time_completed='2021-09-06 08:50:45.033941', job_id='978841', GAL2='0.81', fit_tolerance='1e-08', EG2='1.91', EG='1.91', time_epoch_completed='1630943445.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-5.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='604' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:50:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 978841: <4FGL_J1254.2-2205_daily_bin604> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin604> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 08:35:40 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:35:41 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:35:41 2021
Terminated at Mon Sep  6 08:50:45 2021
Results reported at Mon Sep  6 08:50:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin604 193.552 -22.0872 395884801 396144001 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 :                                   763.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            905 sec.

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

