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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin94
RA = 344.529, Dec = -27.9843
tmin = 263692801, tmax = 263952001
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='595636', job_status='RUN', time_executed='2021-09-29 02:58:15.571381', time_epoch_executed='1632909495.57' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='94'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595636

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595636/ft1_4FGL_J2258.1-2759_daily_bin94.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595636/ft2_4FGL_J2258.1-2759_daily_bin94.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595636/ft1_4FGL_J2258.1-2759_daily_bin94.fits outfile=/scratch/kocevski/595636/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin94.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=263692801.0 tmax=263952001.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 1.64
user 1.46
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/595636/ft2_4FGL_J2258.1-2759_daily_bin94.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/595636/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin94.fits evtable="EVENTS" outfile="/scratch/kocevski/595636/ft1_filtered_4FGL_J2258.1-2759_daily_bin94.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595636/ft1_filtered_4FGL_J2258.1-2759_daily_bin94.fits" evtable="EVENTS" scfile=/scratch/kocevski/595636/ft2_4FGL_J2258.1-2759_daily_bin94.fits sctable="SC_DATA" outfile=/scratch/kocevski/595636/ltcube_263692801_263952001_4FGL_J2258.1-2759_daily_bin94.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/595636/ft2_4FGL_J2258.1-2759_daily_bin94.fits
.....................!
real 12.39
user 12.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595636/ft1_filtered_4FGL_J2258.1-2759_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/595636/ft2_4FGL_J2258.1-2759_daily_bin94.fits sctable="SC_DATA" expcube=/scratch/kocevski/595636/ltcube_263692801_263952001_4FGL_J2258.1-2759_daily_bin94.fits outfile=/scratch/kocevski/595636/expmap_263692801_263952001_4FGL_J2258.1-2759_daily_bin94.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/595636/ltcube_263692801_263952001_4FGL_J2258.1-2759_daily_bin94.fits
.....................!
real 190.02
user 184.94
sys 4.72

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/595636/ft1_filtered_4FGL_J2258.1-2759_daily_bin94.fits scfile=/scratch/kocevski/595636/ft2_4FGL_J2258.1-2759_daily_bin94.fits outfile=/scratch/kocevski/595636/cmap_263692801_263952001_4FGL_J2258.1-2759_daily_bin94.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595636/ft1_filtered_4FGL_J2258.1-2759_daily_bin94.fits scfile=/scratch/kocevski/595636/ft2_4FGL_J2258.1-2759_daily_bin94.fits outfile=/scratch/kocevski/595636/cmap_HighResolution_263692801_263952001_4FGL_J2258.1-2759_daily_bin94.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=344.529 yref=-27.9843 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595636/ft1_filtered_4FGL_J2258.1-2759_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/595636/ft2_4FGL_J2258.1-2759_daily_bin94.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595636/Model_4FGL_J2258.1-2759_daily_bin94.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/595636/ft1_filtered_4FGL_J2258.1-2759_daily_bin94.fits.....................!
real 51.00
user 49.57
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.722       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.352       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5899       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26706E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4500       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.460       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .63674E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.3201       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.241       1.0000         .10000E-03   10000.    
    15 'norm      '    16.101       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.1080       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.324       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95294       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77732       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.

 FCN=   6534.431     FROM MIGRAD    STATUS=CONVERGED    844 CALLS     2730 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.727        14.786        .76089E-04   -.41985E-04
   2  Prefactor     10.351        7.6019        .62266E-03    .63721E-04
   3  norm          .10000E-03    9.9740        .18142E-02** at limit **
   4  Prefactor     2.5896        12.784        .12678E-02    .18311E-04
   5  Prefactor     .10000E-03    62.906        .36245E-02** at limit **
   6  norm          1.4503        1.6899        .97758E-04   -.24085E-03
   7  Prefactor     36.444        37.008        .66373E-04   -.53784E-04
   8  Prefactor     .10000E-03    17.619        .37563E-02** at limit **
   9  norm          6.3183        3.3895        .10473E-03    .24685E-03
  10  Prefactor     .10000E-03    3.4219        .14589E-02** at limit **
  11  Prefactor     .10000E-03    2.9796        .13542E-02** at limit **
  12  norm          .10000E-03    .49420        .75018E-03** at limit **
  13  Prefactor     .10000E-03    21.793        .18142E-02** at limit **
  14  Prefactor     11.237        7.0952        .11949E-03    .22244E-03
  15  norm          16.102        8.3240        .49908E-03    .24351E-04
  16  Prefactor     .10000E-03    13.262        .18142E-02** at limit **
  17  norm          8.1086        3.1301        .42823E-03    .71361E-04
  18  Prefactor     .10000E-03    8.0660        .18142E-02** at limit **
  19  Prefactor     .10000E-03    79.656        .18142E-02** at limit **
  20  Prefactor     13.328        24.500        .10973E-03    .68379E-05
  21  Normalizat    .95284        .18046        .22174E-03   -.12356E-04
  22  Prefactor     .77724        .17652        .24282E-03    .10221E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.7267
  Prefactor  = 10.3512
  norm       = 0.0001
  Prefactor  = 2.58959
  Prefactor  = 0.0001
  norm       = 1.45035
  Prefactor  = 36.4443
  Prefactor  = 0.0001
  norm       = 6.31832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2371
  norm       = 16.1018
  Prefactor  = 0.0001
  norm       = 8.10856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3283
  Normalizat = 0.952838
  Prefactor  = 0.777242
 **********
 **   18 **HESSE 
 **********

 FCN=   6534.431     FROM HESSE     STATUS=OK           326 CALLS     3056 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.727        14.786        .30436E-05   -1.4654    
   2  Prefactor     10.351        7.6002        .24906E-04   -1.5064    
   3  norm          .10000E-03    9.9769        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5896        12.774        .50711E-04   -1.5386    
   5  Prefactor     .10000E-03    64.063        .72491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4503        1.6900        .39103E-05   -1.5467    
   7  Prefactor     36.444        36.983        .26549E-05   -1.4500    
   8  Prefactor     .10000E-03    17.754        .75126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.3183        3.3891        .41892E-05   -1.5205    
  10  Prefactor     .10000E-03    3.4221        .29178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.9801        .27083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .49565        .15004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.794        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.237        7.0922        .47797E-05   -1.5037    
  15  norm          16.102        8.3238        .19963E-04   -1.4905    
  16  Prefactor     .10000E-03    13.262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.1086        3.1301        .17129E-04   -1.5138    
  18  Prefactor     .10000E-03    8.0664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    79.663        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.328        24.497        .43893E-05   -1.4978    
  21  Normalizat    .95284        .18055        .88696E-05   -.94628    
  22  Prefactor     .77724        .17668        .97126E-05   -1.0057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60312e-10
