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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin1005
RA = 344.529, Dec = -27.9843
tmin = 499824001, tmax = 500083201
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='599973', job_status='RUN', time_executed='2021-09-29 03:12:03.290547', time_epoch_executed='1632910323.29' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/599973

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/599973/ft1_4FGL_J2258.1-2759_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/599973/ft2_4FGL_J2258.1-2759_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/599973/ft1_4FGL_J2258.1-2759_daily_bin1005.fits outfile=/scratch/kocevski/599973/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin1005.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=499824001.0 tmax=500083201.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 5.24
user 4.98
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/599973/ft2_4FGL_J2258.1-2759_daily_bin1005.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/599973/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin1005.fits evtable="EVENTS" outfile="/scratch/kocevski/599973/ft1_filtered_4FGL_J2258.1-2759_daily_bin1005.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/599973/ft1_filtered_4FGL_J2258.1-2759_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/599973/ft2_4FGL_J2258.1-2759_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/599973/ltcube_499824001_500083201_4FGL_J2258.1-2759_daily_bin1005.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/599973/ft2_4FGL_J2258.1-2759_daily_bin1005.fits
.....................!
real 12.40
user 12.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/599973/ft1_filtered_4FGL_J2258.1-2759_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/599973/ft2_4FGL_J2258.1-2759_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/599973/ltcube_499824001_500083201_4FGL_J2258.1-2759_daily_bin1005.fits outfile=/scratch/kocevski/599973/expmap_499824001_500083201_4FGL_J2258.1-2759_daily_bin1005.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/599973/ltcube_499824001_500083201_4FGL_J2258.1-2759_daily_bin1005.fits
.....................!
real 190.43
user 185.49
sys 4.58

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/599973/ft1_filtered_4FGL_J2258.1-2759_daily_bin1005.fits scfile=/scratch/kocevski/599973/ft2_4FGL_J2258.1-2759_daily_bin1005.fits outfile=/scratch/kocevski/599973/cmap_499824001_500083201_4FGL_J2258.1-2759_daily_bin1005.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.40
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/599973/ft1_filtered_4FGL_J2258.1-2759_daily_bin1005.fits scfile=/scratch/kocevski/599973/ft2_4FGL_J2258.1-2759_daily_bin1005.fits outfile=/scratch/kocevski/599973/cmap_HighResolution_499824001_500083201_4FGL_J2258.1-2759_daily_bin1005.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/599973/ft1_filtered_4FGL_J2258.1-2759_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/599973/ft2_4FGL_J2258.1-2759_daily_bin1005.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/599973/Model_4FGL_J2258.1-2759_daily_bin1005.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/599973/ft1_filtered_4FGL_J2258.1-2759_daily_bin1005.fits......................!
real 30.49
user 29.20
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.611       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .96901E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    38.225       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .72176       1.0000         .10000E-03   10000.    
     6 'norm      '    .10264E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    80.171       1.0000         .10000E-03   10000.    
     8 'Prefactor '    77.370       1.0000         .10000E-03   10000.    
     9 'norm      '    .23747E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10918E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    63.089       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    119.14       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .40378E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .77249       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99918       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=   2628.314     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2951 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.605        32.281       -.25957E-06    .72839E-04
   2  Prefactor     .10000E-03    13.804       -.35852E-05** at limit **
   3  norm          38.246        30.417        .37423E-06    .43488E-04
   4  Prefactor     .10000E-03    97.969       -.28274E-05** at limit **
   5  Prefactor     .70867        25.053       -.76094E-05    .40057E-04
   6  norm          .10000E-03    3.1090        .40602E-06** at limit **
   7  Prefactor     80.317        83.851        .72804E-06    .51504E-04
   8  Prefactor     77.379        35.972        .46119E-06    .17177E-03
   9  norm          .10001E-03    21.733        .99352E-05** at limit **
  10  Prefactor     .10000E-03    10.907        .96392E-07** at limit **
  11  Prefactor     .10000E-03    8.3293        .37068E-07** at limit **
  12  norm          .10000E-03    .35115       -.30850E-07** at limit **
  13  Prefactor     .10000E-03    50.603        .20923E-06** at limit **
  14  Prefactor     .10000E-03    8.2327       -.11544E-06** at limit **
  15  norm          .10000E-03    7.7414       -.11060E-06** at limit **
  16  Prefactor     63.079        114.76       -.46533E-06    .11020E-04
  17  norm          .10000E-03    2.3697       -.10976E-06** at limit **
  18  Prefactor     .10000E-03    22.622        .12193E-06** at limit **
  19  Prefactor     119.08        219.66        .79860E-06    .54994E-05
  20  Prefactor     .10003E-03    971.34        .41572E-05** at limit **
  21  Normalizat    .77237        .30606        .61581E-06    .30246E-03
  22  Prefactor     .99947        .26052        .30184E-05    .38661E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.6053
  Prefactor  = 0.0001
  norm       = 38.2455
  Prefactor  = 0.000100004
  Prefactor  = 0.708667
  norm       = 0.000100002
  Prefactor  = 80.3173
  Prefactor  = 77.3789
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 63.0791
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 119.079
  Prefactor  = 0.000100027
  Normalizat = 0.772367
  Prefactor  = 0.999468
 **********
 **   18 **HESSE 
 **********

 FCN=   2628.314     FROM HESSE     STATUS=OK           332 CALLS     3283 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.605        32.280        .48458E-04   -1.4049    
   2  Prefactor     .10000E-03    38.323        .35404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          38.246        30.393        .64827E-04   -1.4470    
   4  Prefactor     .10000E-03    99.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .70867        61.933        .41407E-02   -1.5540    
   6  norm          .10000E-03    3.2122        .88814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     80.317        84.411        .22427E-03   -1.3913    
   8  Prefactor     77.379        36.146        .45653E-04   -1.3946    
   9  norm          .10001E-03    24.222        .28694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.914        .16533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.3688        .14448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .35981        .59254E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    50.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2425        .14369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.7471        .13933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     63.079        115.24        .50521E-04   -1.4118    
  17  norm          .10000E-03    2.3763        .77098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     119.08        219.60        .18434E-03   -1.3521    
  20  Prefactor     .10003E-03    972.80        .21259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .77237        .36024        .29554E-03   -1.0110    
  22  Prefactor     .99947        .30902        .23731E-03   -.92747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34804e-09
