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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1598
RA = 193.552, Dec = -22.0872
tmin = 653529601, tmax = 653788801
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='725534', job_status='RUN', time_executed='2021-09-20 00:26:15.692947', time_epoch_executed='1632122775.69' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/725534

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/725534/ft1_4FGL_J1254.2-2205_daily_bin1598.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/725534/ft2_4FGL_J1254.2-2205_daily_bin1598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/725534/ft1_4FGL_J1254.2-2205_daily_bin1598.fits outfile=/scratch/kocevski/725534/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1598.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=653529601.0 tmax=653788801.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 5.15
user 4.88
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/725534/ft1_filtered_4FGL_J1254.2-2205_daily_bin1598.fits" evtable="EVENTS" scfile=/scratch/kocevski/725534/ft2_4FGL_J1254.2-2205_daily_bin1598.fits sctable="SC_DATA" outfile=/scratch/kocevski/725534/ltcube_653529601_653788801_4FGL_J1254.2-2205_daily_bin1598.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/725534/ft2_4FGL_J1254.2-2205_daily_bin1598.fits
.....................!
real 11.43
user 11.09
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/725534/ft1_filtered_4FGL_J1254.2-2205_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/725534/ft2_4FGL_J1254.2-2205_daily_bin1598.fits sctable="SC_DATA" expcube=/scratch/kocevski/725534/ltcube_653529601_653788801_4FGL_J1254.2-2205_daily_bin1598.fits outfile=/scratch/kocevski/725534/expmap_653529601_653788801_4FGL_J1254.2-2205_daily_bin1598.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/725534/ltcube_653529601_653788801_4FGL_J1254.2-2205_daily_bin1598.fits
.....................!
real 192.43
user 187.73
sys 4.38

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/725534/ft1_filtered_4FGL_J1254.2-2205_daily_bin1598.fits scfile=/scratch/kocevski/725534/ft2_4FGL_J1254.2-2205_daily_bin1598.fits outfile=/scratch/kocevski/725534/cmap_653529601_653788801_4FGL_J1254.2-2205_daily_bin1598.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/725534/ft1_filtered_4FGL_J1254.2-2205_daily_bin1598.fits scfile=/scratch/kocevski/725534/ft2_4FGL_J1254.2-2205_daily_bin1598.fits outfile=/scratch/kocevski/725534/cmap_HighResolution_653529601_653788801_4FGL_J1254.2-2205_daily_bin1598.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/725534/ft1_filtered_4FGL_J1254.2-2205_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/725534/ft2_4FGL_J1254.2-2205_daily_bin1598.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/725534/Model_4FGL_J1254.2-2205_daily_bin1598.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/725534/ft1_filtered_4FGL_J1254.2-2205_daily_bin1598.fits.....................!
real 51.36
user 50.14
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.653       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.135       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .40416E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2441       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6940       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2340       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .32060E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4610       1.0000         .10000E-03   10000.    
    16 'norm      '    11.134       1.0000         .10000E-03   10000.    
    17 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.911       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.151       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.4694       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3686       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98694       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=   5937.635     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2736 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.643        17.775       -.50079E-08    .42941E-05
   2  Prefactor     .10000E-03    26.553        .96832E-07** at limit **
   3  Prefactor     12.200        72.896       -.10726E-06    .44051E-04
   4  Prefactor     .10000E-03    97.969       -.28046E-05** at limit **
   5  Prefactor     .10001E-03    494.05       -.12334E-04** at limit **
   6  Prefactor     .10000E-03    14.348        .53019E-06** at limit **
   7  Prefactor     1.2438        7.4678        .34226E-05    .11517E-03
   8  Prefactor     6.6939        3.3680       -.26476E-06   -.17847E-03
   9  Prefactor     .10000E-03    4.6955       -.13565E-07** at limit **
  10  Prefactor     .10000E-03    5.9299       -.37644E-07** at limit **
  11  norm          1.2339        1.4679        .25722E-06    .16459E-03
  12  Prefactor     .10000E-03    24.348       -.24023E-06** at limit **
  13  norm          .10006E-03    7.6169       -.17502E-05** at limit **
  14  norm          .10000E-03    2.4568        .40295E-08** at limit **
  15  Prefactor     3.4608        4.5608        .11886E-06    .34233E-04
  16  norm          11.133        9.4768        .30277E-06   -.58375E-05
  17  norm          .10000E-03    1.8904        .35104E-07** at limit **
  18  Prefactor     .10000E-03    3.4649       -.62831E-08** at limit **
  19  Prefactor     15.912        18.301        .27710E-06   -.23519E-06
  20  Prefactor     20.151        39.436       -.85392E-06   -.91904E-05
  21  Prefactor     7.4686        11.483        .29282E-05    .12625E-03
  22  Prefactor     .10000E-03    10.103       -.71645E-07** at limit **
  23  Normalizat    1.3688        .29599       -.49375E-06    .25116E-04
  24  Prefactor     .98690        .13567       -.70257E-06    .89354E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.6425
  Prefactor  = 0.0001
  Prefactor  = 12.2
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 1.2438
  Prefactor  = 6.69392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.23391
  Prefactor  = 0.0001
  norm       = 0.000100058
  norm       = 0.0001
  Prefactor  = 3.46083
  norm       = 11.133
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.912
  Prefactor  = 20.1506
  Prefactor  = 7.46864
  Prefactor  = 0.0001
  Normalizat = 1.36876
  Prefactor  = 0.986904
 **********
 **   18 **HESSE 
 **********

 FCN=   5937.635     FROM HESSE     STATUS=OK           399 CALLS     3135 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.643        17.689        .79092E-04   -1.4695    
   2  Prefactor     .10000E-03    26.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.200        72.004        .11499E-03   -1.5009    
   4  Prefactor     .10000E-03    99.985        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    510.20        .42518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2438        7.4915        .38985E-03   -1.5485    
   8  Prefactor     6.6939        3.3478        .91771E-04   -1.5190    
   9  Prefactor     .10000E-03    4.6997        .16307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2339        1.4459        .95259E-04   -1.5486    
  12  Prefactor     .10000E-03    24.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10006E-03    23.160        .37682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.4641        .11789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4608        4.5487        .18256E-03   -1.5336    
  16  norm          11.133        9.4677        .12007E-03   -1.5041    
  17  norm          .10000E-03    3.6408        .20543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.4673        .14008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.912        18.278        .10041E-03   -1.4910    
  20  Prefactor     20.151        39.395        .89225E-04   -1.4810    
  21  Prefactor     7.4686        11.522        .73372E-03   -1.5161    
  22  Prefactor     .10000E-03    10.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3688        .35170        .36581E-03   -.81536    
  24  Prefactor     .98690        .16156        .19309E-03   -.93167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6509e-09
