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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1017
RA = 193.552, Dec = -22.0872
tmin = 502934401, tmax = 503193601
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='981794', job_status='RUN', time_executed='2021-09-06 08:45:48.106647', time_epoch_executed='1630943148.11' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/981794

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/981794/ft1_4FGL_J1254.2-2205_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/981794/ft2_4FGL_J1254.2-2205_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/981794/ft1_4FGL_J1254.2-2205_daily_bin1017.fits outfile=/scratch/kocevski/981794/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1017.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=502934401.0 tmax=503193601.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.60
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/981794/ft1_filtered_4FGL_J1254.2-2205_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/981794/ft2_4FGL_J1254.2-2205_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/981794/ltcube_502934401_503193601_4FGL_J1254.2-2205_daily_bin1017.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/981794/ft2_4FGL_J1254.2-2205_daily_bin1017.fits
.....................!
real 11.81
user 11.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/981794/ft1_filtered_4FGL_J1254.2-2205_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/981794/ft2_4FGL_J1254.2-2205_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/981794/ltcube_502934401_503193601_4FGL_J1254.2-2205_daily_bin1017.fits outfile=/scratch/kocevski/981794/expmap_502934401_503193601_4FGL_J1254.2-2205_daily_bin1017.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/981794/ltcube_502934401_503193601_4FGL_J1254.2-2205_daily_bin1017.fits
.....................!
real 190.91
user 185.03
sys 5.21

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/981794/ft1_filtered_4FGL_J1254.2-2205_daily_bin1017.fits scfile=/scratch/kocevski/981794/ft2_4FGL_J1254.2-2205_daily_bin1017.fits outfile=/scratch/kocevski/981794/cmap_502934401_503193601_4FGL_J1254.2-2205_daily_bin1017.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.65
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/981794/ft1_filtered_4FGL_J1254.2-2205_daily_bin1017.fits scfile=/scratch/kocevski/981794/ft2_4FGL_J1254.2-2205_daily_bin1017.fits outfile=/scratch/kocevski/981794/cmap_HighResolution_502934401_503193601_4FGL_J1254.2-2205_daily_bin1017.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.71
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/981794/ft1_filtered_4FGL_J1254.2-2205_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/981794/ft2_4FGL_J1254.2-2205_daily_bin1017.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/981794/Model_4FGL_J1254.2-2205_daily_bin1017.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/981794/ft1_filtered_4FGL_J1254.2-2205_daily_bin1017.fits.....................!
real 71.42
user 67.89
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0283       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.612       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.130       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2204       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8892       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.353       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.858       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6454       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.0766       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6793       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8209       1.0000         .10000E-03   10000.    
    17 'norm      '    5.4886       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.057       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11775E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .36949E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .31616E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3772       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90352       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=   8516.940     FROM MIGRAD    STATUS=CONVERGED   1002 CALLS     3619 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0345        8.8175        .16353E-03    .60204E-04
   2  Prefactor     39.629        50.803        .63686E-04    .13495E-04
   3  Prefactor     34.120        35.085        .68593E-04    .99445E-05
   4  Prefactor     .10000E-03    10.602        .18142E-02** at limit **
   5  Prefactor     .10000E-03    27.114        .18142E-02** at limit **
   6  Prefactor     3.2283        13.750        .22574E-03    .54390E-05
   7  Prefactor     .10000E-03    7.1531        .36285E-03** at limit **
   8  Prefactor     7.8908        2.6089        .83112E-04    .55262E-04
   9  Prefactor     10.357        13.226        .12453E-03    .65732E-05
  10  Prefactor     15.863        11.583        .10058E-03    .12208E-04
  11  norm          1.6461        1.1149        .16464E-03    .31211E-03
  12  Prefactor     .10000E-03    31.546        .18142E-02** at limit **
  13  norm          .10000E-03    2.0150        .12783E-02** at limit **
  14  norm          4.0759        4.2679        .17936E-03   -.93808E-05
  15  Prefactor     1.6813        4.6753        .30605E-03   -.32763E-04
  16  norm          1.8215        4.2749        .28123E-03    .65165E-04
  17  norm          5.4889        3.0124        .11421E-03    .79636E-05
  18  Prefactor     .10000E-03    11.158        .18142E-02** at limit **
  19  Prefactor     26.049        19.666        .78477E-04   -.24395E-03
  20  Prefactor     .10205E-03    21.978        .11435    ** at limit **
  21  Prefactor     .10004E-03    42.321        .47090E-02** at limit **
  22  Prefactor     .10013E-03    13.553        .74218E-01** at limit **
  23  Normalizat    1.3768        .28461        .34646E-03   -.76128E-05
  24  Prefactor     .90350        .13143        .19382E-03   -.78481E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.03446
  Prefactor  = 39.6295
  Prefactor  = 34.12
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.22828
  Prefactor  = 0.0001
  Prefactor  = 7.89075
  Prefactor  = 10.3567
  Prefactor  = 15.8633
  norm       = 1.64606
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.07592
  Prefactor  = 1.68126
  norm       = 1.82153
  norm       = 5.48889
  Prefactor  = 0.0001
  Prefactor  = 26.0492
  Prefactor  = 0.000102055
  Prefactor  = 0.000100042
  Prefactor  = 0.000100134
  Normalizat = 1.37684
  Prefactor  = 0.903504
 **********
 **   18 **HESSE 
 **********

 FCN=   8516.940     FROM HESSE     STATUS=OK           393 CALLS     4012 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0345        8.8168        .65413E-05   -1.5217    
   2  Prefactor     39.629        50.804        .12737E-04   -1.4448    
   3  Prefactor     34.120        35.099        .27437E-05   -1.4539    
   4  Prefactor     .10000E-03    10.603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.116        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2283        13.748        .90297E-05   -1.5349    
   7  Prefactor     .10000E-03    7.1533        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.8908        2.6089        .33245E-05   -1.5146    
   9  Prefactor     10.357        13.226        .49811E-05   -1.5064    
  10  Prefactor     15.863        11.583        .40230E-05   -1.4911    
  11  norm          1.6461        1.1148        .65856E-05   -1.5451    
  12  Prefactor     .10000E-03    31.546        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.0151        .25565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0759        4.2663        .71745E-05   -1.5304    
  15  Prefactor     1.6813        4.6729        .12242E-04   -1.5449    
  16  norm          1.8215        4.2745        .11249E-04   -1.5438    
  17  norm          5.4889        3.0123        .45683E-05   -1.5239    
  18  Prefactor     .10000E-03    11.168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.049        19.646        .31391E-05   -1.4687    
  20  Prefactor     .10205E-03    21.428        .11628       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10004E-03    42.985        .94180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10013E-03    11.892        .81418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3768        .28497        .13858E-04   -.81301    
  24  Prefactor     .90350        .13159        .77529E-05   -.96019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49912e-09
