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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin699
RA = 344.529, Dec = -27.9843
tmin = 420508801, tmax = 420768001
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='597471', job_status='RUN', time_executed='2021-09-29 03:04:58.289308', time_epoch_executed='1632909898.29' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597471

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597471/ft1_4FGL_J2258.1-2759_daily_bin699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597471/ft2_4FGL_J2258.1-2759_daily_bin699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597471/ft1_4FGL_J2258.1-2759_daily_bin699.fits outfile=/scratch/kocevski/597471/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin699.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=420508801.0 tmax=420768001.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.37
user 3.15
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/597471/ft2_4FGL_J2258.1-2759_daily_bin699.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597471/ft2_4FGL_J2258.1-2759_daily_bin699.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/597471/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin699.fits evtable="EVENTS" outfile="/scratch/kocevski/597471/ft1_filtered_4FGL_J2258.1-2759_daily_bin699.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597471/ft1_filtered_4FGL_J2258.1-2759_daily_bin699.fits" evtable="EVENTS" scfile=/scratch/kocevski/597471/ft2_4FGL_J2258.1-2759_daily_bin699.fits sctable="SC_DATA" outfile=/scratch/kocevski/597471/ltcube_420508801_420768001_4FGL_J2258.1-2759_daily_bin699.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/597471/ft2_4FGL_J2258.1-2759_daily_bin699.fits
.....................!
real 11.57
user 11.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597471/ft1_filtered_4FGL_J2258.1-2759_daily_bin699.fits evtable="EVENTS" scfile=/scratch/kocevski/597471/ft2_4FGL_J2258.1-2759_daily_bin699.fits sctable="SC_DATA" expcube=/scratch/kocevski/597471/ltcube_420508801_420768001_4FGL_J2258.1-2759_daily_bin699.fits outfile=/scratch/kocevski/597471/expmap_420508801_420768001_4FGL_J2258.1-2759_daily_bin699.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/597471/ltcube_420508801_420768001_4FGL_J2258.1-2759_daily_bin699.fits
.....................!
real 190.46
user 185.98
sys 4.17

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

