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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1552
RA = 193.552, Dec = -22.0872
tmin = 641606401, tmax = 641865601
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='984902', job_status='RUN', time_executed='2021-09-06 08:57:13.202858', time_epoch_executed='1630943833.2' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984902

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984902/ft1_4FGL_J1254.2-2205_daily_bin1552.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984902/ft2_4FGL_J1254.2-2205_daily_bin1552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984902/ft1_4FGL_J1254.2-2205_daily_bin1552.fits outfile=/scratch/kocevski/984902/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1552.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=641606401.0 tmax=641865601.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.53
user 2.36
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/984902/ft2_4FGL_J1254.2-2205_daily_bin1552.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/984902/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1552.fits evtable="EVENTS" outfile="/scratch/kocevski/984902/ft1_filtered_4FGL_J1254.2-2205_daily_bin1552.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984902/ft1_filtered_4FGL_J1254.2-2205_daily_bin1552.fits" evtable="EVENTS" scfile=/scratch/kocevski/984902/ft2_4FGL_J1254.2-2205_daily_bin1552.fits sctable="SC_DATA" outfile=/scratch/kocevski/984902/ltcube_641606401_641865601_4FGL_J1254.2-2205_daily_bin1552.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/984902/ft2_4FGL_J1254.2-2205_daily_bin1552.fits
.....................!
real 12.93
user 12.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984902/ft1_filtered_4FGL_J1254.2-2205_daily_bin1552.fits evtable="EVENTS" scfile=/scratch/kocevski/984902/ft2_4FGL_J1254.2-2205_daily_bin1552.fits sctable="SC_DATA" expcube=/scratch/kocevski/984902/ltcube_641606401_641865601_4FGL_J1254.2-2205_daily_bin1552.fits outfile=/scratch/kocevski/984902/expmap_641606401_641865601_4FGL_J1254.2-2205_daily_bin1552.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/984902/ltcube_641606401_641865601_4FGL_J1254.2-2205_daily_bin1552.fits
.....................!
real 189.48
user 185.24
sys 3.82

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/984902/ft1_filtered_4FGL_J1254.2-2205_daily_bin1552.fits evtable="EVENTS" scfile=/scratch/kocevski/984902/ft2_4FGL_J1254.2-2205_daily_bin1552.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/984902/Model_4FGL_J1254.2-2205_daily_bin1552.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/984902/ft1_filtered_4FGL_J1254.2-2205_daily_bin1552.fits.....................!
real 17.51
user 16.26
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    295.63       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28418E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .86312E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17074       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12501E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12104E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.646       1.0000         .10000E-03   10000.    
     9 'Prefactor '    55.686       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .42649E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1808       1.0000         .10000E-03   10000.    
    13 'norm      '    .93386E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .48076E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    51.922       1.0000         .10000E-03   10000.    
    17 'norm      '    .29446E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .28402E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .85667       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 '    .76158       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   516.8634     FROM MIGRAD    STATUS=CONVERGED    284 CALLS      724 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2840        .90712E-02** at limit **
   2  Prefactor     299.98        165.04        .59040E-03   -.17392E-01
   3  Prefactor     .10000E-03    44.421        .91642E-02** at limit **
   4  Prefactor     .10000E-03    77.550        .94458E-02** at limit **
   5  Prefactor     .10000E-03    117.56        .98433E-02** at limit **
   6  Prefactor     17.662        103.17        .90712E-02    .10002E-01
   7  Prefactor     .10000E-03    10.713        .90712E-02** at limit **
   8  Prefactor     10.765        6.2062        .30698E-02   -.19738E-01
   9  Prefactor     60.716        65.827        .13439E-02   -.72677E-04
  10  Prefactor     .10000E-03    12.921        .10617E-01** at limit **
  11  norm          .10000E-03    2.3138        .90712E-02** at limit **
  12  Prefactor     .10189E-03    336.04        .44154E-02** at limit **
  13  norm          .10000E-03    53.630        .10403E-01** at limit **
  14  norm          .10000E-03    20.303        .96280E-02** at limit **
  15  Prefactor     .10000E-03    23.532        .90712E-02** at limit **
  16  norm          53.399        127.63        .13915E-02    .15686E-01
  17  norm          .10000E-03    46.853        .10699E-01** at limit **
  18  Prefactor     .10000E-03    63.349        .99435E-02** at limit **
  19  Prefactor     .36698E-01    7841.1        .12649E-01   -.13179E-02
  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    .25749       -.26596E-04** at limit **
  24  Prefactor     .73751        1.0947       -.16948E-05   -.88664E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 299.982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6617
  Prefactor  = 0.0001
  Prefactor  = 10.7648
  Prefactor  = 60.7161
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101885
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 53.3991
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0366977
  Prefactor  = 8.62728
  Prefactor  = 1.29613
  Prefactor  = 3.23462
  Normalizat = 0.01
  Prefactor  = 0.737514
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   516.8634     FROM HESSE     STATUS=FAILED        49 CALLS      773 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2840        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     299.98        165.04        .59040E-03   -1.2226    
   3  Prefactor     .10000E-03    44.421        .91642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    77.550        .94458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    117.56        .98433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.662        103.17        .90712E-02   -1.4867    
   7  Prefactor     .10000E-03    10.713        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.765        6.2062        .30698E-02   -1.5052    
   9  Prefactor     60.716        65.827        .13439E-02   -1.4148    
  10  Prefactor     .10000E-03    12.921        .10617E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.3138        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10189E-03    336.04        .44154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    53.630        .10403E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    20.303        .96280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.532        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          53.399        127.63        .13915E-02   -1.4245    
  17  norm          .10000E-03    46.853        .10699E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    63.349        .99435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .36698E-01    7841.1        .12649E-01   -1.5746    
  20  Prefactor     500.48        491.82         .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    .25749       -.26596E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .73751        1.0947       -.16948E-05   -1.0207    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.76752e-10
