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


Performing analysis on: 4FGL_J2258.1-2759_daily_bin1
RA = 344.529, Dec = -27.9843
tmin = 239587201, tmax = 239846401
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='595498', job_status='RUN', time_executed='2021-09-29 02:58:35.854965', time_epoch_executed='1632909515.85' WHERE source_name='4FGL J2258.1-2759' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595498

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595498/ft1_4FGL_J2258.1-2759_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595498/ft2_4FGL_J2258.1-2759_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595498/ft1_4FGL_J2258.1-2759_daily_bin1.fits outfile=/scratch/kocevski/595498/ft1_filteredMKT_4FGL_J2258.1-2759_daily_bin1.fits ra=344.529 dec=-27.9843 rad=12.0 tmin=239587201.0 tmax=239846401.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.34
user 1.14
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595498/ft1_filtered_4FGL_J2258.1-2759_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/595498/ft2_4FGL_J2258.1-2759_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/595498/ltcube_239587201_239846401_4FGL_J2258.1-2759_daily_bin1.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/595498/ft2_4FGL_J2258.1-2759_daily_bin1.fits
.....................!
real 15.15
user 14.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595498/ft1_filtered_4FGL_J2258.1-2759_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/595498/ft2_4FGL_J2258.1-2759_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/595498/ltcube_239587201_239846401_4FGL_J2258.1-2759_daily_bin1.fits outfile=/scratch/kocevski/595498/expmap_239587201_239846401_4FGL_J2258.1-2759_daily_bin1.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/595498/ltcube_239587201_239846401_4FGL_J2258.1-2759_daily_bin1.fits
.....................!
real 190.22
user 184.51
sys 5.38

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/595498/ft1_filtered_4FGL_J2258.1-2759_daily_bin1.fits scfile=/scratch/kocevski/595498/ft2_4FGL_J2258.1-2759_daily_bin1.fits outfile=/scratch/kocevski/595498/cmap_239587201_239846401_4FGL_J2258.1-2759_daily_bin1.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595498/ft1_filtered_4FGL_J2258.1-2759_daily_bin1.fits scfile=/scratch/kocevski/595498/ft2_4FGL_J2258.1-2759_daily_bin1.fits outfile=/scratch/kocevski/595498/cmap_HighResolution_239587201_239846401_4FGL_J2258.1-2759_daily_bin1.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595498/ft1_filtered_4FGL_J2258.1-2759_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/595498/ft2_4FGL_J2258.1-2759_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595498/Model_4FGL_J2258.1-2759_daily_bin1.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/595498/ft1_filtered_4FGL_J2258.1-2759_daily_bin1.fits.....................!
real 41.37
user 40.02
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5187       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.633       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .74100       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8862       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2209       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2662       1.0000         .10000E-03   10000.    
    12 'norm      '    .15355       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.903       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.3398       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .43840       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1488       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=   4931.930     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2016 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5206        20.549       -.15527E-05   -.11178E-03
   2  Prefactor     .10000E-03    2.5930        .16816E-07** at limit **
   3  norm          .10000E-03    18.925       -.90877E-05** at limit **
   4  Prefactor     37.632        19.761       -.97712E-07    .57716E-06
   5  Prefactor     .10000E-03    4.7584        .25506E-07** at limit **
   6  norm          .74100        1.0392        .51059E-08    .39157E-04
   7  Prefactor     .10000E-03    11.010       -.21742E-05** at limit **
   8  Prefactor     9.8830        12.835        .39183E-06   -.47929E-04
   9  norm          .10000E-03    1.2128        .70902E-08** at limit **
  10  Prefactor     8.2200        11.127        .75972E-06   -.86660E-04
  11  Prefactor     3.2707        9.6404       -.10010E-05   -.65277E-03
  12  norm          .15359        .63482       -.16152E-06   -.17903E-02
  13  Prefactor     .10000E-03    23.157        .29147E-05** at limit **
  14  Prefactor     .10000E-03    15.477        .57716E-05** at limit **
  15  norm          21.902        8.9009       -.21543E-07    .44417E-05
  16  Prefactor     .10000E-03    8.7102        .18125E-06** at limit **
  17  norm          3.3399        2.7348       -.79139E-07   -.28306E-03
  18  Prefactor     .10000E-03    11.153        .14393E-05** at limit **
  19  Prefactor     .10000E-03    51.129        .25240E-04** at limit **
  20  Prefactor     .10000E-03    57.904       -.27078E-04** at limit **
  21  Normalizat    .43856        .16839        .27606E-06   -.20679E-04
  22  Prefactor     1.1486        .16708        .59933E-07    .21063E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.52064
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.6323
  Prefactor  = 0.0001
  norm       = 0.741
  Prefactor  = 0.0001
  Prefactor  = 9.88297
  norm       = 0.0001
  Prefactor  = 8.22002
  Prefactor  = 3.27065
  norm       = 0.153587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.9021
  Prefactor  = 0.0001
  norm       = 3.33989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.438565
  Prefactor  = 1.14861
 **********
 **   18 **HESSE 
 **********

 FCN=   4931.930     FROM HESSE     STATUS=OK           342 CALLS     2358 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5206        20.639        .25742E-03   -1.5390    
   2  Prefactor     .10000E-03    2.6081        .11042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    18.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     37.632        19.761        .65333E-04   -1.4480    
   5  Prefactor     .10000E-03    4.8312        .14958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .74100        1.0387        .48873E-04   -1.5536    
   7  Prefactor     .10000E-03    11.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.8830        12.847        .12744E-03   -1.5079    
   9  norm          .10000E-03    1.2159        .75447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.2200        11.097        .13983E-03   -1.5134    
  11  Prefactor     3.2707        8.7140        .21790E-03   -1.5346    
  12  norm          .15359        .69524        .71271E-03   -1.5630    
  13  Prefactor     .10000E-03    23.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.037        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.902        8.9009        .85586E-04   -1.4772    
  16  Prefactor     .10000E-03    8.7117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.3399        2.7284        .10052E-03   -1.5342    
  18  Prefactor     .10000E-03    11.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    50.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    57.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .43856        .19387        .28167E-03   -1.1535    
  22  Prefactor     1.1486        .19378        .18654E-03   -.87928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.74106e-10