Setting source of interest to:
4FGL J2258.1-2759 @ 344.529 -27.9843

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/597471/ft1_filtered_4FGL_J2258.1-2759_daily_bin699.fits scfile=/scratch/kocevski/597471/ft2_4FGL_J2258.1-2759_daily_bin699.fits outfile=/scratch/kocevski/597471/cmap_420508801_420768001_4FGL_J2258.1-2759_daily_bin699.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=344.529 yref=-27.9843 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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597471/ft1_filtered_4FGL_J2258.1-2759_daily_bin699.fits scfile=/scratch/kocevski/597471/ft2_4FGL_J2258.1-2759_daily_bin699.fits outfile=/scratch/kocevski/597471/cmap_HighResolution_420508801_420768001_4FGL_J2258.1-2759_daily_bin699.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=344.529 yref=-27.9843 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/597471/ft1_filtered_4FGL_J2258.1-2759_daily_bin699.fits evtable="EVENTS" scfile=/scratch/kocevski/597471/ft2_4FGL_J2258.1-2759_daily_bin699.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/597471/Model_4FGL_J2258.1-2759_daily_bin699.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/597471/ft1_filtered_4FGL_J2258.1-2759_daily_bin699.fits.....................!
real 48.03
user 46.78
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/597471/ft1_filtered_4FGL_J2258.1-2759_daily_bin699.fits', '/scratch/kocevski/597471/ft2_4FGL_J2258.1-2759_daily_bin699.fits', expMap='/scratch/kocevski/597471/expmap_420508801_420768001_4FGL_J2258.1-2759_daily_bin699.fits', expCube='/scratch/kocevski/597471/ltcube_420508801_420768001_4FGL_J2258.1-2759_daily_bin699.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/597471/Model_4FGL_J2258.1-2759_daily_bin699.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2258.1-2759'

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.011e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.287e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.979e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  7.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/597471/ft1_filtered_4FGL_J2258.1-2759_daily_bin699.fits
Spacecraft file(s): /scratch/kocevski/597471/ft2_4FGL_J2258.1-2759_daily_bin699.fits
Exposure map: /scratch/kocevski/597471/expmap_420508801_420768001_4FGL_J2258.1-2759_daily_bin699.fits
Exposure cube: /scratch/kocevski/597471/ltcube_420508801_420768001_4FGL_J2258.1-2759_daily_bin699.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/597471/Model_4FGL_J2258.1-2759_daily_bin699.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) = 6261.50776195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1997       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2966       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4624       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.746       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.427       1.0000         .10000E-03   10000.    
     6 'norm      '    .10611E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.149       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4009       1.0000         .10000E-03   10000.    
     9 'norm      '    .11884E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9210       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2371       1.0000         .10000E-03   10000.    
    12 'norm      '    .83243       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.4185       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.6342       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.592       1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.716       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .60269       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0984       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6261.495     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2359 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2002        11.819        .17347E-06   -.37197E-05
   2  Prefactor     3.2976        5.1799        .31527E-06    .72852E-04
   3  norm          1.4328        46.915        .15445E-05   -.10922E-04
   4  Prefactor     19.746        14.427        .17092E-06    .84072E-05
   5  Prefactor     14.429        9.6757        .12521E-06   -.15988E-03
   6  norm          .10000E-03    .93509        .21389E-05** at limit **
   7  Prefactor     48.113        34.472       -.18673E-05   -.17094E-03
   8  Prefactor     2.3989        7.4648        .11527E-05   -.18729E-04
   9  norm          .10000E-03    3.8197        .20510E-06** at limit **
  10  Prefactor     5.8922        12.211       -.29349E-05   -.11948E-03
  11  Prefactor     2.2455        11.730        .63578E-05   -.57066E-04
  12  norm          .83213        .55299       -.17488E-06    .42312E-04
  13  Prefactor     .10000E-03    45.133       -.34441E-06** at limit **
  14  Prefactor     .10000E-03    2.4381        .14470E-06** at limit **
  15  norm          9.4198        7.0442        .19468E-06    .17919E-04
  16  Prefactor     .10000E-03    10.206       -.39047E-07** at limit **
  17  norm          5.6346        3.1034        .65703E-07    .10285E-04
  18  Prefactor     24.595        21.279        .15495E-06   -.23129E-04
  19  Prefactor     41.686        60.171        .21510E-05    .92547E-04
  20  Prefactor     .10000E-03    13.032        .42725E-07** at limit **
  21  Normalizat    .60252        .17119       -.44807E-05   -.36343E-04
  22  Prefactor     1.0984        .16482        .23803E-05   -.39518E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.20022
  Prefactor  = 3.2976
  norm       = 1.43276
  Prefactor  = 19.7462
  Prefactor  = 14.4288
  norm       = 0.0001
  Prefactor  = 48.1128
  Prefactor  = 2.39895
  norm       = 0.0001
  Prefactor  = 5.89222
  Prefactor  = 2.24553
  norm       = 0.83213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.41975
  Prefactor  = 0.0001
  norm       = 5.63455
  Prefactor  = 24.5953
  Prefactor  = 41.6862
  Prefactor  = 0.0001
  Normalizat = 0.602521
  Prefactor  = 1.09845
 **********
 **   18 **HESSE 
 **********

 FCN=   6261.495     FROM HESSE     STATUS=OK           348 CALLS     2707 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2002        11.815        .16123E-03   -1.5210    
   2  Prefactor     3.2976        5.1701        .21625E-03   -1.5345    
   3  norm          1.4328        47.513        .35573E-03   -1.5469    
   4  Prefactor     19.746        14.424        .90134E-04   -1.4819    
   5  Prefactor     14.429        9.6748        .10545E-03   -1.4948    
   6  norm          .10000E-03    .95567        .14864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.113        34.845        .57788E-04   -1.4320    
   8  Prefactor     2.3989        7.3484        .13213E-02   -1.5398    
   9  norm          .10000E-03    3.9410        .29956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.8922        12.326        .16503E-03   -1.5222    
  11  Prefactor     2.2455        12.381        .13741E-02   -1.5408    
  12  norm          .83213        .56012        .37172E-04   -1.5526    
  13  Prefactor     .10000E-03    45.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.4454        .12062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.4198        7.0475        .13058E-03   -1.5094    
  16  Prefactor     .10000E-03    10.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.6346        3.0997        .98116E-04   -1.5233    
  18  Prefactor     24.595        21.287        .80776E-04   -1.4716    
  19  Prefactor     41.686        60.222        .62065E-04   -1.4416    
  20  Prefactor     .10000E-03    13.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .60252        .19456        .26527E-03   -1.0788    
  22  Prefactor     1.0984        .18898        .20674E-03   -.89516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.97693e-10
