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


Performing analysis on: 4FGL_J1258.8-2219_daily_bin976
RA = 194.717, Dec = -22.3257
tmin = 492307201, tmax = 492566401
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='68061', job_status='RUN', time_executed='2021-09-06 13:18:03.942571', time_epoch_executed='1630959483.94' WHERE source_name='4FGL J1258.8-2219' and cadence='daily' and bin_id='976'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68061

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68061/ft1_4FGL_J1258.8-2219_daily_bin976.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68061/ft2_4FGL_J1258.8-2219_daily_bin976.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68061/ft1_4FGL_J1258.8-2219_daily_bin976.fits outfile=/scratch/kocevski/68061/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin976.fits ra=194.717 dec=-22.3257 rad=12.0 tmin=492307201.0 tmax=492566401.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.81
user 3.47
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/68061/ft2_4FGL_J1258.8-2219_daily_bin976.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/68061/ft1_filteredMKT_4FGL_J1258.8-2219_daily_bin976.fits evtable="EVENTS" outfile="/scratch/kocevski/68061/ft1_filtered_4FGL_J1258.8-2219_daily_bin976.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.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/68061/ft1_filtered_4FGL_J1258.8-2219_daily_bin976.fits" evtable="EVENTS" scfile=/scratch/kocevski/68061/ft2_4FGL_J1258.8-2219_daily_bin976.fits sctable="SC_DATA" outfile=/scratch/kocevski/68061/ltcube_492307201_492566401_4FGL_J1258.8-2219_daily_bin976.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/68061/ft2_4FGL_J1258.8-2219_daily_bin976.fits
.....................!
real 12.18
user 11.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68061/ft1_filtered_4FGL_J1258.8-2219_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/68061/ft2_4FGL_J1258.8-2219_daily_bin976.fits sctable="SC_DATA" expcube=/scratch/kocevski/68061/ltcube_492307201_492566401_4FGL_J1258.8-2219_daily_bin976.fits outfile=/scratch/kocevski/68061/expmap_492307201_492566401_4FGL_J1258.8-2219_daily_bin976.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/68061/ltcube_492307201_492566401_4FGL_J1258.8-2219_daily_bin976.fits
.....................!
real 192.54
user 186.16
sys 5.43

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/68061/ft1_filtered_4FGL_J1258.8-2219_daily_bin976.fits scfile=/scratch/kocevski/68061/ft2_4FGL_J1258.8-2219_daily_bin976.fits outfile=/scratch/kocevski/68061/cmap_492307201_492566401_4FGL_J1258.8-2219_daily_bin976.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/68061/ft1_filtered_4FGL_J1258.8-2219_daily_bin976.fits scfile=/scratch/kocevski/68061/ft2_4FGL_J1258.8-2219_daily_bin976.fits outfile=/scratch/kocevski/68061/cmap_HighResolution_492307201_492566401_4FGL_J1258.8-2219_daily_bin976.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.57
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/68061/ft1_filtered_4FGL_J1258.8-2219_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/68061/ft2_4FGL_J1258.8-2219_daily_bin976.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/68061/Model_4FGL_J1258.8-2219_daily_bin976.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/68061/ft1_filtered_4FGL_J1258.8-2219_daily_bin976.fits.....................!
real 110.16
user 108.62
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21442E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.164       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.208       1.0000         .10000E-03   10000.    
    13 'norm      '    25.811       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4910       1.0000         .10000E-03   10000.    
    15 'norm      '    2.3775       1.0000         .10000E-03   10000.    
    16 'norm      '    5.0258       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.673       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .43862E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.8334       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4508       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .36054       1.0000         .10000E-03   10000.    
    25 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.7913       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .64934       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6675.132     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     2752 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10142E-03    37.199        .27725E-04** at limit **
   2  Prefactor     .10017E-03    11.280        .58751E-05** at limit **
   3  Prefactor     .10000E-03    6.8660       -.18959E-05** at limit **
   4  Prefactor     .10034E-03    14.259       -.32934E-04** at limit **
   5  Prefactor     .11043E-03    53.654       -.45518E-05** at limit **
   6  Prefactor     .10000E-03    3.1788        .12963E-06** at limit **
   7  Prefactor     10.164        3.1991       -.17020E-07    .12477E-04
   8  Prefactor     .10023E-03    6.5776        .19916E-04** at limit **
   9  Prefactor     .10000E-03    7.7732        .22105E-05** at limit **
  10  norm          .10000E-03    1.4045        .65528E-07** at limit **
  11  Prefactor     .10159E-03    57.512       -.26471E-04** at limit **
  12  norm          11.207        1.0544        .31233E-06    .25405E-03
  13  norm          25.814        1.0141       -.27806E-07   -.17903E-03
  14  Prefactor     2.4913        1.0479       -.40628E-06   -.15687E-03
  15  norm          2.3780        4.3731       -.42604E-05   -.19258E-03
  16  norm          5.0252        3.2567       -.23158E-06   -.98969E-04
  17  norm          .10000E-03    5.5655        .54078E-06** at limit **
  18  Prefactor     19.666        1.1108        .15262E-06    .26019E-03
  19  Prefactor     .52274E-03    40.951       -.76796E-04** at limit **
  20  Prefactor     6.8344        1.0370        .48192E-06    .48574E-04
  21  Prefactor     .10033E-03    8.0481        .28159E-04** at limit **
  22  Prefactor     2.4489        1.0330       -.47795E-06   -.18499E-04
  23  Prefactor     .10000E-03    4.2968       -.13350E-08** at limit **
  24  norm          .32575        1.9756       -.11020E-04    .59747E-04
  25  norm          .10038E-03    18.776       -.42002E-04** at limit **
  26  Normalizat    1.7912        .31130        .36011E-07    .65304E-04
  27  Prefactor     .64940        .13713        .12675E-05    .54093E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101422
  Prefactor  = 0.000100173
  Prefactor  = 0.0001
  Prefactor  = 0.000100341
  Prefactor  = 0.000110434
  Prefactor  = 0.0001
  Prefactor  = 10.1636
  Prefactor  = 0.00010023
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101591
  norm       = 11.2068
  norm       = 25.8139
  Prefactor  = 2.49129
  norm       = 2.37799
  norm       = 5.02522
  norm       = 0.0001
  Prefactor  = 19.6657
  Prefactor  = 0.000522739
  Prefactor  = 6.83435
  Prefactor  = 0.000100326
  Prefactor  = 2.44886
  Prefactor  = 0.0001
  norm       = 0.325751
  norm       = 0.000100383
  Normalizat = 1.79118
  Prefactor  = 0.649398
 **********
 **   18 **HESSE 
 **********

 FCN=   6675.132     FROM HESSE     STATUS=OK           556 CALLS     3308 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10142E-03    39.566        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10017E-03    21.626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.8631        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10034E-03    15.828        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11043E-03    108.14        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.1725        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.164        3.2007        .31421E-02   -1.5070    
   8  Prefactor     .10023E-03    16.884        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.7620        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .58757        .21387E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10159E-03    122.22        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.207        12.477        .29917E-02   -1.5038    
  13  norm          25.814        13.222        .19712E-02   -1.4691    
  14  Prefactor     2.4913        9.2591        .64745E-02   -1.5392    
  15  norm          2.3780        4.4081        .66421E-02   -1.5400    
  16  norm          5.0252        3.2750        .44843E-02   -1.5260    
  17  norm          .10000E-03    5.5187        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.666        13.554        .22575E-02   -1.4821    
  19  Prefactor     .52274E-03    30.028        .12863       -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.8344        9.2216        .38371E-02   -1.5185    
  21  Prefactor     .10033E-03    17.605        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.4489        9.1553        .65324E-02   -1.5395    
  23  Prefactor     .10000E-03    4.2916        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .32575        6.3681        .70642E-01   -1.5594    
  25  norm          .10038E-03    26.418        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.7912        .26839        .71351E-01   -.69894    
  27  Prefactor     .64940        .11642        .41723E-01   -1.0554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03005e-06
