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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin196
RA = 344.529, Dec = -27.9843
tmin = 290131201, tmax = 290390401
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='595791', job_status='RUN', time_executed='2021-09-29 02:58:37.070979', time_epoch_executed='1632909517.07' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='196'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595791

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595791/ft1_4FGL_J2258.1-2759_daily_bin196.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595791/ft2_4FGL_J2258.1-2759_daily_bin196.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595791/ft1_4FGL_J2258.1-2759_daily_bin196.fits outfile=/scratch/kocevski/595791/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin196.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=290131201.0 tmax=290390401.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.41
user 3.20
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595791/ft1_filtered_4FGL_J2258.1-2759_daily_bin196.fits" evtable="EVENTS" scfile=/scratch/kocevski/595791/ft2_4FGL_J2258.1-2759_daily_bin196.fits sctable="SC_DATA" outfile=/scratch/kocevski/595791/ltcube_290131201_290390401_4FGL_J2258.1-2759_daily_bin196.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/595791/ft2_4FGL_J2258.1-2759_daily_bin196.fits
.....................!
real 12.07
user 11.68
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595791/ft1_filtered_4FGL_J2258.1-2759_daily_bin196.fits evtable="EVENTS" scfile=/scratch/kocevski/595791/ft2_4FGL_J2258.1-2759_daily_bin196.fits sctable="SC_DATA" expcube=/scratch/kocevski/595791/ltcube_290131201_290390401_4FGL_J2258.1-2759_daily_bin196.fits outfile=/scratch/kocevski/595791/expmap_290131201_290390401_4FGL_J2258.1-2759_daily_bin196.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/595791/ltcube_290131201_290390401_4FGL_J2258.1-2759_daily_bin196.fits
.....................!
real 191.14
user 186.63
sys 4.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/595791/ft1_filtered_4FGL_J2258.1-2759_daily_bin196.fits scfile=/scratch/kocevski/595791/ft2_4FGL_J2258.1-2759_daily_bin196.fits outfile=/scratch/kocevski/595791/cmap_290131201_290390401_4FGL_J2258.1-2759_daily_bin196.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/595791/ft1_filtered_4FGL_J2258.1-2759_daily_bin196.fits scfile=/scratch/kocevski/595791/ft2_4FGL_J2258.1-2759_daily_bin196.fits outfile=/scratch/kocevski/595791/cmap_HighResolution_290131201_290390401_4FGL_J2258.1-2759_daily_bin196.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595791/ft1_filtered_4FGL_J2258.1-2759_daily_bin196.fits evtable="EVENTS" scfile=/scratch/kocevski/595791/ft2_4FGL_J2258.1-2759_daily_bin196.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595791/Model_4FGL_J2258.1-2759_daily_bin196.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/595791/ft1_filtered_4FGL_J2258.1-2759_daily_bin196.fits.....................!
real 47.30
user 46.01
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.081       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6172       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.687       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.731       1.0000         .10000E-03   10000.    
     6 'norm      '    .26206       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.689       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0122       1.0000         .10000E-03   10000.    
    12 'norm      '    .64034       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.480       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    23.776       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.406       1.0000         .10000E-03   10000.    
    19 'Prefactor '    74.745       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7199       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99383       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87016       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=   6079.465     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2367 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.080        19.679        .74872E-07   -.91959E-05
   2  Prefactor     .10000E-03    4.2319        .86206E-07** at limit **
   3  norm          1.5728        50.364       -.15546E-05   -.30744E-04
   4  Prefactor     13.687        14.482        .15059E-06   -.55899E-05
   5  Prefactor     12.734        11.996        .40832E-08   -.47389E-04
   6  norm          .26129        1.5989        .11027E-05    .46652E-04
   7  Prefactor     .10000E-03    17.333       -.35573E-06** at limit **
   8  Prefactor     .10000E-03    3.7382        .25426E-07** at limit **
   9  norm          13.689        5.8321       -.18423E-06   -.13547E-03
  10  Prefactor     .10000E-03    11.438       -.13659E-06** at limit **
  11  Prefactor     3.0246        12.154        .20137E-05   -.12054E-04
  12  norm          .64039        .86564       -.17471E-06   -.50844E-03
  13  Prefactor     11.483        34.529        .10229E-05    .50639E-05
  14  Prefactor     .10000E-03    7.0138       -.12304E-06** at limit **
  15  norm          23.777        9.2149        .10590E-06   -.19489E-04
  16  Prefactor     .10000E-03    42.861        .80822E-06** at limit **
  17  norm          .10001E-03    1.9427        .12843E-05** at limit **
  18  Prefactor     12.432        28.398       -.12535E-05   -.15894E-03
  19  Prefactor     74.680        101.31       -.41386E-05   -.75701E-04
  20  Prefactor     4.7283        51.545        .24065E-05    .92355E-05
  21  Normalizat    .99331        .17732       -.11122E-05   -.33179E-03
  22  Prefactor     .87066        .16919       -.14093E-06   -.32432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.0797
  Prefactor  = 0.0001
  norm       = 1.57279
  Prefactor  = 13.6866
  Prefactor  = 12.7342
  norm       = 0.261294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.6893
  Prefactor  = 0.0001
  Prefactor  = 3.02461
  norm       = 0.640389
  Prefactor  = 11.4835
  Prefactor  = 0.0001
  norm       = 23.7771
  Prefactor  = 0.0001
  norm       = 0.000100014
  Prefactor  = 12.4315
  Prefactor  = 74.6797
  Prefactor  = 4.72831
  Normalizat = 0.993308
  Prefactor  = 0.870657
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.465     FROM HESSE     STATUS=OK           350 CALLS     2717 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.080        19.682        .61797E-04   -1.4410    
   2  Prefactor     .10000E-03    4.3206        .15664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5728        51.150        .33291E-03   -1.5457    
   4  Prefactor     13.687        14.483        .10827E-03   -1.4968    
   5  Prefactor     12.734        11.983        .11226E-03   -1.4994    
   6  norm          .26129        1.5660        .19020E-03   -1.5606    
   7  Prefactor     .10000E-03    17.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.7563        .14720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.689        5.7721        .10403E-03   -1.4968    
  10  Prefactor     .10000E-03    11.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.0246        11.400        .23385E-03   -1.5360    
  12  norm          .64039        .77588        .55929E-03   -1.5548    
  13  Prefactor     11.483        34.543        .11824E-03   -1.5030    
  14  Prefactor     .10000E-03    7.0475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          23.777        9.2274        .82150E-04   -1.4732    
  16  Prefactor     .10000E-03    43.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    5.2939        .18192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.432        28.376        .11373E-03   -1.5003    
  19  Prefactor     74.680        102.82        .23221E-03   -1.3977    
  20  Prefactor     4.7283        51.649        .18522E-03   -1.5273    
  21  Normalizat    .99331        .21144        .23297E-03   -.93255    
  22  Prefactor     .87066        .20098        .24802E-03   -.97174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84829e-09