Minuit parameter uncertainties:
  1  14.4321
  2  4.97646e-07
  3  3.31668e-05
  4  19.7645
  5  1.56759e-06
  6  1.03873
  7  5.18808e-06
  8  12.8508
  9  2.28617e-06
  10  11.0996
  11  8.71735
  12  0.653345
  13  4.92627e-06
  14  1.74194e-05
  15  8.90147
  16  2.67499e-07
  17  2.72845
  18  2.74611e-06
  19  1.49125e-05
  20  4.81578e-05
  21  0.194167
  22  0.193896
Done.

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

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.536e-01  6.533e-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:  1.149e+00  1.939e-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:  4.386e-01  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/595498/likelihoodResults_239587201_239846401_4FGL_J2258.1-2759_daily_bin1.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) = 4931.68342946
delta logL = 0.246909605931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4931.66395345
delta logL = 0.266385612101

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10561       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5411       1.0000          .0000       5.0000    
     3 'Normalizat'    .40861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1650       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=   4931.664     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10549        2.0655        .64597E-02    .27485E-02
   2  alpha         3.5422        4.2664        .46938        .40542E-04
   3  Normalizat    .40852        .26745E-01    .65827E-01    .35292E-04
   4  Prefactor     1.1651        .27983E-01    .35517E-01   -.16304E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.105487
  alpha      = 3.54221
  Normalizat = 0.408523
  Prefactor  = 1.16508
 **********
 **   18 **HESSE 
 **********

 FCN=   4931.664     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      245 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10549        8.6190        .28921E-04   -1.5643    
   2  alpha         3.5422        3.2105        .19255E-01    .43001    
   3  Normalizat    .40852        .21468        .29138E-03   -1.1686    
   4  Prefactor     1.1651        .23331        .18529E-03   -.87413    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.47682e-07
Minuit parameter uncertainties:
  1  1.90641
  2  11.2949
  3  0.215111
  4  0.23352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595498': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4931.6639531
delta logL = 0.266385962141

Extracting fit parameters...

4FGL J2258.1-2759
   Spectrum: LogParabola
342         norm:  1.055e-01  1.906e+00  1.000e-04  1.000e+04 ( 1.000e-11)
343        alpha:  3.542e+00  1.129e+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:  1.165e+00  2.335e-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:  4.085e-01  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/595498/cmap_HighResolution_239587201_239846401_4FGL_J2258.1-2759_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-05', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2021-09-29 03:07:23.116554', job_id='595498', GAL2='1.17', fit_tolerance='1e-08', EG2='0.41', EG='0.44', time_epoch_completed='1632910043.12', return_code2='102', ts='0.10', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.66e-01', ts2='0.66', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='1' AND source_name='4FGL J2258.1-2759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:07:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 595498: <4FGL_J2258.1-2759_daily_bin1> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2258.1-2759_daily_bin1 344.529 -27.9843 239587201 239846401 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 :                                   525.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            716 sec.

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