Minuit parameter uncertainties:
  1  3.31161e-06
  2  165.296
  3  5.39961e-05
  4  0.000210567
  5  0.000211867
  6  85.5967
  7  1.14661e-05
  8  6.20657
  9  65.9063
  10  6.70548e-07
  11  4.22782e-07
  12  0.0506247
  13  2.00255e-05
  14  2.38776e-06
  15  5.72984e-07
  16  128.292
  17  6.30787e-06
  18  1.8929e-05
  19  32.5954
  20  1.00169
  21  1.10561
  22  1.01247
  23  1.37653e-07
  24  1.1295
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.019e-04  5.062e-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.375e-01  1.129e+00  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.377e-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: 7.89e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/984902/likelihoodResults_641606401_641865601_4FGL_J1254.2-2205_daily_bin1552.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) = 516.863390795
delta logL = -1.53996272729e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 516.863375486
delta logL = -9.0323396762e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4950       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73750       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.

 FCN=   516.8634     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      242 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    271.66        .90712E-02** at limit **
   2  Index         2.4667        5.7400        .50000        .94235E-06
   3  Normalizat    .10000E-01    .75173E-03    .22133    ** at limit **
   4  Prefactor     .73751        .82494E-02    .42898E-01   -.17192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Index      = 2.46668
  Normalizat = 0.01
  Prefactor  = 0.737512
 **********
 **   18 **HESSE 
 **********

 FCN=   516.8634     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      273 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1441.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4667        5.7955        .50000       -.53131    
   3  Normalizat    .10000E-01    .57350E-02    .83981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .73751        .19484E-01    .15278E-03   -1.0207    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.57535e-08
Minuit parameter uncertainties:
  1  0.00943784
  2  895.697
  3  5.18203e-07
  4  0.0194845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984902': 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) = 516.863375438
delta logL = -4.20791366196e-08

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  9.438e-03  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.467e+00  8.957e+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:  7.375e-01  1.948e-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  5.182e-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/984902/cmap_HighResolution_641606401_641865601_4FGL_J1254.2-2205_daily_bin1552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-02', job_status='DONE', photon_flux_upper_limit='7.89e-07', time_completed='2021-09-06 09:02:45.635870', job_id='984902', GAL2='0.74', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630944165.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.74', dlogl='-4.21e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1552' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:02:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 984902: <4FGL_J1254.2-2205_daily_bin1552> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1552> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 08:55:21 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:55:23 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:55:23 2021
Terminated at Mon Sep  6 09:02:46 2021
Results reported at Mon Sep  6 09:02:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1552 193.552 -22.0872 641606401 641865601 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 :                                   328.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             416.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   442 sec.
    Turnaround time :                            445 sec.

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