Minuit parameter uncertainties:
  1  8.81874
  2  50.8599
  3  35.1202
  4  1.27322e-05
  5  1.90467e-05
  6  13.329
  7  1.2052e-05
  8  2.60891
  9  13.2294
  10  11.5843
  11  1.11478
  12  6.99961e-05
  13  3.05558e-06
  14  4.26658
  15  4.67393
  16  4.27521
  17  3.01243
  18  4.03621e-05
  19  19.6509
  20  0.0132756
  21  0.0026806
  22  0.00252823
  23  0.285294
  24  0.131637
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  7.000e-05  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.035e-01  1.316e-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.377e+00  2.853e-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.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/981794/likelihoodResults_502934401_503193601_4FGL_J1254.2-2205_daily_bin1017.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) = 8516.94051852
delta logL = -0.000150980764374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8516.94036753
delta logL = 4.32009983342e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2609       1.0000          .0000       10.000    
     3 'Normalizat'    1.3768       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90351       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=   8516.940     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      235 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.452        .90712E-02** at limit **
   2  Index         2.2638        6.1279        .50000       -.81427E-06
   3  Normalizat    1.3768        .22943        .78277E-01    .16554E-04
   4  Prefactor     .90350        .10729        .45050E-01    .11116E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26379
  Normalizat = 1.37684
  Prefactor  = 0.903504
 **********
 **   18 **HESSE 
 **********

 FCN=   8516.940     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7731.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2638        5.6575        .50000       -.57906    
   3  Normalizat    1.3768        .16080        .34646E-03   -.81301    
   4  Prefactor     .90350        .75249E-01    .19382E-03   -.96019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.85906e-10
Minuit parameter uncertainties:
  1  9.86678e-05
  2  62.1064
  3  0.160855
  4  0.0752577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/981794': 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) = 8516.94036753
delta logL = 1.17561285151e-08

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  9.867e-05  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.264e+00  6.211e+01  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.035e-01  7.526e-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.377e+00  1.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.552 -22.087

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/981794/cmap_HighResolution_502934401_503193601_4FGL_J1254.2-2205_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.69e-03', job_status='DONE', photon_flux_upper_limit='7.47e-08', time_completed='2021-09-06 09:01:46.175578', job_id='981794', GAL2='0.90', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630944106.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.18e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1017' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:01:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 981794: <4FGL_J1254.2-2205_daily_bin1017> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1017 193.552 -22.0872 502934401 503193601 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 :                                   947.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

