/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 77 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1258.8-2219_daily_bin177
RA = 194.717, Dec = -22.3257
tmin = 285206401, tmax = 285465601
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='62037', job_status='RUN', time_executed='2021-09-06 12:57:11.746693', time_epoch_executed='1630958231.75' WHERE source_name='4FGL J1258.8-2219' and cadence='daily' and bin_id='177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62037

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62037/ft1_4FGL_J1258.8-2219_daily_bin177.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62037/ft2_4FGL_J1258.8-2219_daily_bin177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62037/ft1_4FGL_J1258.8-2219_daily_bin177.fits outfile=/scratch/kocevski/62037/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin177.fits ra=194.717 dec=-22.3257 rad=12.0 tmin=285206401.0 tmax=285465601.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.50
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62037/ft2_4FGL_J1258.8-2219_daily_bin177.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/62037/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin177.fits evtable="EVENTS" outfile="/scratch/kocevski/62037/ft1_filtered_4FGL_J1258.8-2219_daily_bin177.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.67
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62037/ft1_filtered_4FGL_J1258.8-2219_daily_bin177.fits" evtable="EVENTS" scfile=/scratch/kocevski/62037/ft2_4FGL_J1258.8-2219_daily_bin177.fits sctable="SC_DATA" outfile=/scratch/kocevski/62037/ltcube_285206401_285465601_4FGL_J1258.8-2219_daily_bin177.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/62037/ft2_4FGL_J1258.8-2219_daily_bin177.fits
.....................!
real 12.34
user 11.99
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62037/ft1_filtered_4FGL_J1258.8-2219_daily_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/62037/ft2_4FGL_J1258.8-2219_daily_bin177.fits sctable="SC_DATA" expcube=/scratch/kocevski/62037/ltcube_285206401_285465601_4FGL_J1258.8-2219_daily_bin177.fits outfile=/scratch/kocevski/62037/expmap_285206401_285465601_4FGL_J1258.8-2219_daily_bin177.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/62037/ltcube_285206401_285465601_4FGL_J1258.8-2219_daily_bin177.fits
.....................!
real 191.79
user 186.06
sys 5.07

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/62037/ft1_filtered_4FGL_J1258.8-2219_daily_bin177.fits scfile=/scratch/kocevski/62037/ft2_4FGL_J1258.8-2219_daily_bin177.fits outfile=/scratch/kocevski/62037/cmap_285206401_285465601_4FGL_J1258.8-2219_daily_bin177.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62037/ft1_filtered_4FGL_J1258.8-2219_daily_bin177.fits scfile=/scratch/kocevski/62037/ft2_4FGL_J1258.8-2219_daily_bin177.fits outfile=/scratch/kocevski/62037/cmap_HighResolution_285206401_285465601_4FGL_J1258.8-2219_daily_bin177.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/62037/ft1_filtered_4FGL_J1258.8-2219_daily_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/62037/ft2_4FGL_J1258.8-2219_daily_bin177.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62037/Model_4FGL_J1258.8-2219_daily_bin177.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/62037/ft1_filtered_4FGL_J1258.8-2219_daily_bin177.fits.....................!
real 104.37
user 102.82
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/62037/ft1_filtered_4FGL_J1258.8-2219_daily_bin177.fits', '/scratch/kocevski/62037/ft2_4FGL_J1258.8-2219_daily_bin177.fits', expMap='/scratch/kocevski/62037/expmap_285206401_285465601_4FGL_J1258.8-2219_daily_bin177.fits', expCube='/scratch/kocevski/62037/ltcube_285206401_285465601_4FGL_J1258.8-2219_daily_bin177.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/62037/Model_4FGL_J1258.8-2219_daily_bin177.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/62037/ft1_filtered_4FGL_J1258.8-2219_daily_bin177.fits
Spacecraft file(s): /scratch/kocevski/62037/ft2_4FGL_J1258.8-2219_daily_bin177.fits
Exposure map: /scratch/kocevski/62037/expmap_285206401_285465601_4FGL_J1258.8-2219_daily_bin177.fits
Exposure cube: /scratch/kocevski/62037/ltcube_285206401_285465601_4FGL_J1258.8-2219_daily_bin177.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/62037/Model_4FGL_J1258.8-2219_daily_bin177.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) = 6216.9733131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.736       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.055       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10680E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .55862       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9656       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4139       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5533       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.8352       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11602E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.339       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.384       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .85245       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4443       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92378       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=   6216.917     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3289 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.442        .38049E-06** at limit **
   2  Prefactor     19.675        39.392        .61013E-05    .85507E-05
   3  Prefactor     20.062        24.529       -.24277E-06    .63123E-05
   4  Prefactor     .10000E-03    90.666       -.13070E-05** at limit **
   5  Prefactor     .10000E-03    6.4835       -.24545E-06** at limit **
   6  Prefactor     .55555        6.9311        .16303E-06   -.98556E-04
   7  Prefactor     8.9657        3.2844       -.88544E-07   -.11714E-03
   8  Prefactor     .10000E-03    8.9967       -.22225E-06** at limit **
   9  Prefactor     2.4104        19.855        .46390E-05   -.10359E-04
  10  norm          2.5537        1.5230        .27209E-07   -.16117E-04
  11  Prefactor     .10000E-03    26.846        .20702E-06** at limit **
  12  norm          .10000E-03    7.1738        .14432E-06** at limit **
  13  norm          7.8367        6.3370        .71257E-07   -.16581E-05
  14  Prefactor     .10000E-03    4.6170       -.67912E-08** at limit **
  15  norm          .10000E-03    3.3013       -.65178E-08** at limit **
  16  norm          .10000E-03    3.4641       -.49107E-08** at limit **
  17  norm          .10000E-03    5.0883        .14443E-07** at limit **
  18  Prefactor     15.339        14.004        .43508E-07   -.21141E-05
  19  Prefactor     20.380        29.978        .35224E-06   -.11529E-06
  20  Prefactor     .10000E-03    12.667       -.10834E-06** at limit **
  21  Prefactor     .10000E-03    20.539       -.42106E-06** at limit **
  22  Prefactor     .10000E-03    11.301        .34520E-06** at limit **
  23  Prefactor     .10000E-03    6.7220        .13244E-06** at limit **
  24  norm          .85256        7.9430        .74556E-06    .11772E-05
  25  norm          .10000E-03    21.673       -.82762E-07** at limit **
  26  Normalizat    1.4446        .28400       -.62891E-06    .54137E-05
  27  Prefactor     .92361        .12685       -.11334E-06   -.30955E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.6753
  Prefactor  = 20.0618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.555549
  Prefactor  = 8.9657
  Prefactor  = 0.0001
  Prefactor  = 2.41037
  norm       = 2.55369
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.83669
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.3388
  Prefactor  = 20.3805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.852556
  norm       = 0.0001
  Normalizat = 1.44462
  Prefactor  = 0.923614
 **********
 **   18 **HESSE 
 **********

 FCN=   6216.917     FROM HESSE     STATUS=OK           488 CALLS     3777 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.675        39.413        .90158E-04   -1.4821    
   3  Prefactor     20.062        24.501        .89438E-04   -1.4812    
   4  Prefactor     .10000E-03    90.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.4907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55555        22.114        .37791E-02   -1.5559    
   7  Prefactor     8.9657        3.3336        .39773E-03   -1.5109    
   8  Prefactor     .10000E-03    9.0218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4104        20.040        .13174E-02   -1.5397    
  10  norm          2.5537        1.5166        .70814E-04   -1.5388    
  11  Prefactor     .10000E-03    26.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.2645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.8367        6.3281        .14325E-03   -1.5148    
  14  Prefactor     .10000E-03    4.6459        .16515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.3489        .13988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.6141        .28632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.1081        .17369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.339        14.001        .10227E-03   -1.4924    
  19  Prefactor     20.380        30.021        .88714E-04   -1.4805    
  20  Prefactor     .10000E-03    12.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.7395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .85256        7.9514        .43014E-03   -1.5523    
  25  norm          .10000E-03    21.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.4446        .34207        .35015E-03   -.79347    
  27  Prefactor     .92361        .15318        .19368E-03   -.95321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37296e-08
