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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1481
RA = 193.552, Dec = -22.0872
tmin = 623203201, tmax = 623462401
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='983815', job_status='RUN', time_executed='2021-09-06 08:53:29.905871', time_epoch_executed='1630943609.91' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983815

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983815/ft1_4FGL_J1254.2-2205_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983815/ft2_4FGL_J1254.2-2205_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983815/ft1_4FGL_J1254.2-2205_daily_bin1481.fits outfile=/scratch/kocevski/983815/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1481.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=623203201.0 tmax=623462401.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.10
user 2.70
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983815/ft1_filtered_4FGL_J1254.2-2205_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/983815/ft2_4FGL_J1254.2-2205_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/983815/ltcube_623203201_623462401_4FGL_J1254.2-2205_daily_bin1481.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/983815/ft2_4FGL_J1254.2-2205_daily_bin1481.fits
.....................!
real 12.87
user 12.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983815/ft1_filtered_4FGL_J1254.2-2205_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/983815/ft2_4FGL_J1254.2-2205_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/983815/ltcube_623203201_623462401_4FGL_J1254.2-2205_daily_bin1481.fits outfile=/scratch/kocevski/983815/expmap_623203201_623462401_4FGL_J1254.2-2205_daily_bin1481.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/983815/ltcube_623203201_623462401_4FGL_J1254.2-2205_daily_bin1481.fits
.....................!
real 191.40
user 186.16
sys 4.77

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/983815/ft1_filtered_4FGL_J1254.2-2205_daily_bin1481.fits scfile=/scratch/kocevski/983815/ft2_4FGL_J1254.2-2205_daily_bin1481.fits outfile=/scratch/kocevski/983815/cmap_623203201_623462401_4FGL_J1254.2-2205_daily_bin1481.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983815/ft1_filtered_4FGL_J1254.2-2205_daily_bin1481.fits scfile=/scratch/kocevski/983815/ft2_4FGL_J1254.2-2205_daily_bin1481.fits outfile=/scratch/kocevski/983815/cmap_HighResolution_623203201_623462401_4FGL_J1254.2-2205_daily_bin1481.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/983815/ft1_filtered_4FGL_J1254.2-2205_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/983815/ft2_4FGL_J1254.2-2205_daily_bin1481.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/983815/Model_4FGL_J1254.2-2205_daily_bin1481.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/983815/ft1_filtered_4FGL_J1254.2-2205_daily_bin1481.fits.....................................!
real 16.75
user 15.37
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32747E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .45412E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16024E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'norm      '    43.784       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21702E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10235E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .13593E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10604E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10259E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10556E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.099       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.336       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.250       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2295       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=   421.5936     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     3531 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    396.22        .15755E-06** at limit **
   2  Prefactor     .10000E-03    7093.7       -.24787E-06** at limit **
   3  Prefactor     .10000E-03    8866.4        .35947E-06** at limit **
   4  Prefactor    10000.0        9109.2        .65313E-06** at limit **
   5  Prefactor    10000.0        8219.6        .39462E-06** at limit **
   6  Prefactor    10000.0        6380.8       -.29371E-06** at limit **
   7  Prefactor    10000.0        9636.3        .18546E-05** at limit **
   8  Prefactor    10000.0        8091.4       -.94924E-07** at limit **
   9  Prefactor    10000.0        2205.0       -.11809E-06** at limit **
  10  Prefactor    10000.0        8450.8        .90805E-06** at limit **
  11  norm          43.905        191.54       -.40561E-06   -.17285E-04
  12  Prefactor     .10000E-03    9949.1        .10124E-04** at limit **
  13  norm          .10000E-03    777.90       -.34617E-07** at limit **
  14  norm          .10000E-03    163.19        .16321E-05** at limit **
  15  Prefactor     .10000E-03    105.39        .12846E-05** at limit **
  16  norm          .10000E-03    109.74        .10206E-05** at limit **
  17  norm          .10000E-03    31.523       -.56885E-07** at limit **
  18  Prefactor     .10000E-03    67.718       -.68175E-06** at limit **
  19  Prefactor     18.042        63.819        .33414E-05   -.62053E-04
  20  Prefactor     11.494        168.35        .65179E-06   -.30087E-04
  21  Prefactor     22.217        35.726        .80908E-06   -.73392E-04
  22  Prefactor     .10000E-03    31.464        .10659E-05** at limit **
  23  Normalizat    .10000E-01    .38007        .19261E-04** at limit **
  24  Prefactor     1.2297        .37740       -.47287E-05   -.76440E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 43.9047
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0423
  Prefactor  = 11.4944
  Prefactor  = 22.2166
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.22973
 **********
 **   18 **HESSE 
 **********

 FCN=   421.5936     FROM HESSE     STATUS=OK           377 CALLS     3908 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    396.34        .19731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7093.7        .19332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8866.3        .20418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        9109.3        .18242E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        8219.1        .18176E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        6380.9        .19521E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        9636.6        .19469E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        8091.5        .20613E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        2205.3        .18551E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        8451.1        .18499E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          43.905        193.12        .60588E-04   -1.4382    
  12  Prefactor     .10000E-03    9947.6        .20154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    778.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    163.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    105.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    110.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    31.645        .11267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    67.737        .16516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.042        63.706        .94144E-04   -1.4858    
  20  Prefactor     11.494        167.30        .11899E-03   -1.5030    
  21  Prefactor     22.217        35.482        .84916E-04   -1.4765    
  22  Prefactor     .10000E-03    31.412        .11241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    .41287        .79671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.2297        .39206        .17661E-03   -.85421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15662e-10