Minuit parameter uncertainties:
  1  11.819
  2  5.17077
  3  16.5152
  4  14.4261
  5  9.67586
  6  5.55927e-06
  7  34.8599
  8  7.35114
  9  8.30122e-06
  10  12.3315
  11  10.5485
  12  0.560123
  13  7.19254e-06
  14  1.21043e-06
  15  7.04807
  16  8.38816e-06
  17  3.09975
  18  21.2937
  19  60.3099
  20  2.80585e-06
  21  0.194782
  22  0.189093
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  8.321e-01  5.601e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.287e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.979e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  7.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.098e+00  1.891e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  6.025e-01  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.35
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 4.71e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.20e-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) = 6261.48446933
delta logL = 0.0107250960782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6261.4808399
delta logL = 0.014354522229

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79205       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3857       1.0000          .0000       5.0000    
     3 'Normalizat'    .59814       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1013       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6261.481     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79226        7.1913        .80270E-02    .31358E-03
   2  alpha         2.3858        3.5845        .33944        .34837E-04
   3  Normalizat    .59824        .66447E-01    .60160E-01    .28027E-04
   4  Prefactor     1.1012        .54268E-01    .37538E-01   -.26358E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.792256
  alpha      = 2.38575
  Normalizat = 0.59824
  Prefactor  = 1.10119
 **********
 **   18 **HESSE 
 **********

 FCN=   6261.481     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79226        .50095        .35929E-04   -1.5530    
   2  alpha         2.3858        .59680        .12973E-01   -.45715E-01
   3  Normalizat    .59824        .17946        .26614E-03   -1.0806    
   4  Prefactor     1.1012        .18413        .20651E-03   -.89428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89016e-12
Minuit parameter uncertainties:
  1  0.500951
  2  0.602631
  3  0.179632
  4  0.184236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597471': 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) = 6261.48083955
delta logL = 0.014354871867

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  7.923e-01  5.010e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.386e+00  6.026e-01  0.000e+00  5.000e+00 ( 1.000e+00)
344         beta:  1.979e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  7.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.101e+00  1.842e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  5.982e-01  1.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.44
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 2.39 +/- 0.60
Photon Flux (Free Index): 5.03e-08 +/- 3.18e-08
Energy Flux (Free Index): 1.73e-05 +/- 9.53e-06

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/597471/cmap_HighResolution_420508801_420768001_4FGL_J2258.1-2759_daily_bin699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.71e-08', energy_flux2='1.73e-05', photon_flux_error='3.17e-08', dlogl='1.44e-02', energy_flux='1.78e-05', photon_flux2='5.03e-08', job_status='DONE', time_completed='2021-09-29 03:14:23.301580', photon_index_error2='0.60', photon_index2='2.39', ts='7.35', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='9.53e-06', EG='0.60', time_epoch_completed='1632910463.3', return_code='0', job_id='597471', GAL2='1.10', EG2='0.60', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='3.18e-08', ts2='7.44', photon_index='2.29' WHERE bin_id='699' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:14:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 597471: <4FGL_J2258.1-2759_daily_bin699> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin699> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 03:00:59 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 03:01:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 03:01:01 2021
Terminated at Wed Sep 29 03:14:24 2021
Results reported at Wed Sep 29 03:14:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin699 344.529 -27.9843 420508801 420768001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2258.1-2759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   566.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            805 sec.

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

