/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 4 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7498
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2258.1-2759_daily_bin662
RA = 344.529, Dec = -27.9843
tmin = 410918401, tmax = 411177601
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='597430', job_status='RUN', time_executed='2021-09-29 03:01:09.537742', time_epoch_executed='1632909669.54' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597430

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597430/ft1_4FGL_J2258.1-2759_daily_bin662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597430/ft2_4FGL_J2258.1-2759_daily_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597430/ft1_4FGL_J2258.1-2759_daily_bin662.fits outfile=/scratch/kocevski/597430/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin662.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=410918401.0 tmax=411177601.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 6.92
user 6.67
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597430/ft2_4FGL_J2258.1-2759_daily_bin662.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/597430/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin662.fits evtable="EVENTS" outfile="/scratch/kocevski/597430/ft1_filtered_4FGL_J2258.1-2759_daily_bin662.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597430/ft1_filtered_4FGL_J2258.1-2759_daily_bin662.fits" evtable="EVENTS" scfile=/scratch/kocevski/597430/ft2_4FGL_J2258.1-2759_daily_bin662.fits sctable="SC_DATA" outfile=/scratch/kocevski/597430/ltcube_410918401_411177601_4FGL_J2258.1-2759_daily_bin662.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/597430/ft2_4FGL_J2258.1-2759_daily_bin662.fits
.....................!
real 11.82
user 11.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597430/ft1_filtered_4FGL_J2258.1-2759_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/597430/ft2_4FGL_J2258.1-2759_daily_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/597430/ltcube_410918401_411177601_4FGL_J2258.1-2759_daily_bin662.fits outfile=/scratch/kocevski/597430/expmap_410918401_411177601_4FGL_J2258.1-2759_daily_bin662.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/597430/ltcube_410918401_411177601_4FGL_J2258.1-2759_daily_bin662.fits
.....................!
real 191.27
user 185.42
sys 5.49

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/597430/ft1_filtered_4FGL_J2258.1-2759_daily_bin662.fits scfile=/scratch/kocevski/597430/ft2_4FGL_J2258.1-2759_daily_bin662.fits outfile=/scratch/kocevski/597430/cmap_410918401_411177601_4FGL_J2258.1-2759_daily_bin662.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597430/ft1_filtered_4FGL_J2258.1-2759_daily_bin662.fits scfile=/scratch/kocevski/597430/ft2_4FGL_J2258.1-2759_daily_bin662.fits outfile=/scratch/kocevski/597430/cmap_HighResolution_410918401_411177601_4FGL_J2258.1-2759_daily_bin662.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9744       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.4638       1.0000         .10000E-03   10000.    
     3 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5942       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.516       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.642       1.0000         .10000E-03   10000.    
     9 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.456       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.514       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .14633E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3381       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .37527       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=   3373.562     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2366 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9742        11.414       -.65434E-06   -.37806E-03
   2  Prefactor     9.4639        9.3349       -.71374E-08   -.64601E-04
   3  norm          .10000E-03    23.127       -.14456E-04** at limit **
   4  Prefactor     .10000E-03    8.9495        .17824E-05** at limit **
   5  Prefactor     9.5961        13.253       -.35750E-05   -.21725E-04
   6  norm          .10000E-03    1.2465       -.64242E-06** at limit **
   7  Prefactor     23.534        41.099        .25707E-04    .80314E-04
   8  Prefactor     13.643        13.370        .11145E-06   -.70006E-05
   9  norm          .10000E-03    2.6352       -.21126E-06** at limit **
  10  Prefactor     13.456        13.747       -.10840E-05    .16630E-03
  11  Prefactor     .10000E-03    9.9298       -.33547E-05** at limit **
  12  norm          .10000E-03    .33158        .38187E-07** at limit **
  13  Prefactor     12.506        43.807       -.17012E-04   -.12813E-04
  14  Prefactor     .10000E-03    6.7038       -.15826E-06** at limit **
  15  norm          .10008E-03    5.5187        .33358E-05** at limit **
  16  Prefactor     .10000E-03    26.368       -.12818E-05** at limit **
  17  norm          .10000E-03    2.0516       -.63203E-08** at limit **
  18  Prefactor     .10000E-03    17.241       -.50368E-05** at limit **
  19  Prefactor     .10000E-03    32.050        .23310E-04** at limit **
  20  Prefactor     .10000E-03    51.385       -.12542E-04** at limit **
  21  Normalizat    1.3379        .20554       -.11785E-05    .31908E-04
  22  Prefactor     .37545        .19315        .10241E-05   -.73054E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.97424
  Prefactor  = 9.4639
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.59614
  norm       = 0.000100001
  Prefactor  = 23.5335
  Prefactor  = 13.6428
  norm       = 0.0001
  Prefactor  = 13.456
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.5058
  Prefactor  = 0.0001
  norm       = 0.000100084
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.33793
  Prefactor  = 0.375446
 **********
 **   18 **HESSE 
 **********

 FCN=   3373.562     FROM HESSE     STATUS=OK           342 CALLS     2708 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9742        11.431        .70993E-03   -1.5143    
   2  Prefactor     9.4639        9.3376        .13027E-03   -1.5093    
   3  norm          .10000E-03    23.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.9558        .16971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.5961        13.245        .12938E-03   -1.5088    
   6  norm          .10000E-03    1.2654        .63406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.534        41.289        .82602E-04   -1.4737    
   8  Prefactor     13.643        13.404        .10845E-03   -1.4969    
   9  norm          .10000E-03    4.2559        .18040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.456        12.985        .10919E-03   -1.4974    
  11  Prefactor     .10000E-03    10.071        .35507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .46424        .62144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.506        43.843        .11323E-03   -1.5001    
  14  Prefactor     .10000E-03    6.7373        .14679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10008E-03    15.226        .26235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.1374        .16237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    31.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    51.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3379        .22778        .17919E-03   -.82441    
  22  Prefactor     .37545        .21164        .30701E-03   -1.1808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71496e-09
