/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 110 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7493
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1958.0-3845_daily_bin285
RA = 299.503, Dec = -38.7547
tmin = 313200001, tmax = 313459201
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='412518', job_status='RUN', time_executed='2021-09-24 00:03:57.639712', time_epoch_executed='1632467037.64' WHERE source_name='4FGL J1958.0-3845' and cadence='daily' and bin_id='285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412518

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412518/ft1_4FGL_J1958.0-3845_daily_bin285.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412518/ft2_4FGL_J1958.0-3845_daily_bin285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412518/ft1_4FGL_J1958.0-3845_daily_bin285.fits outfile=/scratch/kocevski/412518/ft1_filteredMKT_4FGL_J1958.0-3845_daily_bin285.fits ra=299.503 dec=-38.7547 rad=12.0 tmin=313200001.0 tmax=313459201.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.45
user 3.25
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/412518/ft2_4FGL_J1958.0-3845_daily_bin285.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412518/ft2_4FGL_J1958.0-3845_daily_bin285.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/412518/ft1_filteredMKT_4FGL_J1958.0-3845_daily_bin285.fits evtable="EVENTS" outfile="/scratch/kocevski/412518/ft1_filtered_4FGL_J1958.0-3845_daily_bin285.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.53
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412518/ft1_filtered_4FGL_J1958.0-3845_daily_bin285.fits" evtable="EVENTS" scfile=/scratch/kocevski/412518/ft2_4FGL_J1958.0-3845_daily_bin285.fits sctable="SC_DATA" outfile=/scratch/kocevski/412518/ltcube_313200001_313459201_4FGL_J1958.0-3845_daily_bin285.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/412518/ft2_4FGL_J1958.0-3845_daily_bin285.fits
.....................!
real 12.15
user 11.77
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412518/ft1_filtered_4FGL_J1958.0-3845_daily_bin285.fits evtable="EVENTS" scfile=/scratch/kocevski/412518/ft2_4FGL_J1958.0-3845_daily_bin285.fits sctable="SC_DATA" expcube=/scratch/kocevski/412518/ltcube_313200001_313459201_4FGL_J1958.0-3845_daily_bin285.fits outfile=/scratch/kocevski/412518/expmap_313200001_313459201_4FGL_J1958.0-3845_daily_bin285.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/412518/ltcube_313200001_313459201_4FGL_J1958.0-3845_daily_bin285.fits
.....................!
real 191.30
user 185.96
sys 5.00

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 197 point sources and 0 extended sources

