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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin1502
RA = 344.529, Dec = -27.9843
tmin = 628646401, tmax = 628905601
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='600757', job_status='RUN', time_executed='2021-09-29 03:12:53.638075', time_epoch_executed='1632910373.64' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='1502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600757

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600757/ft1_4FGL_J2258.1-2759_daily_bin1502.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600757/ft2_4FGL_J2258.1-2759_daily_bin1502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600757/ft1_4FGL_J2258.1-2759_daily_bin1502.fits outfile=/scratch/kocevski/600757/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin1502.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=628646401.0 tmax=628905601.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.56
user 3.28
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/600757/ft2_4FGL_J2258.1-2759_daily_bin1502.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/600757/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin1502.fits evtable="EVENTS" outfile="/scratch/kocevski/600757/ft1_filtered_4FGL_J2258.1-2759_daily_bin1502.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/600757/ft1_filtered_4FGL_J2258.1-2759_daily_bin1502.fits" evtable="EVENTS" scfile=/scratch/kocevski/600757/ft2_4FGL_J2258.1-2759_daily_bin1502.fits sctable="SC_DATA" outfile=/scratch/kocevski/600757/ltcube_628646401_628905601_4FGL_J2258.1-2759_daily_bin1502.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/600757/ft2_4FGL_J2258.1-2759_daily_bin1502.fits
.....................!
real 11.62
user 11.23
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600757/ft1_filtered_4FGL_J2258.1-2759_daily_bin1502.fits evtable="EVENTS" scfile=/scratch/kocevski/600757/ft2_4FGL_J2258.1-2759_daily_bin1502.fits sctable="SC_DATA" expcube=/scratch/kocevski/600757/ltcube_628646401_628905601_4FGL_J2258.1-2759_daily_bin1502.fits outfile=/scratch/kocevski/600757/expmap_628646401_628905601_4FGL_J2258.1-2759_daily_bin1502.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/600757/ltcube_628646401_628905601_4FGL_J2258.1-2759_daily_bin1502.fits
.....................!
real 191.58
user 185.83
sys 5.32

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/600757/ft1_filtered_4FGL_J2258.1-2759_daily_bin1502.fits scfile=/scratch/kocevski/600757/ft2_4FGL_J2258.1-2759_daily_bin1502.fits outfile=/scratch/kocevski/600757/cmap_628646401_628905601_4FGL_J2258.1-2759_daily_bin1502.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600757/ft1_filtered_4FGL_J2258.1-2759_daily_bin1502.fits scfile=/scratch/kocevski/600757/ft2_4FGL_J2258.1-2759_daily_bin1502.fits outfile=/scratch/kocevski/600757/cmap_HighResolution_628646401_628905601_4FGL_J2258.1-2759_daily_bin1502.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/600757/ft1_filtered_4FGL_J2258.1-2759_daily_bin1502.fits evtable="EVENTS" scfile=/scratch/kocevski/600757/ft2_4FGL_J2258.1-2759_daily_bin1502.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/600757/Model_4FGL_J2258.1-2759_daily_bin1502.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/600757/ft1_filtered_4FGL_J2258.1-2759_daily_bin1502.fits.....................!
real 37.43
user 36.08
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.403       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10173       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11363E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.4368       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22731E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.248       1.0000         .10000E-03   10000.    
    12 'norm      '    .27136       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6070       1.0000         .10000E-03   10000.    
    15 'norm      '    .20793       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3680       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2897       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84593       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=   4239.605     FROM MIGRAD    STATUS=CONVERGED     90 CALLS     2004 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10042E-03    14.864        .33214E-04** at limit **
   2  Prefactor     .10000E-03    2.6939        .54939E-06** at limit **
   3  norm          .10012E-03    16.539       -.19147E-04** at limit **
   4  Prefactor     12.403        1.0033       -.77480E-07   -.32827E-05
   5  Prefactor     .10000E-03    5.3125        .11732E-05** at limit **
   6  norm          .11361        10.583       -.17522E-05   -.16679E-03
   7  Prefactor     .10017E-03    20.808        .36721E-04** at limit **
   8  Prefactor     .10018E-03    11.516        .13323E-04** at limit **
   9  norm          3.4327        5.1473       -.27101E-05   -.23107E-04
  10  Prefactor     .15653E-03    30.563       -.54752E-04** at limit **
  11  Prefactor     19.225        1.8607        .14921E-05   -.47977E-03
  12  norm          .27040        .86765        .28031E-06    .67478E-03
  13  Prefactor     .10000E-03    10.204       -.17655E-04** at limit **
  14  Prefactor     4.6142        1.3065       -.19607E-05    .21820E-03
  15  norm          .19506        2.1687       -.10219E-04    .23057E-03
  16  Prefactor     .10337E-03    39.901        .12689E-04** at limit **
  17  norm          1.3679        3.6010       -.17313E-06    .31759E-04
  18  Prefactor     .10000E-03    10.818       -.20674E-04** at limit **
  19  Prefactor     .10001E-03    49.486       -.22282E-04** at limit **
  20  Prefactor     .10042E-03    16.543       -.90400E-05** at limit **
  21  Normalizat    1.2903        .25859       -.75788E-06   -.22935E-03
  22  Prefactor     .84539        .24873        .54185E-06   -.26981E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100416
  Prefactor  = 0.0001
  norm       = 0.000100122
  Prefactor  = 12.4027
  Prefactor  = 0.000100001
  norm       = 0.113613
  Prefactor  = 0.000100173
  Prefactor  = 0.00010018
  norm       = 3.43268
  Prefactor  = 0.000156532
  Prefactor  = 19.2248
  norm       = 0.270398
  Prefactor  = 0.0001
  Prefactor  = 4.61419
  norm       = 0.195063
  Prefactor  = 0.000103366
  norm       = 1.36789
  Prefactor  = 0.000100003
  Prefactor  = 0.00010001
  Prefactor  = 0.000100421
  Normalizat = 1.29027
  Prefactor  = 0.84539
 **********
 **   18 **HESSE 
 **********

 FCN=   4239.605     FROM HESSE     STATUS=OK           400 CALLS     2404 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10042E-03    18.568        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6834        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10012E-03    17.330        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.403        15.264        .28436E-02   -1.5003    
   5  Prefactor     .10000E-03    5.3060        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .11361        1.6396        .48092E-01   -1.5641    
   7  Prefactor     .10017E-03    40.432        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10018E-03    35.832        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.4327        5.6891        .54544E-02   -1.5337    
  10  Prefactor     .15653E-03    23.024        .10055       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.225        18.554        .22823E-02   -1.4831    
  12  norm          .27040        1.2294        .21482E-01   -1.5604    
  13  Prefactor     .10000E-03    32.635        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6142        14.039        .46881E-02   -1.5278    
  15  norm          .19506        10.749        .74412E-01   -1.5620    
  16  Prefactor     .10337E-03    85.468        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3679        3.6374        .93233E-02   -1.5474    
  18  Prefactor     .10000E-03    32.089        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    99.096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10042E-03    23.987        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2903        .22494        .52285E-01   -.83857    
  22  Prefactor     .84539        .21090        .44312E-01   -.98076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29223e-07
