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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin237
RA = 344.529, Dec = -27.9843
tmin = 300758401, tmax = 301017601
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='595852', job_status='RUN', time_executed='2021-09-29 02:59:18.944088', time_epoch_executed='1632909558.94' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='237'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595852/ft1_4FGL_J2258.1-2759_daily_bin237.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595852/ft2_4FGL_J2258.1-2759_daily_bin237.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595852/ft1_4FGL_J2258.1-2759_daily_bin237.fits outfile=/scratch/kocevski/595852/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin237.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=300758401.0 tmax=301017601.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.51
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/595852/ft2_4FGL_J2258.1-2759_daily_bin237.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/595852/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin237.fits evtable="EVENTS" outfile="/scratch/kocevski/595852/ft1_filtered_4FGL_J2258.1-2759_daily_bin237.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595852/ft1_filtered_4FGL_J2258.1-2759_daily_bin237.fits" evtable="EVENTS" scfile=/scratch/kocevski/595852/ft2_4FGL_J2258.1-2759_daily_bin237.fits sctable="SC_DATA" outfile=/scratch/kocevski/595852/ltcube_300758401_301017601_4FGL_J2258.1-2759_daily_bin237.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/595852/ft2_4FGL_J2258.1-2759_daily_bin237.fits
.....................!
real 11.86
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595852/ft1_filtered_4FGL_J2258.1-2759_daily_bin237.fits evtable="EVENTS" scfile=/scratch/kocevski/595852/ft2_4FGL_J2258.1-2759_daily_bin237.fits sctable="SC_DATA" expcube=/scratch/kocevski/595852/ltcube_300758401_301017601_4FGL_J2258.1-2759_daily_bin237.fits outfile=/scratch/kocevski/595852/expmap_300758401_301017601_4FGL_J2258.1-2759_daily_bin237.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/595852/ltcube_300758401_301017601_4FGL_J2258.1-2759_daily_bin237.fits
.....................!
real 189.46
user 185.35
sys 3.80

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/595852/ft1_filtered_4FGL_J2258.1-2759_daily_bin237.fits scfile=/scratch/kocevski/595852/ft2_4FGL_J2258.1-2759_daily_bin237.fits outfile=/scratch/kocevski/595852/cmap_300758401_301017601_4FGL_J2258.1-2759_daily_bin237.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.52
user 0.36
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.861       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    21.483       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0825       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6167       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.835       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.059       1.0000         .10000E-03   10000.    
     9 'norm      '    10.199       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6785       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    83.943       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91425       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83920       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=   6704.832     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2299 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.862        12.454       -.25520E-06    .54296E-05
   2  Prefactor     .10000E-03    2.4515        .96127E-06** at limit **
   3  norm          21.485        14.404        .22840E-06    .84119E-05
   4  Prefactor     2.0336        32.856       -.43906E-04   -.77704E-04
   5  Prefactor     5.6179        9.2052        .30449E-05   -.97639E-04
   6  norm          .10000E-03    .53761        .10337E-06** at limit **
   7  Prefactor     54.829        33.140       -.61647E-05   -.49482E-05
   8  Prefactor     20.049        10.950        .11465E-05    .21527E-03
   9  norm          10.200        3.6892        .81114E-06    .32387E-03
  10  Prefactor     .10000E-03    3.3339        .65486E-09** at limit **
  11  Prefactor     .10000E-03    2.3654       -.74085E-06** at limit **
  12  norm          .10000E-03    .18907       -.97850E-07** at limit **
  13  Prefactor     .10000E-03    34.164       -.28969E-05** at limit **
  14  Prefactor     .10000E-03    1.6071       -.43334E-07** at limit **
  15  norm          .10000E-03    1.9690       -.11096E-06** at limit **
  16  Prefactor     .10000E-03    24.072       -.10500E-04** at limit **
  17  norm          1.6784        1.8601       -.22220E-06   -.64524E-03
  18  Prefactor     .10000E-03    6.3009       -.10356E-06** at limit **
  19  Prefactor     .10000E-03    29.433        .20669E-04** at limit **
  20  Prefactor     83.979        51.918        .33238E-04    .54785E-06
  21  Normalizat    .91424        .14944        .39007E-07    .36614E-03
  22  Prefactor     .83921        .14509        .55225E-06    .24880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.8619
  Prefactor  = 0.0001
  norm       = 21.4854
  Prefactor  = 2.03358
  Prefactor  = 5.61793
  norm       = 0.0001
  Prefactor  = 54.8288
  Prefactor  = 20.0494
  norm       = 10.1997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.6784
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 83.9789
  Normalizat = 0.914237
  Prefactor  = 0.839205
 **********
 **   18 **HESSE 
 **********

 FCN=   6704.832     FROM HESSE     STATUS=OK           340 CALLS     2639 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.862        12.457        .80340E-04   -1.4710    
   2  Prefactor     .10000E-03    2.4698        .12522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          21.485        14.403        .86417E-04   -1.4781    
   4  Prefactor     2.0336        33.477        .28615E-03   -1.5423    
   5  Prefactor     5.6179        9.1673        .16951E-03   -1.5234    
   6  norm          .10000E-03    .53927        .58510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     54.829        33.077        .54168E-04   -1.4226    
   8  Prefactor     20.049        11.032        .89429E-04   -1.4812    
   9  norm          10.200        3.6342        .89966E-04   -1.5069    
  10  Prefactor     .10000E-03    3.3406        .14594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3847        .12274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .48428        .68076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.6094        .10136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.9729        .11220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6784        1.8421        .11398E-03   -1.5449    
  18  Prefactor     .10000E-03    6.3049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     83.979        51.764        .21922E-03   -1.3873    
  21  Normalizat    .91424        .17803        .22223E-03   -.95962    
  22  Prefactor     .83921        .17235        .23125E-03   -.98299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53851e-10
