/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 4 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1258.6-1759_daily_bin249
RA = 194.663, Dec = -17.9958
tmin = 303868801, tmax = 304128001
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='52589', job_status='RUN', time_executed='2021-09-06 12:25:40.787123', time_epoch_executed='1630956340.79' WHERE source_name='4FGL J1258.6-1759' and cadence='daily' and bin_id='249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/52589

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/52589/ft1_4FGL_J1258.6-1759_daily_bin249.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/52589/ft2_4FGL_J1258.6-1759_daily_bin249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/52589/ft1_4FGL_J1258.6-1759_daily_bin249.fits outfile=/scratch/kocevski/52589/ft1_filteredMKT_4FGL_J1258.6-1759_daily_bin249.fits ra=194.663 dec=-17.9958 rad=12.0 tmin=303868801.0 tmax=304128001.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.44
user 3.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/52589/ft1_filtered_4FGL_J1258.6-1759_daily_bin249.fits" evtable="EVENTS" scfile=/scratch/kocevski/52589/ft2_4FGL_J1258.6-1759_daily_bin249.fits sctable="SC_DATA" outfile=/scratch/kocevski/52589/ltcube_303868801_304128001_4FGL_J1258.6-1759_daily_bin249.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/52589/ft2_4FGL_J1258.6-1759_daily_bin249.fits
.....................!
real 11.74
user 11.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/52589/ft1_filtered_4FGL_J1258.6-1759_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/52589/ft2_4FGL_J1258.6-1759_daily_bin249.fits sctable="SC_DATA" expcube=/scratch/kocevski/52589/ltcube_303868801_304128001_4FGL_J1258.6-1759_daily_bin249.fits outfile=/scratch/kocevski/52589/expmap_303868801_304128001_4FGL_J1258.6-1759_daily_bin249.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/52589/ltcube_303868801_304128001_4FGL_J1258.6-1759_daily_bin249.fits
.....................!
real 192.72
user 187.05
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/52589/ft1_filtered_4FGL_J1258.6-1759_daily_bin249.fits scfile=/scratch/kocevski/52589/ft2_4FGL_J1258.6-1759_daily_bin249.fits outfile=/scratch/kocevski/52589/cmap_303868801_304128001_4FGL_J1258.6-1759_daily_bin249.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.81
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/52589/ft1_filtered_4FGL_J1258.6-1759_daily_bin249.fits scfile=/scratch/kocevski/52589/ft2_4FGL_J1258.6-1759_daily_bin249.fits outfile=/scratch/kocevski/52589/cmap_HighResolution_303868801_304128001_4FGL_J1258.6-1759_daily_bin249.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.98
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/52589/ft1_filtered_4FGL_J1258.6-1759_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/52589/ft2_4FGL_J1258.6-1759_daily_bin249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/52589/Model_4FGL_J1258.6-1759_daily_bin249.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/52589/ft1_filtered_4FGL_J1258.6-1759_daily_bin249.fits.....................!
real 66.60
user 60.09
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/52589/ft1_filtered_4FGL_J1258.6-1759_daily_bin249.fits', '/scratch/kocevski/52589/ft2_4FGL_J1258.6-1759_daily_bin249.fits', expMap='/scratch/kocevski/52589/expmap_303868801_304128001_4FGL_J1258.6-1759_daily_bin249.fits', expCube='/scratch/kocevski/52589/ltcube_303868801_304128001_4FGL_J1258.6-1759_daily_bin249.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/52589/Model_4FGL_J1258.6-1759_daily_bin249.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/52589/ft1_filtered_4FGL_J1258.6-1759_daily_bin249.fits
Spacecraft file(s): /scratch/kocevski/52589/ft2_4FGL_J1258.6-1759_daily_bin249.fits
Exposure map: /scratch/kocevski/52589/expmap_303868801_304128001_4FGL_J1258.6-1759_daily_bin249.fits
Exposure cube: /scratch/kocevski/52589/ltcube_303868801_304128001_4FGL_J1258.6-1759_daily_bin249.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/52589/Model_4FGL_J1258.6-1759_daily_bin249.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) = 7763.85285136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.640       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.7772       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7555       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.482       1.0000         .10000E-03   10000.    
     6 'norm      '    5.5390       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4266       1.0000         .10000E-03   10000.    
     9 'norm      '    4.8263       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.045       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    26.489       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.431       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .90640       1.0000         .10000E-03   10000.    
    17 'norm      '    .15801E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0570       1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.782       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6561       1.0000         .10000E-03   10000.    
    21 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0568       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1719       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=   7763.849     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2567 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.638        50.896       -.13422E-05   -.24371E-05
   2  Prefactor     5.7763        8.0535        .21948E-07   -.44487E-03
   3  Prefactor     3.7555        2.3890       -.31113E-07   -.13241E-04
   4  Prefactor     .10000E-03    5.8622       -.12251E-08** at limit **
   5  Prefactor     12.481        15.526        .13121E-05    .54631E-05
   6  norm          5.5390        1.5248        .47011E-08    .31997E-04
   7  Prefactor     .10000E-03    32.453       -.16272E-06** at limit **
   8  norm          2.4264        3.0639        .26309E-06   -.93944E-03
   9  norm          4.8259        6.8747        .14827E-05    .43590E-04
  10  Prefactor     10.045        6.9978       -.24329E-06    .38984E-04
  11  norm          .10000E-03    1.2739        .44993E-08** at limit **
  12  norm          26.489        16.838        .33794E-06    .45484E-05
  13  Prefactor     .10000E-03    7.3187        .46727E-07** at limit **
  14  Prefactor     18.431        13.780       -.25346E-06    .32110E-04
  15  Prefactor     .10000E-03    16.265        .10516E-07** at limit **
  16  norm          .91055        2.9803        .29170E-06    .34513E-04
  17  norm          .10004E-03    4.8899       -.10555E-06** at limit **
  18  Prefactor     1.0661        17.946       -.80023E-05    .85331E-03
  19  Prefactor     44.781        37.265       -.53895E-07    .22298E-03
  20  Prefactor     6.6475        16.013        .86482E-05    .96087E-03
  21  norm          .10000E-03    4.8050        .41210E-07** at limit **
  22  Normalizat    1.0569        .27931       -.12608E-05    .40085E-03
  23  Prefactor     1.1719        .13271        .10094E-06    .76527E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.6385
  Prefactor  = 5.77628
  Prefactor  = 3.75554
  Prefactor  = 0.0001
  Prefactor  = 12.4811
  norm       = 5.53897
  Prefactor  = 0.0001
  norm       = 2.42642
  norm       = 4.82594
  Prefactor  = 10.0452
  norm       = 0.0001
  norm       = 26.4889
  Prefactor  = 0.0001
  Prefactor  = 18.4311
  Prefactor  = 0.0001
  norm       = 0.910552
  norm       = 0.000100038
  Prefactor  = 1.06612
  Prefactor  = 44.7808
  Prefactor  = 6.64752
  norm       = 0.0001
  Normalizat = 1.05686
  Prefactor  = 1.17187
 **********
 **   18 **HESSE 
 **********

 FCN=   7763.849     FROM HESSE     STATUS=OK           382 CALLS     2949 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.638        50.892        .55280E-04   -1.4256    
   2  Prefactor     5.7763        8.5605        .83550E-03   -1.5227    
   3  Prefactor     3.7555        2.3952        .99922E-04   -1.5320    
   4  Prefactor     .10000E-03    5.8779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.481        15.522        .11338E-03   -1.5001    
   6  norm          5.5390        1.5257        .54558E-04   -1.5237    
   7  Prefactor     .10000E-03    32.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4264        7.0049        .13136E-02   -1.5396    
   9  norm          4.8259        6.7910        .18312E-03   -1.5269    
  10  Prefactor     10.045        6.9691        .12643E-03   -1.5074    
  11  norm          .10000E-03    1.2997        .97085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          26.489        16.827        .77836E-04   -1.4678    
  13  Prefactor     .10000E-03    7.3799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.431        13.840        .93294E-04   -1.4849    
  15  Prefactor     .10000E-03    16.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .91055        2.8833        .24388E-03   -1.5517    
  17  norm          .10004E-03    5.4998        .59217E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0661        90.645        .51467E-02   -1.5501    
  19  Prefactor     44.781        37.290        .59912E-04   -1.4369    
  20  Prefactor     6.6475        17.610        .15554E-03   -1.5192    
  21  norm          .10000E-03    4.9969        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0569        .31522        .41817E-03   -.91149    
  23  Prefactor     1.1719        .15208        .19987E-03   -.87201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08949e-08