Minuit parameter uncertainties:
  1  0.00556116
  2  3.23698e-05
  3  0.00291278
  4  15.2692
  5  0.000145257
  6  0.86284
  7  0.00529853
  8  0.00507596
  9  5.69002
  10  0.0721832
  11  18.5593
  12  1.15298
  13  0.000156267
  14  14.0492
  15  2.89577
  16  0.0339729
  17  3.63801
  18  0.000663667
  19  0.00201497
  20  0.00635969
  21  0.225113
  22  0.2111
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  2.704e-01  1.153e+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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.454e-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.290e+00  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/600757/likelihoodResults_628646401_628905601_4FGL_J2258.1-2759_daily_bin1502.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) = 4239.5402623
delta logL = 0.064556162105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4239.53572321
delta logL = 0.0690952574259

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20791       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1022       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85582       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=   4239.536     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20774        7.6214        .10014E-01    .77687E-03
   2  alpha         3.1030        3.5719        .42772        .11635E-04
   3  Normalizat    1.2718        .35272E-01    .52571E-01   -.52784E-03
   4  Prefactor     .85584        .33757E-01    .44439E-01   -.60563E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.207745
  alpha      = 3.10297
  Normalizat = 1.27184
  Prefactor  = 0.855844
 **********
 **   18 **HESSE 
 **********

 FCN=   4239.536     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      243 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20774        40.721        .56449E-03   -1.5617    
   2  alpha         3.1030        3.8485        .27817E-01    .24359    
   3  Normalizat    1.2718        .28713        .23244E-03   -.84411    
   4  Prefactor     .85584        .28900        .26281E-03   -.97702    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.66826e-10
Minuit parameter uncertainties:
  1  5.81967
  2  21.0483
  3  0.287487
  4  0.28952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600757': 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): 102
logL (Free Index) = 4239.53572316
delta logL = 0.0690953039448

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  2.077e-01  5.820e+00  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  3.103e+00  2.105e+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.558e-01  2.895e-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.272e+00  2.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/600757/cmap_HighResolution_628646401_628905601_4FGL_J2258.1-2759_daily_bin1502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-05', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-29 03:21:21.907040', job_id='600757', GAL2='0.86', fit_tolerance='1e-08', EG2='1.27', EG='1.29', time_epoch_completed='1632910881.91', return_code2='102', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='6.91e-02', ts2='0.26', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='1502' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:21:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 600757: <4FGL_J2258.1-2759_daily_bin1502> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin1502> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 03:11:38 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 03:11:40 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:11:40 2021
Terminated at Wed Sep 29 03:21:22 2021
Results reported at Wed Sep 29 03:21:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin1502 344.529 -27.9843 628646401 628905601 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 :                                   502.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            584 sec.

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