Setting source of interest to:
4FGL J1958.0-3845 @ 299.503 -38.7547

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/412518/ft1_filtered_4FGL_J1958.0-3845_daily_bin285.fits scfile=/scratch/kocevski/412518/ft2_4FGL_J1958.0-3845_daily_bin285.fits outfile=/scratch/kocevski/412518/cmap_313200001_313459201_4FGL_J1958.0-3845_daily_bin285.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=299.503 yref=-38.7547 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412518/ft1_filtered_4FGL_J1958.0-3845_daily_bin285.fits scfile=/scratch/kocevski/412518/ft2_4FGL_J1958.0-3845_daily_bin285.fits outfile=/scratch/kocevski/412518/cmap_HighResolution_313200001_313459201_4FGL_J1958.0-3845_daily_bin285.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=299.503 yref=-38.7547 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412518/ft1_filtered_4FGL_J1958.0-3845_daily_bin285.fits evtable="EVENTS" scfile=/scratch/kocevski/412518/ft2_4FGL_J1958.0-3845_daily_bin285.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412518/Model_4FGL_J1958.0-3845_daily_bin285.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/412518/ft1_filtered_4FGL_J1958.0-3845_daily_bin285.fits.....................!
real 73.94
user 72.57
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/412518/ft1_filtered_4FGL_J1958.0-3845_daily_bin285.fits', '/scratch/kocevski/412518/ft2_4FGL_J1958.0-3845_daily_bin285.fits', expMap='/scratch/kocevski/412518/expmap_313200001_313459201_4FGL_J1958.0-3845_daily_bin285.fits', expCube='/scratch/kocevski/412518/ltcube_313200001_313459201_4FGL_J1958.0-3845_daily_bin285.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/412518/Model_4FGL_J1958.0-3845_daily_bin285.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1958.0-3845'

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  1.044e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
384        alpha:  2.178e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
385         beta:  1.780e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
386           Eb:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/412518/ft1_filtered_4FGL_J1958.0-3845_daily_bin285.fits
Spacecraft file(s): /scratch/kocevski/412518/ft2_4FGL_J1958.0-3845_daily_bin285.fits
Exposure map: /scratch/kocevski/412518/expmap_313200001_313459201_4FGL_J1958.0-3845_daily_bin285.fits
Exposure cube: /scratch/kocevski/412518/ltcube_313200001_313459201_4FGL_J1958.0-3845_daily_bin285.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/412518/Model_4FGL_J1958.0-3845_daily_bin285.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) = 8768.36536851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11748E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2352       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5935       1.0000         .10000E-03   10000.    
     4 'Prefactor '    145.60       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.302       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.2259       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .63992       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.570       1.0000         .10000E-03   10000.    
    13 'norm      '    .27052E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .60763       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.473       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4068       1.0000         .10000E-03   10000.    
    17 'norm      '    .90994E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.7999       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.846       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5816       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86425       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8768.362     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2581 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    4.3188       -.24527E-06** at limit **
   2  norm          1.2350        1.6773        .14126E-06   -.41479E-04
   3  Prefactor     2.5942        6.1646        .12098E-05    .21655E-03
   4  Prefactor     145.61        101.17        .48448E-06    .68977E-04
   5  Prefactor     .10000E-03    1.3504        .61202E-08** at limit **
   6  Prefactor     10.302        17.774        .11431E-06   -.83496E-05
   7  Prefactor     .10000E-03    3.3252        .11151E-07** at limit **
   8  norm          8.2259        13.503        .26948E-07   -.98112E-05
   9  Prefactor     .10000E-03    1.6293        .26173E-07** at limit **
  10  norm          .63953        1.2385        .46460E-06   -.15618E-03
  11  Prefactor     .10000E-03    10.066        .35581E-07** at limit **
  12  norm          11.562        10.146       -.35186E-07    .31222E-04
  13  norm          .10003E-03    11.150       -.94223E-06** at limit **
  14  norm          .60755        1.6386        .88682E-06   -.17068E-03
  15  Prefactor     15.462        52.883       -.16071E-05   -.85655E-04
  16  norm          1.4063        1.7829       -.67182E-08    .38331E-04
  17  norm          .91320E-01    3.7970        .15339E-06   -.69896E-04
  18  Prefactor     .10000E-03    23.758        .40105E-06** at limit **
  19  norm          3.8013        12.238        .33931E-06   -.13170E-04
  20  Prefactor     .10000E-03    17.125       -.11930E-06** at limit **
  21  Prefactor     27.843        57.186       -.17073E-06   -.31210E-04
  22  Normalizat    1.5815        .25053       -.65324E-07   -.17612E-04
  23  Prefactor     .86426        .83913E-01   -.43185E-06    .91491E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100006
  norm       = 1.235
  Prefactor  = 2.59415
  Prefactor  = 145.61
  Prefactor  = 0.0001
  Prefactor  = 10.3021
  Prefactor  = 0.0001
  norm       = 8.22586
  Prefactor  = 0.0001
  norm       = 0.639527
  Prefactor  = 0.0001
  norm       = 11.5621
  norm       = 0.000100033
  norm       = 0.607545
  Prefactor  = 15.4624
  norm       = 1.40633
  norm       = 0.09132
  Prefactor  = 0.0001
  norm       = 3.80134
  Prefactor  = 0.0001
  Prefactor  = 27.8426
  Normalizat = 1.58151
  Prefactor  = 0.864262
 **********
 **   18 **HESSE 
 **********

 FCN=   8768.362     FROM HESSE     STATUS=OK           380 CALLS     2961 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    22.095        .37166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2350        1.6477        .13760E-03   -1.5486    
   3  Prefactor     2.5942        6.2080        .25336E-03   -1.5386    
   4  Prefactor     145.61        101.29        .33394E-04   -1.3289    
   5  Prefactor     .10000E-03    1.3512        .10627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.302        17.772        .12483E-03   -1.5066    
   7  Prefactor     .10000E-03    3.3329        .16674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.2259        13.499        .13978E-03   -1.5134    
   9  Prefactor     .10000E-03    1.6366        .11671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .63953        1.2425        .13598E-03   -1.5548    
  11  Prefactor     .10000E-03    10.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.562        10.039        .11778E-03   -1.5028    
  13  norm          .10003E-03    46.911        .57930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .60755        1.6493        .19420E-03   -1.5552    
  15  Prefactor     15.462        54.278        .10182E-03   -1.4921    
  16  norm          1.4063        1.7678        .13703E-03   -1.5471    
  17  norm          .91320E-01    4.9903        .69781E-01   -1.5648    
  18  Prefactor     .10000E-03    23.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.8013        12.222        .20707E-03   -1.5318    
  20  Prefactor     .10000E-03    17.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.843        57.384        .75920E-04   -1.4652    
  22  Normalizat    1.5815        .28990        .37503E-03   -.75513    
  23  Prefactor     .86426        .96935E-01    .16452E-03   -.97401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50363e-09
