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


Performing analysis on: 4FGL_J1258.8-2219_daily_bin1101
RA = 194.717, Dec = -22.3257
tmin = 524707201, tmax = 524966401
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='68294', job_status='RUN', time_executed='2021-09-06 13:16:44.243988', time_epoch_executed='1630959404.24' WHERE source_name='4FGL J1258.8-2219' and cadence='daily' and bin_id='1101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68294

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68294/ft1_4FGL_J1258.8-2219_daily_bin1101.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68294/ft2_4FGL_J1258.8-2219_daily_bin1101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68294/ft1_4FGL_J1258.8-2219_daily_bin1101.fits outfile=/scratch/kocevski/68294/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin1101.fits ra=194.717 dec=-22.3257 rad=12.0 tmin=524707201.0 tmax=524966401.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.93
user 2.44
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/68294/ft2_4FGL_J1258.8-2219_daily_bin1101.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/68294/ft2_4FGL_J1258.8-2219_daily_bin1101.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/68294/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin1101.fits evtable="EVENTS" outfile="/scratch/kocevski/68294/ft1_filtered_4FGL_J1258.8-2219_daily_bin1101.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.56
user 0.26
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/68294/ft1_filtered_4FGL_J1258.8-2219_daily_bin1101.fits" evtable="EVENTS" scfile=/scratch/kocevski/68294/ft2_4FGL_J1258.8-2219_daily_bin1101.fits sctable="SC_DATA" outfile=/scratch/kocevski/68294/ltcube_524707201_524966401_4FGL_J1258.8-2219_daily_bin1101.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/68294/ft2_4FGL_J1258.8-2219_daily_bin1101.fits
.....................!
real 10.13
user 9.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68294/ft1_filtered_4FGL_J1258.8-2219_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/68294/ft2_4FGL_J1258.8-2219_daily_bin1101.fits sctable="SC_DATA" expcube=/scratch/kocevski/68294/ltcube_524707201_524966401_4FGL_J1258.8-2219_daily_bin1101.fits outfile=/scratch/kocevski/68294/expmap_524707201_524966401_4FGL_J1258.8-2219_daily_bin1101.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/68294/ltcube_524707201_524966401_4FGL_J1258.8-2219_daily_bin1101.fits
.....................!
real 151.16
user 142.76
sys 4.26

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 182 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1258.8-2219 @ 194.717 -22.3257

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/68294/ft1_filtered_4FGL_J1258.8-2219_daily_bin1101.fits scfile=/scratch/kocevski/68294/ft2_4FGL_J1258.8-2219_daily_bin1101.fits outfile=/scratch/kocevski/68294/cmap_524707201_524966401_4FGL_J1258.8-2219_daily_bin1101.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=194.717 yref=-22.3257 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.58
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/68294/ft1_filtered_4FGL_J1258.8-2219_daily_bin1101.fits scfile=/scratch/kocevski/68294/ft2_4FGL_J1258.8-2219_daily_bin1101.fits outfile=/scratch/kocevski/68294/cmap_HighResolution_524707201_524966401_4FGL_J1258.8-2219_daily_bin1101.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=194.717 yref=-22.3257 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.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/68294/ft1_filtered_4FGL_J1258.8-2219_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/68294/ft2_4FGL_J1258.8-2219_daily_bin1101.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/68294/Model_4FGL_J1258.8-2219_daily_bin1101.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/68294/ft1_filtered_4FGL_J1258.8-2219_daily_bin1101.fits.....................!
real 79.99
user 76.19
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/68294/ft1_filtered_4FGL_J1258.8-2219_daily_bin1101.fits', '/scratch/kocevski/68294/ft2_4FGL_J1258.8-2219_daily_bin1101.fits', expMap='/scratch/kocevski/68294/expmap_524707201_524966401_4FGL_J1258.8-2219_daily_bin1101.fits', expCube='/scratch/kocevski/68294/ltcube_524707201_524966401_4FGL_J1258.8-2219_daily_bin1101.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/68294/Model_4FGL_J1258.8-2219_daily_bin1101.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1258.8-2219'

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  4.778e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  2.331e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  9.348e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  8.142e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/68294/ft1_filtered_4FGL_J1258.8-2219_daily_bin1101.fits
Spacecraft file(s): /scratch/kocevski/68294/ft2_4FGL_J1258.8-2219_daily_bin1101.fits
Exposure map: /scratch/kocevski/68294/expmap_524707201_524966401_4FGL_J1258.8-2219_daily_bin1101.fits
Exposure cube: /scratch/kocevski/68294/ltcube_524707201_524966401_4FGL_J1258.8-2219_daily_bin1101.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/68294/Model_4FGL_J1258.8-2219_daily_bin1101.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) = 6257.391288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17104E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7416       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.143       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.475       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1336       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.6213       1.0000         .10000E-03   10000.    
    13 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9754       1.0000         .10000E-03   10000.    
    15 'norm      '    3.9389       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.1859       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.705       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3241       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.940       1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    41.636       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .98980       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0519       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6257.293     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     2847 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.715        .55401E-06** at limit **
   2  Prefactor     .10001E-03    27.803       -.77576E-05** at limit **
   3  Prefactor     .10000E-03    10.470        .76939E-06** at limit **
   4  Prefactor     .10000E-03    22.653        .57841E-05** at limit **
   5  Prefactor     .10000E-03    14.943       -.13892E-05** at limit **
   6  Prefactor     .10006E-03    7.5119       -.96657E-06** at limit **
   7  Prefactor     1.7437        2.2298        .69161E-07    .29860E-03
   8  Prefactor     22.144        18.989        .95201E-07    .15492E-04
   9  Prefactor     28.486        18.553       -.10774E-06    .79646E-04
  10  norm          2.1334        1.1996        .10886E-08   -.79604E-04
  11  Prefactor     .10000E-03    42.659        .52324E-05** at limit **
  12  norm          4.6204        7.8300        .12476E-05   -.10648E-02
  13  norm          .10000E-03    6.2368       -.86063E-07** at limit **
  14  Prefactor     5.9748        5.0105        .56969E-07    .24175E-04
  15  norm          3.9384        4.4479        .19582E-07   -.28923E-04
  16  norm          .10000E-03    1.4395       -.73826E-07** at limit **
  17  norm          8.1848        13.454        .48571E-07   -.19895E-04
  18  Prefactor     .10000E-03    6.8971        .23377E-06** at limit **
  19  Prefactor     45.710        29.192        .12455E-05    .12418E-03
  20  Prefactor     .10000E-03    8.6907       -.17004E-06** at limit **
  21  Prefactor     .10000E-03    81.910       -.43892E-05** at limit **
  22  Prefactor     4.3235        8.9875        .13231E-05   -.75547E-03
  23  Prefactor     16.948        15.541       -.16938E-06   -.70076E-05
  24  norm          .10000E-03    1.9982       -.22435E-07** at limit **
  25  norm          41.631        36.428       -.23411E-05   -.12957E-03
  26  Normalizat    .98932        .28945       -.96996E-06    .80564E-04
  27  Prefactor     1.0522        .12987        .20004E-06    .12500E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100061
  Prefactor  = 1.74366
  Prefactor  = 22.1441
  Prefactor  = 28.4863
  norm       = 2.1334
  Prefactor  = 0.000100003
  norm       = 4.62038
  norm       = 0.0001
  Prefactor  = 5.97477
  norm       = 3.93843
  norm       = 0.0001
  norm       = 8.18485
  Prefactor  = 0.0001
  Prefactor  = 45.7096
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.32352
  Prefactor  = 16.9476
  norm       = 0.0001
  norm       = 41.6306
  Normalizat = 0.98932
  Prefactor  = 1.05215
 **********
 **   18 **HESSE 
 **********

 FCN=   6257.293     FROM HESSE     STATUS=OK           486 CALLS     3333 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    28.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10006E-03    40.524        .39310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7437        2.1313        .12337E-03   -1.5444    
   8  Prefactor     22.144        18.999        .85121E-04   -1.4766    
   9  Prefactor     28.486        18.403        .75078E-04   -1.4640    
  10  norm          2.1334        1.1949        .62311E-04   -1.5416    
  11  Prefactor     .10000E-03    42.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.6204        10.093        .93614E-03   -1.5278    
  13  norm          .10000E-03    6.3726        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.9748        4.9974        .15641E-03   -1.5219    
  15  norm          3.9384        4.4434        .17150E-03   -1.5311    
  16  norm          .10000E-03    2.7593        .18447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.1848        13.451        .14013E-03   -1.5136    
  18  Prefactor     .10000E-03    6.9190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     45.710        29.248        .59306E-04   -1.4355    
  20  Prefactor     .10000E-03    8.7191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    82.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.3235        10.171        .96860E-03   -1.5292    
  23  Prefactor     16.948        15.534        .97311E-04   -1.4884    
  24  norm          .10000E-03    2.0041        .10920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          41.631        36.464        .62125E-04   -1.4417    
  26  Normalizat    .98932        .33406        .40583E-03   -.93389    
  27  Prefactor     1.0522        .15138        .18211E-03   -.91011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92681e-09