Minuit parameter uncertainties:
  1  50.9343
  2  8.56228
  3  2.39528
  4  1.52019e-06
  5  15.5269
  6  1.52573
  7  4.08505e-05
  8  7.0073
  9  6.79205
  10  6.96965
  11  3.44092e-07
  12  16.8298
  13  8.18117e-06
  14  13.8422
  15  4.12009e-06
  16  2.88375
  17  0.000919554
  18  19.6909
  19  37.3089
  20  17.6233
  21  6.86819e-06
  22  0.315777
  23  0.152138
Done.

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

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  2.426e+00  7.007e+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

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.172e+00  1.521e-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.057e+00  3.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/52589/likelihoodResults_303868801_304128001_4FGL_J1258.6-1759_daily_bin249.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) = 7763.79815591
delta logL = 0.0511042775415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7763.7949918
delta logL = 0.0542683840795

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2097       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8475       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0611       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1694       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=   7763.795     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      261 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2083        7.2189        .22614E-03   -.14579E-05
   2  alpha         1.8486        1.0370        .33759E-01   -.45013E-04
   3  Normalizat    1.0611        .29186        .41741E-03    .68363E-05
   4  Prefactor     1.1694        .14777        .20003E-03   -.31088E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.20832
  alpha      = 1.84858
  Normalizat = 1.06109
  Prefactor  = 1.16943
 **********
 **   18 **HESSE 
 **********

 FCN=   7763.795     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2083        7.2427        .90456E-05   -1.5350    
   2  alpha         1.8486        1.0409        .67517E-02   -.26361    
   3  Normalizat    1.0611        .29202        .16696E-04   -.91011    
   4  Prefactor     1.1694        .14785        .40006E-04   -.87277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71635e-12
