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


Performing analysis on: 4FGL_J1258.6-1759_daily_bin891
RA = 194.663, Dec = -17.9958
tmin = 470275201, tmax = 470534401
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='56014', job_status='RUN', time_executed='2021-09-06 12:39:12.083339', time_epoch_executed='1630957152.08' WHERE source_name='4FGL J1258.6-1759' and cadence='daily' and bin_id='891'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/56014

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/56014/ft1_4FGL_J1258.6-1759_daily_bin891.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/56014/ft2_4FGL_J1258.6-1759_daily_bin891.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/56014/ft1_4FGL_J1258.6-1759_daily_bin891.fits outfile=/scratch/kocevski/56014/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin891.fits ra=194.663 dec=-17.9958 rad=12.0 tmin=470275201.0 tmax=470534401.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 4.29
user 3.22
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/56014/ft2_4FGL_J1258.6-1759_daily_bin891.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/56014/ft2_4FGL_J1258.6-1759_daily_bin891.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/56014/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin891.fits evtable="EVENTS" outfile="/scratch/kocevski/56014/ft1_filtered_4FGL_J1258.6-1759_daily_bin891.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/56014/ft1_filtered_4FGL_J1258.6-1759_daily_bin891.fits" evtable="EVENTS" scfile=/scratch/kocevski/56014/ft2_4FGL_J1258.6-1759_daily_bin891.fits sctable="SC_DATA" outfile=/scratch/kocevski/56014/ltcube_470275201_470534401_4FGL_J1258.6-1759_daily_bin891.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/56014/ft2_4FGL_J1258.6-1759_daily_bin891.fits
.....................!
real 12.07
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/56014/ft1_filtered_4FGL_J1258.6-1759_daily_bin891.fits evtable="EVENTS" scfile=/scratch/kocevski/56014/ft2_4FGL_J1258.6-1759_daily_bin891.fits sctable="SC_DATA" expcube=/scratch/kocevski/56014/ltcube_470275201_470534401_4FGL_J1258.6-1759_daily_bin891.fits outfile=/scratch/kocevski/56014/expmap_470275201_470534401_4FGL_J1258.6-1759_daily_bin891.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/56014/ltcube_470275201_470534401_4FGL_J1258.6-1759_daily_bin891.fits
.....................!
real 192.27
user 184.93
sys 5.24

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1258.6-1759 @ 194.663 -17.9958

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/56014/ft1_filtered_4FGL_J1258.6-1759_daily_bin891.fits scfile=/scratch/kocevski/56014/ft2_4FGL_J1258.6-1759_daily_bin891.fits outfile=/scratch/kocevski/56014/cmap_470275201_470534401_4FGL_J1258.6-1759_daily_bin891.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.663 yref=-17.9958 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.67
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/56014/ft1_filtered_4FGL_J1258.6-1759_daily_bin891.fits scfile=/scratch/kocevski/56014/ft2_4FGL_J1258.6-1759_daily_bin891.fits outfile=/scratch/kocevski/56014/cmap_HighResolution_470275201_470534401_4FGL_J1258.6-1759_daily_bin891.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.663 yref=-17.9958 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/56014/ft1_filtered_4FGL_J1258.6-1759_daily_bin891.fits evtable="EVENTS" scfile=/scratch/kocevski/56014/ft2_4FGL_J1258.6-1759_daily_bin891.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/56014/Model_4FGL_J1258.6-1759_daily_bin891.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/56014/ft1_filtered_4FGL_J1258.6-1759_daily_bin891.fits.....................!
real 60.12
user 55.93
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/56014/ft1_filtered_4FGL_J1258.6-1759_daily_bin891.fits', '/scratch/kocevski/56014/ft2_4FGL_J1258.6-1759_daily_bin891.fits', expMap='/scratch/kocevski/56014/expmap_470275201_470534401_4FGL_J1258.6-1759_daily_bin891.fits', expCube='/scratch/kocevski/56014/ltcube_470275201_470534401_4FGL_J1258.6-1759_daily_bin891.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/56014/Model_4FGL_J1258.6-1759_daily_bin891.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1258.6-1759'

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  4.083e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.233e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  1.374e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  6.757e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/56014/ft1_filtered_4FGL_J1258.6-1759_daily_bin891.fits
Spacecraft file(s): /scratch/kocevski/56014/ft2_4FGL_J1258.6-1759_daily_bin891.fits
Exposure map: /scratch/kocevski/56014/expmap_470275201_470534401_4FGL_J1258.6-1759_daily_bin891.fits
Exposure cube: /scratch/kocevski/56014/ltcube_470275201_470534401_4FGL_J1258.6-1759_daily_bin891.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/56014/Model_4FGL_J1258.6-1759_daily_bin891.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) = 7135.16237763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5300       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3187       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.0177       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2487       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10330E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3542       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .69902E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10933E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5587       1.0000         .10000E-03   10000.    
    17 'norm      '    15.355       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3297       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.9735       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21270E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2384       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5978       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89379       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7135.144     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     3227 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5435        70.205       -.32811E-05   -.24076E-04
   2  Prefactor     .10000E-03    4.9174       -.83559E-08** at limit **
   3  Prefactor     4.3189        2.1767        .14769E-07    .30364E-05
   4  Prefactor     .10008E-03    7.0175        .14190E-05** at limit **
   5  Prefactor     .10000E-03    13.847       -.11257E-05** at limit **
   6  norm          2.0177        1.2172        .26972E-07   -.21183E-03
   7  Prefactor     7.2566        115.57       -.34226E-07   -.97555E-05
   8  norm          .10000E-03    2.6100       -.85919E-08** at limit **
   9  norm          .10004E-03    3.9002       -.86887E-06** at limit **
  10  Prefactor     1.3554        4.2868        .28170E-05   -.58702E-04
  11  norm          .10000E-03    1.0384       -.11169E-08** at limit **
  12  norm          .10648E-03    6.2544       -.23515E-06** at limit **
  13  Prefactor     .10000E-03    2.6111        .17068E-08** at limit **
  14  Prefactor     .10000E-03    2.9369       -.19093E-08** at limit **
  15  Prefactor     .10000E-03    18.968       -.32042E-06** at limit **
  16  norm          3.5613        3.5321       -.50829E-08   -.37028E-04
  17  norm          15.355        9.1746       -.18606E-07    .23551E-04
  18  Prefactor     8.3043        14.783        .11512E-05    .48126E-03
  19  Prefactor     9.9693        18.738        .13262E-05    .10348E-03
  20  Prefactor     .10003E-03    7.3041       -.12675E-05** at limit **
  21  norm          1.2388        3.8416        .83363E-06   -.13428E-03
  22  Normalizat    1.5979        .25274       -.33221E-06    .65147E-04
  23  Prefactor     .89374        .12429       -.34442E-06    .11913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.54348
  Prefactor  = 0.0001
  Prefactor  = 4.31886
  Prefactor  = 0.000100075
  Prefactor  = 0.0001
  norm       = 2.01773
  Prefactor  = 7.25663
  norm       = 0.0001
  norm       = 0.000100039
  Prefactor  = 1.35544
  norm       = 0.0001
  norm       = 0.000106485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.56125
  norm       = 15.3547
  Prefactor  = 8.30432
  Prefactor  = 9.96933
  Prefactor  = 0.000100033
  norm       = 1.2388
  Normalizat = 1.59792
  Prefactor  = 0.893736
 **********
 **   18 **HESSE 
 **********

 FCN=   7135.144     FROM HESSE     STATUS=OK           386 CALLS     3613 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5435        70.369        .13725E-03   -1.5123    
   2  Prefactor     .10000E-03    5.0883        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.3189        2.1759        .85930E-04   -1.5292    
   4  Prefactor     .10008E-03    28.663        .41452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.0177        1.2108        .68959E-04   -1.5424    
   7  Prefactor     7.2566        112.89        .14898E-03   -1.5169    
   8  norm          .10000E-03    2.6166        .13326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10004E-03    14.064        .30206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3554        4.3725        .30037E-03   -1.5475    
  11  norm          .10000E-03    1.0484        .84041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10648E-03    7.3379        .78535E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.6128        .13330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.9435        .14136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5613        3.5168        .14805E-03   -1.5331    
  17  norm          15.355        9.1595        .10221E-03   -1.4924    
  18  Prefactor     8.3043        15.207        .13890E-03   -1.5132    
  19  Prefactor     9.9693        18.729        .12688E-03   -1.5076    
  20  Prefactor     .10003E-03    32.847        .40647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2388        3.7775        .28078E-03   -1.5485    
  22  Normalizat    1.5979        .29736        .33402E-03   -.75063    
  23  Prefactor     .89374        .14685        .20886E-03   -.96360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9145e-09