Minuit parameter uncertainties:
  1  17.6928
  2  0.000125954
  3  59.3847
  4  0.000126369
  5  0.00403806
  6  3.49572e-05
  7  6.10593
  8  3.3479
  9  1.63809e-06
  10  3.36574e-08
  11  1.44598
  12  0.000111558
  13  0.00232229
  14  2.05238e-06
  15  4.54915
  16  9.46896
  17  3.08583e-05
  18  9.64045e-07
  19  18.2847
  20  39.4459
  21  11.5254
  22  2.94348e-06
  23  0.352322
  24  0.161635
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  9.869e-01  1.616e-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.369e+00  3.523e-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.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/725534/likelihoodResults_653529601_653788801_4FGL_J1254.2-2205_daily_bin1598.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) = 5937.63550464
delta logL = -0.000195431457541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5937.63531068
delta logL = -1.47561786434e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12307E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4789       1.0000          .0000       10.000    
     3 'Normalizat'    1.3688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98690       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=   5937.635     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      268 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10222E-03    116.60        .18142E-02** at limit **
   2  Index         2.4103        5.6793        .50000        .14378E-04
   3  Normalizat    1.3688        .18518E-01    .36581E-03   -.60135E-04
   4  Prefactor     .98690        .85244E-02    .19309E-03   -.12629E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010222
  Index      = 2.41032
  Normalizat = 1.36876
  Prefactor  = 0.986903
 **********
 **   18 **HESSE 
 **********

 FCN=   5937.635     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      297 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10222E-03    497.13        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4103        8.7715        .50000       -.54444    
   3  Normalizat    1.3688        .39351E-01    .14633E-04   -.81536    
   4  Prefactor     .98690        .18114E-01    .38618E-04   -.93167    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.90207e-08
Minuit parameter uncertainties:
  1  0.06701
  2  555.888
  3  0.0393518
  4  0.0181139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/725534': 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) = 5937.63530984
delta logL = -6.3189145294e-07

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.022e-04  6.701e-02  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.410e+00  5.559e+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:  9.869e-01  1.811e-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.369e+00  3.935e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/725534/cmap_HighResolution_653529601_653788801_4FGL_J1254.2-2205_daily_bin1598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.71e-03', job_status='DONE', photon_flux_upper_limit='7.49e-08', time_completed='2021-09-20 00:37:45.352551', job_id='725534', GAL2='0.99', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1632123465.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-6.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1598' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 00:37:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 725534: <4FGL_J1254.2-2205_daily_bin1598> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1598> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 20 00:25:31 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 00:25:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 00:25:32 2021
Terminated at Mon Sep 20 00:37:46 2021
Results reported at Mon Sep 20 00:37:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1598 193.552 -22.0872 653529601 653788801 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 :                                   692.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            735 sec.

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