Minuit parameter uncertainties:
  1  19.6852
  2  6.28134e-06
  3  17.9548
  4  14.4871
  5  11.9857
  6  1.27914
  7  3.7567e-05
  8  2.85873e-06
  9  5.77232
  10  1.6546e-05
  11  11.4083
  12  0.775887
  13  34.6035
  14  6.90814e-06
  15  9.228
  16  0.000119018
  17  0.000543005
  18  28.4068
  19  103.063
  20  31.2888
  21  0.211616
  22  0.201152
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  6.404e-01  7.759e-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.707e-01  2.012e-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.933e-01  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.65
Ra Dec: 344.529 -27.984
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 3.63e-08 +/- 4.39e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.66e-05

TS (Fixed Index): 1.65
Ra Dec: 344.529 -27.984
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.00e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/595791/likelihoodResults_290131201_290390401_4FGL_J2258.1-2759_daily_bin196.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) = 6079.31902016
delta logL = 0.14550145682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6079.31477968
delta logL = 0.14974194244

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49026       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7860       1.0000          .0000       5.0000    
     3 'Normalizat'    .97340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88320       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=   6079.315     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      231 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49113        5.6067        .96286E-02    .12580E-02
   2  alpha         2.7845        3.8876        .41497        .40013E-04
   3  Normalizat    .97330        .38074E-01    .45833E-01    .19250E-04
   4  Prefactor     .88332        .36957E-01    .44791E-01    .15074E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.491129
  alpha      = 2.78449
  Normalizat = 0.973302
  Prefactor  = 0.883317
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.315     FROM HESSE     STATUS=OK            35 CALLS      266 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49113        .71724        .43692E-03   -1.5568    
   2  alpha         2.7845        1.1409        .14736E-01    .11404    
   3  Normalizat    .97330        .19888        .23498E-03   -.93930    
   4  Prefactor     .88332        .19742        .24638E-03   -.96727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46744e-12
Minuit parameter uncertainties:
  1  0.717252
  2  1.18539
  3  0.199034
  4  0.197578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595791': 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) = 6079.31477794
delta logL = 0.149743682518

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  4.911e-01  7.173e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.784e+00  1.185e+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:  8.833e-01  1.976e-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.733e-01  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 344.529 -27.984
Photon Index (Free Index): 2.78 +/- 1.19
Photon Flux (Free Index): 5.20e-08 +/- 4.77e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.17e-05

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/595791/cmap_HighResolution_290131201_290390401_4FGL_J2258.1-2759_daily_bin196.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-05', comment='SUCCESS', photon_flux='3.63e-08', energy_flux2='1.33e-05', photon_flux_error='4.39e-08', dlogl='1.50e-01', energy_flux='1.37e-05', photon_flux2='5.20e-08', job_status='DONE', time_completed='2021-09-29 03:09:00.027994', photon_index_error2='1.19', photon_index2='2.78', ts='1.65', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.17e-05', EG='0.99', time_epoch_completed='1632910140.03', return_code='0', job_id='595791', GAL2='0.88', EG2='0.97', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='4.77e-08', ts2='1.99', photon_index='2.29' WHERE bin_id='196' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:09:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 595791: <4FGL_J2258.1-2759_daily_bin196> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin196 344.529 -27.9843 290131201 290390401 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 :                                   619.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            792 sec.

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