Minuit parameter uncertainties:
  1  0.000210669
  2  0.00181233
  3  0.00240872
  4  0.0076625
  5  0.0134615
  6  0.00129278
  7  0.0244558
  8  0.00148916
  9  0.00131094
  10  0.00981883
  11  185.174
  12  0.0171594
  13  0.000483373
  14  0.000218031
  15  0.000116824
  16  5.35905e-05
  17  6.33218e-05
  18  0.000134248
  19  63.948
  20  88.0019
  21  35.5154
  22  8.18524e-05
  23  6.83068e-07
  24  0.393
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  1.716e-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:  1.230e+00  3.930e-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  6.831e-07  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.796775002316

TS (Fixed Index): -0.00
Ra Dec: 193.552 -22.087
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.61e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/983815/likelihoodResults_623203201_623462401_4FGL_J1254.2-2205_daily_bin1481.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) = 421.594133451
delta logL = -0.000518183114707

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 421.594133449
delta logL = -0.000518180545953

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.1936       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=   421.5941     FROM MIGRAD    STATUS=CONVERGED     20 CALLS       85 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.1953        3.4831        .50000       -.66137E-05
                               ERR DEF=  .500    
Final values: 
  Index      = 2.19526
 **********
 **   18 **HESSE 
 **********

 FCN=   421.5941     FROM HESSE     STATUS=OK            11 CALLS       96 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       2.1953        3.4831        .50000       -.59553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37406e-11
Minuit parameter uncertainties:
  1  4.13925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983815': 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) = 421.594133446
delta logL = -0.000518177950653

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  9.637e-03  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
284        Index:  2.195e+00  4.139e+00  0.000e+00  1.000e+01 (-1.000e+00)
285        Scale:  2.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.229e+00  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/983815/cmap_HighResolution_623203201_623462401_4FGL_J1254.2-2205_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.61e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-06 09:05:07.315246', job_id='983815', GAL2='1.23', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630944307.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='-5.18e-04', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1481' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:05:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 983815: <4FGL_J1254.2-2205_daily_bin1481> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1481> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 08:50:55 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:50:56 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:56 2021
Terminated at Mon Sep  6 09:05:08 2021
Results reported at Mon Sep  6 09:05:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1481 193.552 -22.0872 623203201 623462401 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 :                                   350.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             169.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

