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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin215
RA = 344.529, Dec = -27.9843
tmin = 295056001, tmax = 295315201
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='595819', job_status='RUN', time_executed='2021-09-29 02:58:38.350568', time_epoch_executed='1632909518.35' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595819/ft1_4FGL_J2258.1-2759_daily_bin215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595819/ft2_4FGL_J2258.1-2759_daily_bin215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595819/ft1_4FGL_J2258.1-2759_daily_bin215.fits outfile=/scratch/kocevski/595819/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin215.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=295056001.0 tmax=295315201.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 2.56
user 2.39
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595819/ft1_filtered_4FGL_J2258.1-2759_daily_bin215.fits" evtable="EVENTS" scfile=/scratch/kocevski/595819/ft2_4FGL_J2258.1-2759_daily_bin215.fits sctable="SC_DATA" outfile=/scratch/kocevski/595819/ltcube_295056001_295315201_4FGL_J2258.1-2759_daily_bin215.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/595819/ft2_4FGL_J2258.1-2759_daily_bin215.fits
.....................!
real 12.31
user 11.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595819/ft1_filtered_4FGL_J2258.1-2759_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/595819/ft2_4FGL_J2258.1-2759_daily_bin215.fits sctable="SC_DATA" expcube=/scratch/kocevski/595819/ltcube_295056001_295315201_4FGL_J2258.1-2759_daily_bin215.fits outfile=/scratch/kocevski/595819/expmap_295056001_295315201_4FGL_J2258.1-2759_daily_bin215.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/595819/ltcube_295056001_295315201_4FGL_J2258.1-2759_daily_bin215.fits
.....................!
real 190.81
user 185.77
sys 4.68

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/595819/ft1_filtered_4FGL_J2258.1-2759_daily_bin215.fits scfile=/scratch/kocevski/595819/ft2_4FGL_J2258.1-2759_daily_bin215.fits outfile=/scratch/kocevski/595819/cmap_295056001_295315201_4FGL_J2258.1-2759_daily_bin215.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.56
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595819/ft1_filtered_4FGL_J2258.1-2759_daily_bin215.fits scfile=/scratch/kocevski/595819/ft2_4FGL_J2258.1-2759_daily_bin215.fits outfile=/scratch/kocevski/595819/cmap_HighResolution_295056001_295315201_4FGL_J2258.1-2759_daily_bin215.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/595819/ft1_filtered_4FGL_J2258.1-2759_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/595819/ft2_4FGL_J2258.1-2759_daily_bin215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595819/Model_4FGL_J2258.1-2759_daily_bin215.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/595819/ft1_filtered_4FGL_J2258.1-2759_daily_bin215.fits.....................!
real 50.14
user 48.68
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.538       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4518       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.270       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.2417       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8595       1.0000         .10000E-03   10000.    
    12 'norm      '    .90623       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.625       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3887       1.0000         .10000E-03   10000.    
    15 'norm      '    18.438       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.781       1.0000         .10000E-03   10000.    
    17 'norm      '    .66574       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.568       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.888       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86669       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81814       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6320.596     FROM MIGRAD    STATUS=CONVERGED     53 CALLS     1642 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.536        1.2921       -.76832E-06    .23917E-02
   2  Prefactor     7.4516        1.0097        .17127E-06    .46666E-03
   3  norm          .10002E-03    6.5030       -.12600E-04** at limit **
   4  Prefactor     12.269        1.0287       -.32509E-06    .57876E-03
   5  Prefactor     .10002E-03    3.7340        .25548E-05** at limit **
   6  norm          .10000E-03    .55468        .27212E-06** at limit **
   7  Prefactor     .10001E-03    4.8286        .12593E-04** at limit **
   8  Prefactor     .10007E-03    11.301       -.20688E-04** at limit **
   9  norm          7.2410        3.8381        .88758E-07   -.14753E-03
  10  Prefactor     .10000E-03    4.1295        .25383E-06** at limit **
  11  Prefactor     2.8357        3.9218       -.10863E-04    .41675E-03
  12  norm          .90813        .51976        .97679E-06   -.16738E-02
  13  Prefactor     14.625        1.0345       -.33188E-06    .73128E-03
  14  Prefactor     5.3862        1.1585       -.32468E-06   -.17724E-02
  15  norm          18.437        1.0173       -.17672E-06    .18101E-03
  16  Prefactor     23.780        1.1395       -.54132E-06    .17629E-02
  17  norm          .66613        1.4957        .12045E-06    .13717E-03
  18  Prefactor     .10001E-03    4.8594        .12789E-04** at limit **
  19  Prefactor     12.562        3.7287       -.49062E-05    .86417E-02
  20  Prefactor     24.886        1.6968       -.13309E-05    .43686E-02
  21  Normalizat    .86687        .17290        .39852E-05    .33052E-03
  22  Prefactor     .81799        .17339       -.19945E-05    .30164E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.5365
  Prefactor  = 7.45157
  norm       = 0.000100019
  Prefactor  = 12.2695
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.000100068
  norm       = 7.24099
  Prefactor  = 0.0001
  Prefactor  = 2.83568
  norm       = 0.908132
  Prefactor  = 14.6245
  Prefactor  = 5.38624
  norm       = 18.4375
  Prefactor  = 23.7802
  norm       = 0.666135
  Prefactor  = 0.000100014
  Prefactor  = 12.5624
  Prefactor  = 24.8862
  Normalizat = 0.866866
  Prefactor  = 0.817987
 **********
 **   18 **HESSE 
 **********

 FCN=   6320.596     FROM HESSE     STATUS=OK           394 CALLS     2036 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.536        17.248        .19441E-02   -1.4677    
   2  Prefactor     7.4516        6.4044        .36730E-02   -1.5162    
   3  norm          .10002E-03    8.9076        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.269        16.028        .28590E-02   -1.5007    
   5  Prefactor     .10002E-03    9.2640        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .54938        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    11.163        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10007E-03    12.611        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.2410        4.0220        .37263E-02   -1.5170    
  10  Prefactor     .10000E-03    4.1355        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8357        8.9658        .60102E-02   -1.5371    
  12  norm          .90813        .62135        .84868E-02   -1.5517    
  13  Prefactor     14.625        35.062        .26184E-02   -1.4943    
  14  Prefactor     5.3862        6.4670        .43279E-02   -1.5244    
  15  norm          18.437        7.7061        .23319E-02   -1.4849    
  16  Prefactor     23.780        27.124        .20535E-02   -1.4732    
  17  norm          .66613        1.6207        .33243E-01   -1.5545    
  18  Prefactor     .10001E-03    11.129        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.562        115.36        .28248E-02   -1.4999    
  20  Prefactor     24.886        30.762        .20074E-02   -1.4710    
  21  Normalizat    .86687        .15347        .44474E-01   -.97634    
  22  Prefactor     .81799        .14713        .43953E-01   -.99069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57407e-06