Minuit parameter uncertainties:
  1  6.55261e-05
  2  0.000792929
  3  4.68627e-05
  4  0.00053286
  5  0.000100755
  6  0.00314834
  7  2.13142
  8  19.0042
  9  18.4065
  10  1.19489
  11  0.000657219
  12  10.0967
  13  7.62632e-06
  14  4.9977
  15  4.44375
  16  6.71959e-06
  17  13.456
  18  4.58545e-06
  19  29.257
  20  7.23177e-06
  21  0.000681329
  22  10.1755
  23  15.5373
  24  9.17167e-07
  25  36.4835
  26  0.334764
  27  0.151437
Done.

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

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  1.000e-04  7.626e-06  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  2.331e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  9.348e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  8.142e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.052e+00  1.514e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  9.893e-01  3.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.717 -22.326
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/68294/likelihoodResults_524707201_524966401_4FGL_J1258.8-2219_daily_bin1101.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) = 6257.29343192
delta logL = -0.000748744204429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6257.29268371
delta logL = -5.35847902938e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10527E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3469       1.0000          .0000       5.0000    
     3 'Normalizat'    .98915       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0522       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+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=   6257.293     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      248 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    711.47        .36285E-02** at limit **
   2  alpha         2.7597        2.6137        .16500        .43339E-07
   3  Normalizat    .98932        .80422E-01    .40583E-03   -.34129E-03
   4  Prefactor     1.0521        .37321E-01    .18211E-03   -.77901E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.75974
  Normalizat = 0.989317
  Prefactor  = 1.05215
 **********
 **   18 **HESSE 
 **********

 FCN=   6257.293     FROM HESSE     STATUS=OK            23 CALLS      271 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.3093        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7597        3.4611        .65999E-02    .10408    
   3  Normalizat    .98932        .32129        .16233E-04   -.93389    
   4  Prefactor     1.0521        .14952        .36422E-04   -.91011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79075e-10
Minuit parameter uncertainties:
  1  1.76984e-05
  2  298.904
  3  0.321916
  4  0.149576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68294': 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) = 6257.29268218
delta logL = 9.99541953206e-07

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  1.000e-04  1.770e-05  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  2.760e+00  2.989e+02  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  9.348e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  8.142e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.052e+00  1.496e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  9.893e-01  3.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.717 -22.326

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/68294/cmap_HighResolution_524707201_524966401_4FGL_J1258.8-2219_daily_bin1101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-05', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-06 13:27:03.720579', job_id='68294', GAL2='1.05', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630960023.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.00e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1101' AND source_name='4FGL J1258.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:27:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 68294: <4FGL_J1258.8-2219_daily_bin1101> in cluster <slac> Done

Job <4FGL_J1258.8-2219_daily_bin1101> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 13:16:26 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 13:16:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 13:16:28 2021
Terminated at Mon Sep  6 13:27:04 2021
Results reported at Mon Sep  6 13:27:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.8-2219_daily_bin1101 194.717 -22.3257 524707201 524966401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1258.8-2219 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   604.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            638 sec.

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

