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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin239
RA = 344.529, Dec = -27.9843
tmin = 301276801, tmax = 301536001
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='595856', job_status='RUN', time_executed='2021-09-29 02:59:19.145293', time_epoch_executed='1632909559.15' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595856

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595856/ft1_4FGL_J2258.1-2759_daily_bin239.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595856/ft2_4FGL_J2258.1-2759_daily_bin239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595856/ft1_4FGL_J2258.1-2759_daily_bin239.fits outfile=/scratch/kocevski/595856/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin239.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=301276801.0 tmax=301536001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.51
user 4.30
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/595856/ft2_4FGL_J2258.1-2759_daily_bin239.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/595856/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin239.fits evtable="EVENTS" outfile="/scratch/kocevski/595856/ft1_filtered_4FGL_J2258.1-2759_daily_bin239.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/595856/ft1_filtered_4FGL_J2258.1-2759_daily_bin239.fits" evtable="EVENTS" scfile=/scratch/kocevski/595856/ft2_4FGL_J2258.1-2759_daily_bin239.fits sctable="SC_DATA" outfile=/scratch/kocevski/595856/ltcube_301276801_301536001_4FGL_J2258.1-2759_daily_bin239.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/595856/ft2_4FGL_J2258.1-2759_daily_bin239.fits
.....................!
real 14.84
user 14.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595856/ft1_filtered_4FGL_J2258.1-2759_daily_bin239.fits evtable="EVENTS" scfile=/scratch/kocevski/595856/ft2_4FGL_J2258.1-2759_daily_bin239.fits sctable="SC_DATA" expcube=/scratch/kocevski/595856/ltcube_301276801_301536001_4FGL_J2258.1-2759_daily_bin239.fits outfile=/scratch/kocevski/595856/expmap_301276801_301536001_4FGL_J2258.1-2759_daily_bin239.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/595856/ltcube_301276801_301536001_4FGL_J2258.1-2759_daily_bin239.fits
.....................!
real 192.27
user 187.18
sys 4.74

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/595856/ft1_filtered_4FGL_J2258.1-2759_daily_bin239.fits scfile=/scratch/kocevski/595856/ft2_4FGL_J2258.1-2759_daily_bin239.fits outfile=/scratch/kocevski/595856/cmap_301276801_301536001_4FGL_J2258.1-2759_daily_bin239.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595856/ft1_filtered_4FGL_J2258.1-2759_daily_bin239.fits scfile=/scratch/kocevski/595856/ft2_4FGL_J2258.1-2759_daily_bin239.fits outfile=/scratch/kocevski/595856/cmap_HighResolution_301276801_301536001_4FGL_J2258.1-2759_daily_bin239.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.658       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.130       1.0000         .10000E-03   10000.    
     3 'norm      '    54.824       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22438       1.0000         .10000E-03   10000.    
     6 'norm      '    .10317E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.656       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.071       1.0000         .10000E-03   10000.    
     9 'norm      '    11.848       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .84033E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7849       1.0000         .10000E-03   10000.    
    12 'norm      '    .20554       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.8840       1.0000         .10000E-03   10000.    
    16 'Prefactor '    63.911       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5348       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    70.297       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0666       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .65018       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=   4966.920     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2470 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.656        22.072        .83386E-06   -.71164E-04
   2  Prefactor     10.126        7.7098        .16161E-06   -.42675E-04
   3  norm          54.827        27.170        .10921E-05   -.21453E-03
   4  Prefactor     .10000E-03    5.6987        .91273E-07** at limit **
   5  Prefactor     .81995E-01    11.163        .51503E-06    .35890E-04
   6  norm          .10000E-03    1.0677        .41348E-06** at limit **
   7  Prefactor     44.770        45.493       -.21564E-05   -.30437E-03
   8  Prefactor     17.062        14.016       -.39198E-06   -.11100E-03
   9  norm          11.845        5.7214       -.77648E-06   -.10684E-02
  10  Prefactor     .10021E-03    12.671       -.31752E-05** at limit **
  11  Prefactor     3.7690        7.7158        .23994E-05   -.61325E-03
  12  norm          .20575        .46432       -.21907E-07    .11330E-02
  13  Prefactor     .10000E-03    17.236        .11053E-06** at limit **
  14  Prefactor     .10000E-03    2.3488        .91278E-07** at limit **
  15  norm          2.8815        6.5644        .44292E-05    .56637E-04
  16  Prefactor     63.867        55.289        .14490E-06   -.52676E-04
  17  norm          2.5337        2.7488        .95923E-07   -.86090E-05
  18  Prefactor     .10000E-03    54.701       -.82786E-06** at limit **
  19  Prefactor     70.251        105.88        .44984E-05   -.31504E-04
  20  Prefactor     .10000E-03    20.814       -.82585E-07** at limit **
  21  Normalizat    1.0671        .19492        .48889E-07   -.34835E-03
  22  Prefactor     .64991        .17218       -.22135E-05   -.39878E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6559
  Prefactor  = 10.1258
  norm       = 54.8266
  Prefactor  = 0.0001
  Prefactor  = 0.0819953
  norm       = 0.0001
  Prefactor  = 44.7695
  Prefactor  = 17.0616
  norm       = 11.8447
  Prefactor  = 0.000100208
  Prefactor  = 3.76903
  norm       = 0.20575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.88147
  Prefactor  = 63.8668
  norm       = 2.53368
  Prefactor  = 0.0001
  Prefactor  = 70.2508
  Prefactor  = 0.0001
  Normalizat = 1.06712
  Prefactor  = 0.649912
 **********
 **   18 **HESSE 
 **********

 FCN=   4966.920     FROM HESSE     STATUS=OK           352 CALLS     2822 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.656        22.113        .11733E-03   -1.5025    
   2  Prefactor     10.126        7.7304        .12589E-03   -1.5071    
   3  norm          54.827        26.919        .27087E-03   -1.4226    
   4  Prefactor     .10000E-03    5.7026        .16432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .81995E-01    27.370        .60814E-01   -1.5651    
   6  norm          .10000E-03    1.6217        .13442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     44.770        44.689        .59995E-04   -1.4369    
   8  Prefactor     17.062        14.101        .96936E-04   -1.4882    
   9  norm          11.845        5.6412        .50928E-03   -1.5020    
  10  Prefactor     .10021E-03    76.051        .38959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7690        7.7316        .10375E-02   -1.5320    
  12  norm          .20575        .39935        .61373E-03   -1.5617    
  13  Prefactor     .10000E-03    17.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3522        .10548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.8815        6.4866        .11966E-02   -1.5368    
  16  Prefactor     63.867        55.675        .50197E-04   -1.4108    
  17  norm          2.5337        2.7422        .11739E-03   -1.5390    
  18  Prefactor     .10000E-03    55.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     70.251        105.59        .47878E-04   -1.4030    
  20  Prefactor     .10000E-03    20.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0671        .23501        .21861E-03   -.90815    
  22  Prefactor     .64991        .20439        .26390E-03   -1.0552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44049e-09