Minuit parameter uncertainties:
  1  7.24472
  2  1.07623
  3  0.292462
  4  0.147905
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/52589': 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) = 7763.79499121
delta logL = 0.0542689679614

Extracting fit parameters...

4FGL J1258.6-1759
   Spectrum: LogParabola
297         norm:  3.208e+00  7.245e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  1.849e+00  1.076e+00  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:  1.169e+00  1.479e-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.061e+00  2.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/52589/cmap_HighResolution_303868801_304128001_4FGL_J1258.6-1759_daily_bin249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-05', job_status='DONE', photon_flux_upper_limit='9.84e-08', time_completed='2021-09-06 12:38:36.066810', job_id='52589', GAL2='1.17', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630957116.07', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='5.43e-02', ts2='0.26', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='249' AND source_name='4FGL J1258.6-1759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 12:38:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 52589: <4FGL_J1258.6-1759_daily_bin249> in cluster <slac> Done

Job <4FGL_J1258.6-1759_daily_bin249> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 12:25:27 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 12:25: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 12:25:28 2021
Terminated at Mon Sep  6 12:38:37 2021
Results reported at Mon Sep  6 12:38:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1258.6-1759_daily_bin249 194.663 -17.9958 303868801 304128001 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 :                                   758.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            790 sec.

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