Minuit parameter uncertainties:
  1  0.0150136
  2  0.00386554
  3  4.13546e-05
  4  0.00464916
  5  0.0673033
  6  3.15806e-06
  7  3.20079
  8  0.00394276
  9  4.82686e-05
  10  3.47863e-06
  11  0.0279421
  12  12.4804
  13  13.2233
  14  9.26444
  15  4.40873
  16  3.27515
  17  3.49943e-06
  18  13.5558
  19  0.225447
  20  9.22353
  21  0.00479606
  22  9.16053
  23  3.30041e-06
  24  2.88047
  25  0.00636181
  26  0.268608
  27  0.116463
Done.

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

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  2.581e+01  1.322e+01  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:  6.494e-01  1.165e-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.791e+00  2.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.72
Ra Dec: 194.717 -22.326
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.08e-07 +/- 1.07e-07
Energy Flux (Fixed Index): 7.37e-05 +/- 3.77e-05

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) = 6674.77754156
delta logL = 0.354589133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6674.76203918
delta logL = 0.370091511131

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.165       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6748       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66975       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=   6674.762     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      269 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.166        11.688        .89193E-04   -.47275E-03
   2  alpha         2.6748        .44652        .79397E-02   -.92440E-04
   3  Normalizat    1.7264        .32283        .31988E-03    .12252E-03
   4  Prefactor     .66976        .13917        .21133E-03    .12443E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.1656
  alpha      = 2.67484
  Normalizat = 1.72643
  Prefactor  = 0.669757
 **********
 **   18 **HESSE 
 **********

 FCN=   6674.762     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.166        11.057        .35677E-05   -1.4810    
   2  alpha         2.6748        .42229        .31759E-03    .69994E-01
   3  Normalizat    1.7264        .32228        .63975E-04   -.71600    
   4  Prefactor     .66976        .13892        .84533E-05   -1.0472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08686e-10