Minuit parameter uncertainties:
  1  49.1173
  2  6.43836e-06
  3  2.17598
  4  0.00294278
  5  2.34116e-05
  6  1.21079
  7  57.3718
  8  2.78681e-07
  9  0.00147493
  10  4.37355
  11  2.34879e-07
  12  0.0137982
  13  9.62888e-07
  14  1.46579e-06
  15  1.86403e-06
  16  3.51704
  17  9.16034
  18  15.2145
  19  18.7401
  20  0.00206907
  21  3.77819
  22  0.297685
  23  0.14692
Done.

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

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  1.000e-04  2.787e-07  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.233e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  1.374e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  6.757e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  8.937e-01  1.469e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.598e+00  2.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.663 -17.996
Photon Flux Upper Limit: 5.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/56014/likelihoodResults_470275201_470534401_4FGL_J1258.6-1759_daily_bin891.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) = 7135.14531015
delta logL = -0.00180706222727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7135.14350309
delta logL = -8.09541234048e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2340       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5979       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89374       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+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=   7135.144     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      223 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    6.2704        .13327E-02** at limit **
   2  alpha         2.2653        3.5522        .16580       -.89949E-06
   3  Normalizat    1.5979        .29508        .33402E-03   -.40696E-03
   4  Prefactor     .89374        .14431        .20886E-03   -.42037E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010002
  alpha      = 2.26526
  Normalizat = 1.59792
  Prefactor  = 0.893737
 **********
 **   18 **HESSE 
 **********

 FCN=   7135.144     FROM HESSE     STATUS=OK            23 CALLS      246 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    2.6198        .26654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2653        3.4562        .66320E-02   -.94033E-01
   3  Normalizat    1.5979        .29532        .66804E-04   -.75063    
   4  Prefactor     .89374        .14443        .41771E-04   -.96360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77599e-08