Minuit parameter uncertainties:
  1  22.1285
  2  7.73119
  3  26.9247
  4  1.24628e-05
  5  2.99571
  6  4.12965e-05
  7  44.7226
  8  14.104
  9  5.64143
  10  0.00795922
  11  7.73366
  12  0.399355
  13  2.49734e-05
  14  9.0906e-06
  15  6.48822
  16  55.7205
  17  2.74232
  18  0.000137678
  19  105.869
  20  1.4721e-05
  21  0.235238
  22  0.204629
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  2.058e-01  3.994e-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:  6.499e-01  2.046e-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.067e+00  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/595856/likelihoodResults_301276801_301536001_4FGL_J2258.1-2759_daily_bin239.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) = 4966.87658466
delta logL = 0.0434593337914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4966.87236045
delta logL = 0.0476835434092

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24209       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8990       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64704       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=   4966.872     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      229 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24131        30.939        .10168E-01    .11914E-02
   2  alpha         1.8961        3.5611        .42765       -.13437E-05
   3  Normalizat    1.0707        .69068E-01    .39330E-01    .11014E-04
   4  Prefactor     .64728        .71101E-01    .59766E-01    .24113E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.24131
  alpha      = 1.89613
  Normalizat = 1.07069
  Prefactor  = 0.647285
 **********
 **   18 **HESSE 
 **********

 FCN=   4966.872     FROM HESSE     STATUS=OK            35 CALLS      264 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24131        .40423        .62798E-03   -1.5610    
   2  alpha         1.8961        1.1567        .30407E-01   -.24396    
   3  Normalizat    1.0707        .20781        .21829E-03   -.90698    
   4  Prefactor     .64728        .20110        .26436E-03   -1.0563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56096e-11
Minuit parameter uncertainties:
  1  0.404232
  2  1.20577
  3  0.207966
  4  0.201323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595856': 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) = 4966.87235487
delta logL = 0.047689124468

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  2.413e-01  4.042e-01  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  1.896e+00  1.206e+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:  6.473e-01  2.013e-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.071e+00  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
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/595856/cmap_HighResolution_301276801_301536001_4FGL_J2258.1-2759_daily_bin239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-05', job_status='DONE', photon_flux_upper_limit='7.30e-08', time_completed='2021-09-29 03:09:01.082937', job_id='595856', GAL2='0.65', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632910141.08', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='4.77e-02', ts2='0.56', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='239' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:09:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 595856: <4FGL_J2258.1-2759_daily_bin239> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin239 344.529 -27.9843 301276801 301536001 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 :                                   578.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            787 sec.

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