Minuit parameter uncertainties:
  1  11.0585
  2  0.424336
  3  0.322677
  4  0.138992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68061': 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) = 6674.76203916
delta logL = 0.370091527388

Extracting fit parameters...

4FGL J1258.8-2219
   Spectrum: LogParabola
279         norm:  2.017e+01  1.106e+01  1.000e-04  1.000e+04 ( 1.000e-12)
280        alpha:  2.675e+00  4.243e-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:  6.698e-01  1.390e-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.726e+00  3.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.57
Ra Dec: 194.717 -22.326
Photon Index (Free Index): 2.67 +/- 0.42
Photon Flux (Free Index): 2.60e-07 +/- 1.07e-07
Energy Flux (Free Index): 6.72e-05 +/- 2.54e-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/68061/cmap_HighResolution_492307201_492566401_4FGL_J1258.8-2219_daily_bin976.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.08e-07', energy_flux2='6.72e-05', photon_flux_error='1.07e-07', dlogl='3.70e-01', energy_flux='7.37e-05', photon_flux2='2.60e-07', job_status='DONE', time_completed='2021-09-06 13:30:15.027598', photon_index_error2='0.42', photon_index2='2.67', ts='11.72', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='2.54e-05', EG='1.79', time_epoch_completed='1630960215.03', return_code='0', job_id='68061', GAL2='0.67', EG2='1.73', return_code2='0', energy_flux_error='3.77e-05', photon_flux_error2='1.07e-07', ts2='12.57', photon_index='2.33' WHERE bin_id='976' AND source_name='4FGL J1258.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:30:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 68061: <4FGL_J1258.8-2219_daily_bin976> in cluster <slac> Done

Job <4FGL_J1258.8-2219_daily_bin976> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 13:16:07 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 13:16:08 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:08 2021
Terminated at Mon Sep  6 13:30:18 2021
Results reported at Mon Sep  6 13:30:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.8-2219_daily_bin976 194.717 -22.3257 492307201 492566401 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 :                                   715.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            851 sec.

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