Minuit parameter uncertainties:
  1  11.434
  2  9.33903
  3  9.97871e-05
  4  6.04196e-06
  5  13.2492
  6  7.25944e-05
  7  41.3392
  8  13.407
  9  3.99105e-05
  10  12.9874
  11  3.83151e-05
  12  2.14453e-06
  13  43.9565
  14  1.86351e-05
  15  0.00226797
  16  6.57057e-06
  17  2.11393e-06
  18  1.02471e-05
  19  4.32405e-06
  20  3.52952e-05
  21  0.227949
  22  0.21208
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.000e-04  2.145e-06  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:  3.754e-01  2.121e-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:  1.338e+00  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/597430/likelihoodResults_410918401_411177601_4FGL_J2258.1-2759_daily_bin662.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): 102
logL (Free Index) = 3373.57179763
delta logL = -0.0100870422543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3373.56171048
delta logL = 1.10919245344e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2822       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37545       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3373.562     FROM MIGRAD    STATUS=FAILED        92 CALLS      255 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10032E-03    .58201        .62331E-03** at limit **
   2  alpha         1.6210        3.2690        .50000        .21127E-05
   3  Normalizat    1.3379        .22012        .17919E-03   -.10803E-02
   4  Prefactor     .37545        .21057        .30701E-03   -.50634E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3373.562     FROM SIMPLEX   STATUS=UNCHANGED    108 CALLS      363 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10032E-03    .58201        .50844E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6210        3.2690        .10418E-02   -.35930    
   3  Normalizat    1.3379        .22012        .94776E-04   -.82441    
   4  Prefactor     .37545        .21057        .21167E-03   -1.1808    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3373.562     FROM MIGRAD    STATUS=CONVERGED      7 CALLS      370 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .51832       -.64413E-06** at limit **
   2  alpha         1.6100        2.5937       -.10763E-01   -.11655E-06
   3  Normalizat    1.3379        .22005        .59233E-06    .17609E-03
   4  Prefactor     .37545        .21054       -.66021E-06    .66902E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.61004
  Normalizat = 1.33793
  Prefactor  = 0.375445
 **********
 **   18 **HESSE 
 **********

 FCN=   3373.562     FROM HESSE     STATUS=OK            29 CALLS      399 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .52004        .12466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6100        3.5109        .50000       -.36397    
   3  Normalizat    1.3379        .22023        .35838E-04   -.82441    
   4  Prefactor     .37545        .21067        .61402E-04   -1.1808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85136e-10
Minuit parameter uncertainties:
  1  2.27515e-08
  2  80.9817
  3  0.220384
  4  0.2111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597430': 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) = 3373.56169949
delta logL = 1.109868208e-05

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.000e-04  2.275e-08  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  1.610e+00  8.098e+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:  3.754e-01  2.111e-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:  1.338e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/597430/cmap_HighResolution_410918401_411177601_4FGL_J2258.1-2759_daily_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-05', job_status='DONE', photon_flux_upper_limit='7.09e-08', time_completed='2021-09-29 03:09:44.990840', job_id='597430', GAL2='0.38', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1632910184.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.38', dlogl='1.11e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='662' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:09:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 597430: <4FGL_J2258.1-2759_daily_bin662> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin662 344.529 -27.9843 410918401 411177601 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 :                                   501.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   528 sec.
    Turnaround time :                            530 sec.

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