Minuit parameter uncertainties:
  1  17.2517
  2  6.40498
  3  0.000830715
  4  16.0338
  5  0.000769413
  6  4.70585e-06
  7  0.00075667
  8  0.0018518
  9  4.02214
  10  2.7503e-06
  11  8.97005
  12  0.621355
  13  35.1118
  14  6.46784
  15  7.7065
  16  27.1383
  17  1.62078
  18  0.000784945
  19  76.3308
  20  30.7817
  21  0.153545
  22  0.147201
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  9.081e-01  6.214e-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:  8.180e-01  1.472e-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:  8.669e-01  1.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.85
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 5.14e-08 +/- 3.52e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 1.33e-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) = 6320.14521209
delta logL = 0.450827770615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6320.12687005
delta logL = 0.469169817886

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68085       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7935       1.0000          .0000       5.0000    
     3 'Normalizat'    .84301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83201       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=   6320.127     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      204 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68090        4.9299        .66580E-02   -.32793E-03
   2  alpha         2.7933        3.8865        .25860        .27627E-04
   3  Normalizat    .84302        .58041E-01    .44169E-01   -.52711E-03
   4  Prefactor     .83197        .52607E-01    .44132E-01   -.52592E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.680899
  alpha      = 2.79332
  Normalizat = 0.843024
  Prefactor  = 0.831974
 **********
 **   18 **HESSE 
 **********

 FCN=   6320.127     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68090        .46987        .29716E-04   -1.5543    
   2  alpha         2.7933        .55184        .10417E-01    .11760    
   3  Normalizat    .84302        .17382        .22379E-03   -.98492    
   4  Prefactor     .83197        .17389        .22654E-03   -.98560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59468e-10
Minuit parameter uncertainties:
  1  0.46987
  2  0.556485
  3  0.173939
  4  0.174009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595819': 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) = 6320.1268699
delta logL = 0.469169965351

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  6.809e-01  4.699e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.793e+00  5.565e-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:  8.320e-01  1.740e-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:  8.430e-01  1.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.90
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 2.79 +/- 0.56
Photon Flux (Free Index): 7.30e-08 +/- 3.88e-08
Energy Flux (Free Index): 1.86e-05 +/- 8.84e-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/595819/cmap_HighResolution_295056001_295315201_4FGL_J2258.1-2759_daily_bin215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.14e-08', energy_flux2='1.86e-05', photon_flux_error='3.52e-08', dlogl='4.69e-01', energy_flux='1.94e-05', photon_flux2='7.30e-08', job_status='DONE', time_completed='2021-09-29 03:07:23.733241', photon_index_error2='0.56', photon_index2='2.79', ts='7.85', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='8.84e-06', EG='0.87', time_epoch_completed='1632910043.73', return_code='0', job_id='595819', GAL2='0.83', EG2='0.84', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='3.88e-08', ts2='8.90', photon_index='2.29' WHERE bin_id='215' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:07:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 595819: <4FGL_J2258.1-2759_daily_bin215> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin215> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:55:50 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:55:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:55:53 2021
Terminated at Wed Sep 29 03:07:24 2021
Results reported at Wed Sep 29 03:07:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin215 344.529 -27.9843 295056001 295315201 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 :                                   521.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            694 sec.

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