Minuit parameter uncertainties:
  1  0.000730172
  2  1.64772
  3  6.20949
  4  101.407
  5  3.07055e-07
  6  17.7811
  7  4.71783e-07
  8  13.5037
  9  7.28953e-07
  10  1.24258
  11  6.53033e-06
  12  10.0401
  13  0.00248748
  14  1.64938
  15  54.4522
  16  1.76786
  17  1.34951
  18  0.000189725
  19  12.2297
  20  3.0382e-05
  21  57.4977
  22  0.290207
  23  0.0969538
Done.

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

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  6.395e-01  1.243e+00  1.000e-04  1.000e+04 ( 1.000e-11)
384        alpha:  2.178e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
385         beta:  1.780e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
386           Eb:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  8.643e-01  9.695e-02  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  1.582e+00  2.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 299.503 -38.755
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/412518/likelihoodResults_313200001_313459201_4FGL_J1958.0-3845_daily_bin285.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) = 8765.37015878
delta logL = 2.99155056158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8765.30015871
delta logL = 3.06155063785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24373       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3459       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89361       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+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=   8765.300     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      257 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24381        2.5802        .20684E-04   -.65186E-02
   2  alpha         4.3458        4.6728        .16349E-01   -.89754E-04
   3  Normalizat    1.4055        .27480        .39234E-03   -.48797E-04
   4  Prefactor     .89362        .94013E-01    .16178E-03    .80980E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.243807
  alpha      = 4.34581
  Normalizat = 1.40551
  Prefactor  = 0.893624
 **********
 **   18 **HESSE 
 **********

 FCN=   8765.300     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24381        .48428        .82737E-06   -1.5609    
   2  alpha         4.3458        1.1245        .65396E-03    .83058    
   3  Normalizat    1.4055        .28893        .15693E-04   -.80469    
   4  Prefactor     .89362        .96324E-01    .32357E-04   -.96364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00283e-10
Minuit parameter uncertainties:
  1  0.48429
  2  1.23091
  3  0.289262
  4  0.0963426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412518': 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) = 8765.30015859
delta logL = 3.06155076123

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  2.438e-01  4.843e-01  1.000e-04  1.000e+04 ( 1.000e-11)
384        alpha:  4.346e+00  1.231e+00  0.000e+00  5.000e+00 ( 1.000e+00)
385         beta:  1.780e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
386           Eb:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  8.936e-01  9.634e-02  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  1.406e+00  2.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.75
Ra Dec: 299.503 -38.755
Photon Index (Free Index): 4.35 +/- 1.23
Photon Flux (Free Index): 1.94e-07 +/- 9.14e-08
Energy Flux (Free Index): 2.94e-05 +/- 1.48e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/412518/cmap_HighResolution_313200001_313459201_4FGL_J1958.0-3845_daily_bin285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-05', comment='SUCCESS', energy_flux2='2.94e-05', dlogl='3.06e+00', photon_flux2='1.94e-07', job_status='DONE', time_completed='2021-09-24 00:18:30.712601', photon_index_error2='1.23', photon_index2='4.35', ts='0.30', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.48e-05', EG='1.58', time_epoch_completed='1632467910.71', return_code='0', job_id='412518', GAL2='0.89', EG2='1.41', return_code2='0', photon_flux_error2='9.14e-08', ts2='6.75', photon_index='2.18' WHERE bin_id='285' AND source_name='4FGL J1958.0-3845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:18:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 412518: <4FGL_J1958.0-3845_daily_bin285> in cluster <slac> Done

Job <4FGL_J1958.0-3845_daily_bin285> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 24 00:01:56 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 00:01:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 24 00:01:59 2021
Terminated at Fri Sep 24 00:18:31 2021
Results reported at Fri Sep 24 00:18:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.0-3845_daily_bin285 299.503 -38.7547 313200001 313459201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1958.0-3845 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   871.20 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             321.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            995 sec.

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

