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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1250
RA = 193.552, Dec = -22.0872
tmin = 563328001, tmax = 563587201
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='982109', job_status='RUN', time_executed='2021-09-06 08:50:23.146467', time_epoch_executed='1630943423.15' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/982109

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/982109/ft1_4FGL_J1254.2-2205_daily_bin1250.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/982109/ft2_4FGL_J1254.2-2205_daily_bin1250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/982109/ft1_4FGL_J1254.2-2205_daily_bin1250.fits outfile=/scratch/kocevski/982109/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1250.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=563328001.0 tmax=563587201.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.99
user 2.76
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/982109/ft1_filtered_4FGL_J1254.2-2205_daily_bin1250.fits" evtable="EVENTS" scfile=/scratch/kocevski/982109/ft2_4FGL_J1254.2-2205_daily_bin1250.fits sctable="SC_DATA" outfile=/scratch/kocevski/982109/ltcube_563328001_563587201_4FGL_J1254.2-2205_daily_bin1250.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/982109/ft2_4FGL_J1254.2-2205_daily_bin1250.fits
.....................!
real 12.84
user 12.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/982109/ft1_filtered_4FGL_J1254.2-2205_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/982109/ft2_4FGL_J1254.2-2205_daily_bin1250.fits sctable="SC_DATA" expcube=/scratch/kocevski/982109/ltcube_563328001_563587201_4FGL_J1254.2-2205_daily_bin1250.fits outfile=/scratch/kocevski/982109/expmap_563328001_563587201_4FGL_J1254.2-2205_daily_bin1250.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/982109/ltcube_563328001_563587201_4FGL_J1254.2-2205_daily_bin1250.fits
.....................!
real 192.12
user 185.78
sys 5.32

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/982109/ft1_filtered_4FGL_J1254.2-2205_daily_bin1250.fits scfile=/scratch/kocevski/982109/ft2_4FGL_J1254.2-2205_daily_bin1250.fits outfile=/scratch/kocevski/982109/cmap_563328001_563587201_4FGL_J1254.2-2205_daily_bin1250.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/982109/ft1_filtered_4FGL_J1254.2-2205_daily_bin1250.fits scfile=/scratch/kocevski/982109/ft2_4FGL_J1254.2-2205_daily_bin1250.fits outfile=/scratch/kocevski/982109/cmap_HighResolution_563328001_563587201_4FGL_J1254.2-2205_daily_bin1250.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/982109/ft1_filtered_4FGL_J1254.2-2205_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/982109/ft2_4FGL_J1254.2-2205_daily_bin1250.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/982109/Model_4FGL_J1254.2-2205_daily_bin1250.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/982109/ft1_filtered_4FGL_J1254.2-2205_daily_bin1250.fits.....................!
real 45.69
user 44.32
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9831       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.369       1.0000         .10000E-03   10000.    
     3 'Prefactor '    82.667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6533       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.622       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.172       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2736       1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.240       1.0000         .10000E-03   10000.    
    13 'norm      '    .10412E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10352E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .68069       1.0000         .10000E-03   10000.    
    16 'norm      '    14.277       1.0000         .10000E-03   10000.    
    17 'norm      '    .11820E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.439       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.596       1.0000         .10000E-03   10000.    
    21 'Prefactor '    59.114       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .26462E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .78881       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1662       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=   4890.517     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2744 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9823        24.064       -.16798E-04   -.42869E-04
   2  Prefactor     38.364        44.975        .13352E-05    .22902E-04
   3  Prefactor     82.691        65.808        .12264E-04    .81907E-04
   4  Prefactor     .10000E-03    9.5739        .29675E-07** at limit **
   5  Prefactor     .10000E-03    16.951       -.25672E-07** at limit **
   6  Prefactor     .10000E-03    11.016       -.60470E-06** at limit **
   7  Prefactor     .10000E-03    2.6701       -.15972E-06** at limit **
   8  Prefactor     8.6533        3.0977        .80409E-08    .69283E-05
   9  Prefactor     38.618        23.875        .55436E-07   -.31574E-04
  10  Prefactor     12.172        10.831       -.17550E-07   -.63253E-05
  11  norm          3.2734        1.8310       -.36689E-08   -.31533E-03
  12  Prefactor     42.041        123.61       -.61842E-05    .85202E-04
  13  norm          .10000E-03    28.724        .25280E-05** at limit **
  14  norm          .10000E-03    5.2072        .36341E-05** at limit **
  15  Prefactor     .68668        11.075        .82804E-05   -.26955E-04
  16  norm          14.277        11.210       -.53718E-07    .58696E-05
  17  norm          .10000E-03    2.8820        .25055E-08** at limit **
  18  Prefactor     11.439        13.370       -.33679E-07    .18389E-05
  19  Prefactor     .10000E-03    83.108       -.23407E-06** at limit **
  20  Prefactor     32.560        94.351       -.12074E-05    .64002E-04
  21  Prefactor     59.111        45.159       -.13301E-06    .68084E-04
  22  Prefactor     .10028E-03    29.801       -.44802E-05** at limit **
  23  Normalizat    .78877        .37012        .24398E-05    .37956E-04
  24  Prefactor     1.1662        .16827       -.11019E-05    .12993E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.98232
  Prefactor  = 38.3644
  Prefactor  = 82.6906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.65329
  Prefactor  = 38.6179
  Prefactor  = 12.1719
  norm       = 3.27337
  Prefactor  = 42.0413
  norm       = 0.000100002
  norm       = 0.000100003
  Prefactor  = 0.686676
  norm       = 14.2766
  norm       = 0.000100001
  Prefactor  = 11.4386
  Prefactor  = 0.0001
  Prefactor  = 32.5602
  Prefactor  = 59.1109
  Prefactor  = 0.000100276
  Normalizat = 0.788765
  Prefactor  = 1.16622
 **********
 **   18 **HESSE 
 **********

 FCN=   4890.517     FROM HESSE     STATUS=OK           397 CALLS     3141 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9823        24.103        .29430E-03   -1.5426    
   2  Prefactor     38.364        44.972        .64706E-04   -1.4468    
   3  Prefactor     82.691        65.921        .44178E-04   -1.3887    
   4  Prefactor     .10000E-03    9.5816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6780        .11155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.6533        3.0982        .71253E-04   -1.5120    
   9  Prefactor     38.618        23.864        .64494E-04   -1.4464    
  10  Prefactor     12.172        10.832        .11482E-03   -1.5010    
  11  norm          3.2734        1.8243        .66272E-04   -1.5346    
  12  Prefactor     42.041        122.47        .30840E-03   -1.4410    
  13  norm          .10000E-03    29.407        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.0516        .15304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .68668        11.218        .21720E-02   -1.5542    
  16  norm          14.277        11.200        .10600E-03   -1.4952    
  17  norm          .10000E-03    6.5074        .23015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.439        13.369        .11845E-03   -1.5031    
  19  Prefactor     .10000E-03    83.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.560        93.549        .70184E-04   -1.4566    
  21  Prefactor     59.111        45.133        .52182E-04   -1.4169    
  22  Prefactor     .10028E-03    161.73        .70624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .78877        .40091        .46983E-03   -1.0049    
  24  Prefactor     1.1662        .18553        .18820E-03   -.87377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.05085e-09