Minuit parameter uncertainties:
  1  14.7877
  2  7.60094
  3  1.0919e-05
  4  11.5066
  5  2.58309e-05
  6  1.69002
  7  37.0064
  8  0.000127617
  9  3.38925
  10  1.84998e-06
  11  1.32162e-06
  12  6.09139e-06
  13  1.05363e-05
  14  7.09277
  15  8.3244
  16  2.34325e-05
  17  3.13012
  18  7.11687e-06
  19  0.000311103
  20  24.5151
  21  0.180663
  22  0.176805
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.000e-04  6.091e-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:  7.772e-01  1.768e-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.528e-01  1.807e-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: 5.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/595636/likelihoodResults_263692801_263952001_4FGL_J2258.1-2759_daily_bin94.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) = 6534.44105464
delta logL = -0.00984659124697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6534.43120812
delta logL = -7.11097527528e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2912       1.0000          .0000       5.0000    
     3 'Normalizat'    .95284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77726       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=   6534.431     FROM MIGRAD    STATUS=FAILED        99 CALLS      256 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    123.61        .74920E-03** at limit **
   2  alpha         2.3683        3.6404        .16534       -.94594E-06
   3  Normalizat    .95284        .17024        .22174E-03   -.19560E-02
   4  Prefactor     .77724        .17129        .24282E-03   -.17987E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6534.431     FROM SIMPLEX   STATUS=UNCHANGED    201 CALLS      457 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    123.61        .10438E-03** at limit **
   2  alpha         2.3683        3.6404        .24858E-05   -.94594E-06
   3  Normalizat    .95284        .17024        .32209E-06   -.19560E-02
   4  Prefactor     .77724        .17129        .46437E-07   -.17987E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6534.431     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      494 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .49987        .14984E-03** at limit **
   2  alpha         2.3698        2.6775        .66135E-02   -.12033E-07
   3  Normalizat    .95284        .17491        .44348E-04    .24148E-04
   4  Prefactor     .77724        .17556        .48563E-04    .22708E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.36983
  Normalizat = 0.952838
  Prefactor  = 0.777241
 **********
 **   18 **HESSE 
 **********

 FCN=   6534.431     FROM HESSE     STATUS=OK            23 CALLS      517 TOTAL
                     EDM=   .74E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .49993        .29968E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3698        2.5236        .26454E-03   -.52091E-01
   3  Normalizat    .95284        .17494        .88696E-05   -.94628    
   4  Prefactor     .77724        .17559        .97126E-05   -1.0057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39808e-13
Minuit parameter uncertainties:
  1  2.20144e-07
  2  62.6995
  3  0.175047
  4  0.17572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595636': 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) = 6534.4312072
delta logL = 8.55593498272e-07

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.000e-04  2.201e-07  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.370e+00  6.270e+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:  7.772e-01  1.757e-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.528e-01  1.750e-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/595636/cmap_HighResolution_263692801_263952001_4FGL_J2258.1-2759_daily_bin94.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.90e-05', job_status='DONE', photon_flux_upper_limit='5.03e-08', time_completed='2021-09-29 03:09:22.380287', job_id='595636', GAL2='0.78', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1632910162.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='8.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='94' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:09:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 595636: <4FGL_J2258.1-2759_daily_bin94> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin94 344.529 -27.9843 263692801 263952001 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 :                                   666.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            826 sec.

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

