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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin587
RA = 344.529, Dec = -27.9843
tmin = 391478401, tmax = 391737601
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='597312', job_status='RUN', time_executed='2021-09-29 03:04:49.748561', time_epoch_executed='1632909889.75' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='587'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597312

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597312/ft1_4FGL_J2258.1-2759_daily_bin587.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597312/ft2_4FGL_J2258.1-2759_daily_bin587.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597312/ft1_4FGL_J2258.1-2759_daily_bin587.fits outfile=/scratch/kocevski/597312/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin587.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=391478401.0 tmax=391737601.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.33
user 4.08
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597312/ft2_4FGL_J2258.1-2759_daily_bin587.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/597312/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin587.fits evtable="EVENTS" outfile="/scratch/kocevski/597312/ft1_filtered_4FGL_J2258.1-2759_daily_bin587.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.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597312/ft1_filtered_4FGL_J2258.1-2759_daily_bin587.fits" evtable="EVENTS" scfile=/scratch/kocevski/597312/ft2_4FGL_J2258.1-2759_daily_bin587.fits sctable="SC_DATA" outfile=/scratch/kocevski/597312/ltcube_391478401_391737601_4FGL_J2258.1-2759_daily_bin587.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/597312/ft2_4FGL_J2258.1-2759_daily_bin587.fits
.....................!
real 11.71
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597312/ft1_filtered_4FGL_J2258.1-2759_daily_bin587.fits evtable="EVENTS" scfile=/scratch/kocevski/597312/ft2_4FGL_J2258.1-2759_daily_bin587.fits sctable="SC_DATA" expcube=/scratch/kocevski/597312/ltcube_391478401_391737601_4FGL_J2258.1-2759_daily_bin587.fits outfile=/scratch/kocevski/597312/expmap_391478401_391737601_4FGL_J2258.1-2759_daily_bin587.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/597312/ltcube_391478401_391737601_4FGL_J2258.1-2759_daily_bin587.fits
.....................!
real 191.08
user 185.57
sys 5.20

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/597312/ft1_filtered_4FGL_J2258.1-2759_daily_bin587.fits scfile=/scratch/kocevski/597312/ft2_4FGL_J2258.1-2759_daily_bin587.fits outfile=/scratch/kocevski/597312/cmap_391478401_391737601_4FGL_J2258.1-2759_daily_bin587.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597312/ft1_filtered_4FGL_J2258.1-2759_daily_bin587.fits scfile=/scratch/kocevski/597312/ft2_4FGL_J2258.1-2759_daily_bin587.fits outfile=/scratch/kocevski/597312/cmap_HighResolution_391478401_391737601_4FGL_J2258.1-2759_daily_bin587.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/597312/ft1_filtered_4FGL_J2258.1-2759_daily_bin587.fits evtable="EVENTS" scfile=/scratch/kocevski/597312/ft2_4FGL_J2258.1-2759_daily_bin587.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/597312/Model_4FGL_J2258.1-2759_daily_bin587.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/597312/ft1_filtered_4FGL_J2258.1-2759_daily_bin587.fits.....................!
real 45.49
user 44.16
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/597312/ft1_filtered_4FGL_J2258.1-2759_daily_bin587.fits', '/scratch/kocevski/597312/ft2_4FGL_J2258.1-2759_daily_bin587.fits', expMap='/scratch/kocevski/597312/expmap_391478401_391737601_4FGL_J2258.1-2759_daily_bin587.fits', expCube='/scratch/kocevski/597312/ltcube_391478401_391737601_4FGL_J2258.1-2759_daily_bin587.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/597312/Model_4FGL_J2258.1-2759_daily_bin587.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/597312/ft1_filtered_4FGL_J2258.1-2759_daily_bin587.fits
Spacecraft file(s): /scratch/kocevski/597312/ft2_4FGL_J2258.1-2759_daily_bin587.fits
Exposure map: /scratch/kocevski/597312/expmap_391478401_391737601_4FGL_J2258.1-2759_daily_bin587.fits
Exposure cube: /scratch/kocevski/597312/ltcube_391478401_391737601_4FGL_J2258.1-2759_daily_bin587.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/597312/Model_4FGL_J2258.1-2759_daily_bin587.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) = 5712.49883438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.378       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.699       1.0000         .10000E-03   10000.    
     3 'norm      '    10.489       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.6177       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.536       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .63981       1.0000         .10000E-03   10000.    
     9 'norm      '    20.903       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7837       1.0000         .10000E-03   10000.    
    12 'norm      '    .23377       1.0000         .10000E-03   10000.    
    13 'Prefactor '    52.958       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9124       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.663       1.0000         .10000E-03   10000.    
    20 'Prefactor '    68.592       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93052       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90659       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=   5712.497     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2354 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.381        18.201        .74407E-06   -.60230E-03
   2  Prefactor     15.695        9.0298        .11835E-05   -.14016E-03
   3  norm          10.490        14.899        .11957E-05   -.14443E-04
   4  Prefactor     .10000E-03    11.768       -.31024E-06** at limit **
   5  Prefactor     .10000E-03    6.8393        .69908E-06** at limit **
   6  norm          2.6177        2.0785        .16167E-05   -.33377E-03
   7  Prefactor     43.518        39.708       -.22975E-04    .32325E-04
   8  Prefactor     .56286        5.5798        .13701E-05   -.26839E-03
   9  norm          20.898        6.3128        .82340E-07    .15140E-03
  10  Prefactor     .10000E-03    4.7664       -.41005E-07** at limit **
  11  Prefactor     3.7823        11.967        .91387E-05   -.32860E-03
  12  norm          .23495        .68739       -.13939E-05   -.29077E-02
  13  Prefactor     52.958        40.705        .10095E-05   -.34229E-04
  14  Prefactor     .10000E-03    3.2755       -.17693E-07** at limit **
  15  norm          .10000E-03    2.1734        .48568E-07** at limit **
  16  Prefactor     .10000E-03    21.638        .56808E-06** at limit **
  17  norm          .10000E-03    1.6893        .44494E-07** at limit **
  18  Prefactor     4.9119        15.746       -.95142E-05   -.13908E-03
  19  Prefactor     35.768        99.859        .16994E-03    .60780E-05
  20  Prefactor     68.582        53.735       -.12180E-04   -.23047E-04
  21  Normalizat    .93071        .18085       -.81256E-05    .27620E-03
  22  Prefactor     .90645        .17097        .11035E-05   -.30921E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3814
  Prefactor  = 15.6953
  norm       = 10.4903
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.61767
  Prefactor  = 43.5184
  Prefactor  = 0.562862
  norm       = 20.8982
  Prefactor  = 0.0001
  Prefactor  = 3.78231
  norm       = 0.234948
  Prefactor  = 52.9584
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.9119
  Prefactor  = 35.7677
  Prefactor  = 68.5823
  Normalizat = 0.930708
  Prefactor  = 0.906455
 **********
 **   18 **HESSE 
 **********

 FCN=   5712.497     FROM HESSE     STATUS=OK           340 CALLS     2694 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.381        18.215        .56928E-03   -1.5004    
   2  Prefactor     15.695        9.0376        .10109E-03   -1.4915    
   3  norm          10.490        14.893        .12371E-03   -1.5060    
   4  Prefactor     .10000E-03    11.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.9004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.6177        2.0814        .89609E-04   -1.5384    
   7  Prefactor     43.518        39.901        .60759E-04   -1.4388    
   8  Prefactor     .56286        38.612        .33365E-02   -1.5558    
   9  norm          20.898        6.2767        .87605E-04   -1.4793    
  10  Prefactor     .10000E-03    4.7677        .16106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7823        11.358        .20753E-03   -1.5319    
  12  norm          .23495        .59348        .66259E-03   -1.5611    
  13  Prefactor     52.958        40.706        .55114E-04   -1.4251    
  14  Prefactor     .10000E-03    3.2816        .13346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.1895        .10882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.7585        .19168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.9119        15.746        .18147E-03   -1.5265    
  19  Prefactor     35.768        99.753        .67107E-04   -1.4511    
  20  Prefactor     68.582        53.810        .48465E-04   -1.4050    
  21  Normalizat    .93071        .21901        .23550E-03   -.95389    
  22  Prefactor     .90645        .20559        .23911E-03   -.95916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92431e-09