Minuit parameter uncertainties:
  1  0.000456855
  2  270.87
  3  0.295647
  4  0.144492
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/56014': 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) = 7135.14350307
delta logL = 1.48256731336e-08

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  1.000e-04  4.569e-04  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.265e+00  2.709e+02  0.000e+00  5.000e+00 ( 1.000e+00)
299         beta:  1.374e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  6.757e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  8.937e-01  1.445e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.598e+00  2.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.663 -17.996

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/56014/cmap_HighResolution_470275201_470534401_4FGL_J1258.6-1759_daily_bin891.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-05', job_status='DONE', photon_flux_upper_limit='5.86e-08', time_completed='2021-09-06 12:52:19.548833', job_id='56014', GAL2='0.89', fit_tolerance='1e-08', EG2='1.60', EG='1.60', time_epoch_completed='1630957939.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.48e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='891' AND source_name='4FGL J1258.6-1759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:52:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 56014: <4FGL_J1258.6-1759_daily_bin891> in cluster <slac> Done

Job <4FGL_J1258.6-1759_daily_bin891> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 12:37:16 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:37:17 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:37:17 2021
Terminated at Mon Sep  6 12:52:20 2021
Results reported at Mon Sep  6 12:52:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.6-1759_daily_bin891 194.663 -17.9958 470275201 470534401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1258.6-1759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   776.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            904 sec.

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