Minuit parameter uncertainties:
  1  12.4581
  2  3.20808e-05
  3  14.4053
  4  16.5125
  5  9.16958
  6  7.65788e-06
  7  33.0882
  8  11.0333
  9  3.63428
  10  7.3799e-06
  11  6.03214e-06
  12  6.53748e-06
  13  6.84468e-05
  14  3.20244e-07
  15  1.99571e-06
  16  6.99262e-05
  17  1.84213
  18  6.90684e-06
  19  8.45277e-05
  20  51.7917
  21  0.178146
  22  0.172463
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.000e-04  6.537e-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:  8.392e-01  1.725e-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.142e-01  1.781e-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: 4.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/595852/likelihoodResults_300758401_301017601_4FGL_J2258.1-2759_daily_bin237.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) = 6704.84212938
delta logL = -0.0102945610533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6704.83183483
delta logL = -1.67810867424e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2850       1.0000          .0000       5.0000    
     3 'Normalizat'    .91422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83920       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=   6704.832     FROM MIGRAD    STATUS=FAILED        90 CALLS      247 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    115.08        .68136E-03** at limit **
   2  alpha         2.2760        3.2725        .16538        .31381E-05
   3  Normalizat    .91424        .12733        .22223E-03   -.33254E-03
   4  Prefactor     .83921        .12846        .23125E-03   -.24944E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6704.832     FROM SIMPLEX   STATUS=UNCHANGED    158 CALLS      405 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    115.08        .10241E-03** at limit **
   2  alpha         2.2760        3.2725        .58001E-05    .31381E-05
   3  Normalizat    .91424        .12733        .58782E-06   -.33254E-03
   4  Prefactor     .83921        .12846        .52811E-06   -.24944E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6704.832     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      450 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .48753        .13627E-03** at limit **
   2  alpha         2.2729        3.6192        .66153E-02    .68742E-08
   3  Normalizat    .91424        .16953        .44447E-04    .93617E-05
   4  Prefactor     .83921        .17065        .92501E-05    .31955E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.27288
  Normalizat = 0.914236
  Prefactor  = 0.839206
 **********
 **   18 **HESSE 
 **********

 FCN=   6704.832     FROM HESSE     STATUS=OK            23 CALLS      473 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .48762        .27255E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2729        3.6116        .26461E-03   -.90975E-01
   3  Normalizat    .91424        .16947        .88893E-05   -.95962    
   4  Prefactor     .83921        .17057        .18500E-05   -.98299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59804e-13
Minuit parameter uncertainties:
  1  1.02118e-07
  2  50.1156
  3  0.169569
  4  0.170673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595852': 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) = 6704.83183477
delta logL = 4.18503987021e-08

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.000e-04  1.021e-07  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  2.273e+00  5.012e+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.392e-01  1.707e-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.142e-01  1.696e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/595852/cmap_HighResolution_300758401_301017601_4FGL_J2258.1-2759_daily_bin237.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-05', job_status='DONE', photon_flux_upper_limit='4.21e-08', time_completed='2021-09-29 03:10:14.685175', job_id='595852', GAL2='0.84', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632910214.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.19e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='237' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:10:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 595852: <4FGL_J2258.1-2759_daily_bin237> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin237 344.529 -27.9843 300758401 301017601 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 :                                   653.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            864 sec.

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