Minuit parameter uncertainties:
  1  32.2886
  2  7.64938e-05
  3  30.4053
  4  0.00131329
  5  13.2631
  6  0.000156159
  7  84.5374
  8  36.1558
  9  0.000753479
  10  1.46271e-05
  11  1.28634e-05
  12  2.32985e-06
  13  4.87761e-05
  14  1.01737e-05
  15  2.65657e-05
  16  115.649
  17  1.31971e-05
  18  2.78409e-05
  19  221.127
  20  0.0104495
  21  0.361353
  22  0.30957
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.000e-04  2.330e-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:  9.995e-01  3.096e-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:  7.724e-01  3.614e-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: 9.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/599973/likelihoodResults_499824001_500083201_4FGL_J2258.1-2759_daily_bin1005.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) = 2628.31437574
delta logL = -1.55134189299e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2628.31436119
delta logL = -9.59519638855e-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.2849       1.0000          .0000       5.0000    
     3 'Normalizat'    .77234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99968       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=   2628.314     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      232 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .36089        .59263E-04** at limit **
   2  alpha         2.2154        3.0073        .16538        .10535E-06
   3  Normalizat    .77237        .33433        .29555E-03    .63564E-03
   4  Prefactor     .99947        .30423        .23731E-03    .80484E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.21543
  Normalizat = 0.772368
  Prefactor  = 0.999469
 **********
 **   18 **HESSE 
 **********

 FCN=   2628.314     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .36044        .11853E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2154        3.6008        .66153E-02   -.11408    
   3  Normalizat    .77237        .33462        .59110E-04   -1.0110    
   4  Prefactor     .99947        .30450        .47461E-04   -.92747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53615e-09
Minuit parameter uncertainties:
  1  7.90829e-07
  2  103.325
  3  0.335511
  4  0.305024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/599973': 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) = 2628.31435999
delta logL = 2.43383965426e-07

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.000e-04  7.908e-07  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.215e+00  1.033e+02  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:  9.995e-01  3.050e-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:  7.724e-01  3.355e-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/599973/cmap_HighResolution_499824001_500083201_4FGL_J2258.1-2759_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-05', job_status='DONE', photon_flux_upper_limit='9.64e-08', time_completed='2021-09-29 03:19:50.916946', job_id='599973', GAL2='1.00', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632910790.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='1005' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:19:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 599973: <4FGL_J2258.1-2759_daily_bin1005> in cluster <slac> Done

Job <4FGL_J2258.1-2759_daily_bin1005> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 03:10:24 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 03:10:26 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:10:26 2021
Terminated at Wed Sep 29 03:19:51 2021
Results reported at Wed Sep 29 03:19:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin1005 344.529 -27.9843 499824001 500083201 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 :                                   464.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   565 sec.
    Turnaround time :                            567 sec.

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