Minuit parameter uncertainties:
  1  13.8312
  2  45.012
  3  65.9793
  4  1.7058e-05
  5  2.24705e-05
  6  1.74958e-05
  7  6.42645e-06
  8  3.09828
  9  23.8696
  10  10.8335
  11  1.82436
  12  123.212
  13  0.000481839
  14  0.000235564
  15  5.55174
  16  11.2017
  17  0.000135225
  18  13.3723
  19  6.88042e-05
  20  93.9743
  21  45.1586
  22  0.0134089
  23  0.402422
  24  0.185637
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  4.204e+01  1.232e+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.166e+00  1.856e-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:  7.888e-01  4.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 193.552 -22.087
Photon Flux Upper Limit: 1.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.45e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/982109/likelihoodResults_563328001_563587201_4FGL_J1254.2-2205_daily_bin1250.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) = 4888.97600455
delta logL = 1.54120749563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4888.93295372
delta logL = 1.58425832787

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2765       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0848       1.0000          .0000       10.000    
     3 'Normalizat'    .57725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2223       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=   4888.933     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      277 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2635        36.468        .55926E-02    .32755E-03
   2  Index         4.0862        2.1639        .69833E-01    .18717E-03
   3  Normalizat    .57728        .11844        .12216        .33707E-04
   4  Prefactor     1.2224        .55322E-01    .34123E-01   -.37752E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.26351
  Index      = 4.08621
  Normalizat = 0.577277
  Prefactor  = 1.2224
 **********
 **   18 **HESSE 
 **********

 FCN=   4888.933     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      310 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2635        57.802        .73705E-04   -1.5347    
   2  Index         4.0862        2.9594        .27745E-02   -.18379    
   3  Normalizat    .57728        .35516        .54172E-03   -1.0896    
   4  Prefactor     1.2224        .16938        .18406E-03   -.85645    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.87059e-10
Minuit parameter uncertainties:
  1  27.4996
  2  3.17577
  3  0.356574
  4  0.169458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/982109': 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) = 4888.93295288
delta logL = 1.58425916184

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  3.264e+00  2.750e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  4.086e+00  3.176e+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.222e+00  1.695e-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:  5.773e-01  3.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.63
Ra Dec: 193.552 -22.087
Photon Index (Free Index): 4.09 +/- 3.18
Photon Flux (Free Index): 2.20e-07 +/- 1.37e-07
Energy Flux (Free Index): 3.24e-05 +/- 2.42e-05

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/982109/cmap_HighResolution_563328001_563587201_4FGL_J1254.2-2205_daily_bin1250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-02', comment='SUCCESS', energy_flux2='3.24e-05', dlogl='1.58e+00', photon_flux2='2.20e-07', job_status='DONE', time_completed='2021-09-06 09:02:32.198803', photon_index_error2='3.18', photon_index2='4.09', ts='0.14', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.91e-07', energy_flux_error2='2.42e-05', EG='0.79', time_epoch_completed='1630944152.2', return_code='0', job_id='982109', GAL2='1.22', EG2='0.58', return_code2='102', photon_flux_error2='1.37e-07', ts2='3.63', photon_index='2.19' WHERE bin_id='1250' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:02:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 982109: <4FGL_J1254.2-2205_daily_bin1250> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1250 193.552 -22.0872 563328001 563587201 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 :                                   619.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            992 sec.

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