Minuit parameter uncertainties:
  1  18.2235
  2  9.03839
  3  14.8983
  4  4.20497e-05
  5  0.00014674
  6  2.08141
  7  39.9256
  8  9.32921
  9  6.27693
  10  1.95621e-06
  11  11.3642
  12  0.593491
  13  40.7275
  14  1.52136e-06
  15  8.3398e-06
  16  4.74676e-05
  17  5.03335e-06
  18  15.7588
  19  100.223
  20  53.8477
  21  0.21922
  22  0.205767
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  2.349e-01  5.935e-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:  9.065e-01  2.058e-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:  9.307e-01  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.42
Ra Dec: 344.529 -27.984
Photon Flux Upper Limit: 7.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/597312/likelihoodResults_391478401_391737601_4FGL_J2258.1-2759_daily_bin587.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) = 5712.41178027
delta logL = 0.0854119132528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5712.396683
delta logL = 0.100509175556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16350       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1490       1.0000          .0000       5.0000    
     3 'Normalizat'    .91307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91717       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=   5712.397     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16282        3.3285        .91269E-02    .24600E-02
   2  alpha         3.1534        4.0185        .43058        .41158E-04
   3  Normalizat    .91277        .28414E-01    .45068E-01    .13445E-04
   4  Prefactor     .91747        .28418E-01    .45223E-01    .11554E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.162817
  alpha      = 3.15342
  Normalizat = 0.912766
  Prefactor  = 0.917468
 **********
 **   18 **HESSE 
 **********

 FCN=   5712.397     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16282        .98870        .41357E-04   -1.5627    
   2  alpha         3.1534        4.0628        .24268E-01    .26444    
   3  Normalizat    .91277        .21520        .23740E-03   -.96013    
   4  Prefactor     .91747        .21011        .23776E-03   -.95533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80547e-08
Minuit parameter uncertainties:
  1  0.802213
  2  4.06791
  3  0.215402
  4  0.210294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597312': 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) = 5712.39668022
delta logL = 0.100511963865

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.628e-01  8.022e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  3.153e+00  4.068e+00  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:  9.175e-01  2.103e-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:  9.128e-01  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
Ra Dec: 344.529 -27.984

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/597312/cmap_HighResolution_391478401_391737601_4FGL_J2258.1-2759_daily_bin587.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-05', job_status='DONE', photon_flux_upper_limit='7.29e-08', time_completed='2021-09-29 03:14:49.363323', job_id='597312', GAL2='0.92', fit_tolerance='1e-08', EG2='0.91', EG='0.93', time_epoch_completed='1632910489.36', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.01e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='587' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:14:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 597312: <4FGL_J2258.1-2759_daily_bin587> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin587> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 03:00:45 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 03:00:47 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:00:47 2021
Terminated at Wed Sep 29 03:14:50 2021
Results reported at Wed Sep 29 03:14:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin587 344.529 -27.9843 391478401 391737601 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 :                                   599.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            845 sec.

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