Minuit parameter uncertainties:
  1  4.24255e-07
  2  39.4655
  3  24.5136
  4  4.99675e-06
  5  7.77534e-06
  6  7.01225
  7  3.33364
  8  8.87656e-07
  9  13.9062
  10  1.5166
  11  1.77864e-06
  12  2.17223e-06
  13  6.32863
  14  5.75244e-07
  15  1.01703e-06
  16  2.35135e-06
  17  1.37448e-06
  18  14.0035
  19  30.0429
  20  3.75405e-06
  21  2.36983e-06
  22  3.92771e-06
  23  2.38238e-06
  24  5.2079
  25  1.30987e-07
  26  0.342616
  27  0.153247
Done.

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

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  7.837e+00  6.329e+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

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  9.236e-01  1.532e-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:  1.445e+00  3.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.22
Ra Dec: 194.717 -22.326
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 6.32e-08 +/- 5.10e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.81e-05

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

Saving results to:
/scratch/kocevski/62037/likelihoodResults_285206401_285465601_4FGL_J1258.8-2219_daily_bin177.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) = 6216.19152995
delta logL = 0.725953212372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6216.18771864
delta logL = 0.72976452395

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9672       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2585       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94834       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.

 FCN=   6216.188     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      269 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9650        51.684        .45112E-02    .82380E-03
   2  alpha         3.2589        4.1083        .28665        .11526E-03
   3  Normalizat    1.3442        .11806        .81410E-01    .36853E-04
   4  Prefactor     .94849        .47582E-01    .45618E-01   -.31939E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.96505
  alpha      = 3.25888
  Normalizat = 1.3442
  Prefactor  = 0.94849
 **********
 **   18 **HESSE 
 **********

 FCN=   6216.188     FROM HESSE     STATUS=OK            31 CALLS      300 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9650        6.0142        .96077E-04   -1.5262    
   2  alpha         3.2589        .84762        .11270E-01    .30842    
   3  Normalizat    1.3442        .34327        .36038E-03   -.82256    
   4  Prefactor     .94849        .15332        .19124E-03   -.94467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19997e-10
Minuit parameter uncertainties:
  1  6.01494
  2  0.866612
  3  0.34386
  4  0.153388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62037': 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) = 6216.18771739
delta logL = 0.729765769518

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  4.965e+00  6.015e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  3.259e+00  8.666e-01  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:  9.485e-01  1.534e-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:  1.344e+00  3.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.74
Ra Dec: 194.717 -22.326
Photon Index (Free Index): 3.26 +/- 0.87
Photon Flux (Free Index): 1.56e-07 +/- 1.05e-07
Energy Flux (Free Index): 2.98e-05 +/- 1.74e-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/62037/cmap_HighResolution_285206401_285465601_4FGL_J1258.8-2219_daily_bin177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-05', comment='SUCCESS', photon_flux='6.32e-08', energy_flux2='2.98e-05', photon_flux_error='5.10e-08', dlogl='7.30e-01', energy_flux='2.24e-05', photon_flux2='1.56e-07', job_status='DONE', time_completed='2021-09-06 13:11:02.021215', photon_index_error2='0.87', photon_index2='3.26', ts='3.22', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='1.74e-05', EG='1.44', time_epoch_completed='1630959062.02', return_code='0', job_id='62037', GAL2='0.95', EG2='1.34', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='1.05e-07', ts2='4.74', photon_index='2.33' WHERE bin_id='177' AND source_name='4FGL J1258.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:11:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 62037: <4FGL_J1258.8-2219_daily_bin177> in cluster <slac> Done

Job <4FGL_J1258.8-2219_daily_bin177> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 12:55:28 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:55:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 12:55:29 2021
Terminated at Mon Sep  6 13:11:02 2021
Results reported at Mon Sep  6 13:11:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.8-2219_daily_bin177 194.717 -22.3257 285206401 285465601 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 :                                   813.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            934 sec.

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

