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


Performing analysis on: 4FGL_J1958.3-3010_daily_bin549
RA = 299.581, Dec = -30.181
tmin = 381628801, tmax = 381888001
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='435188', job_status='RUN', time_executed='2021-09-24 01:19:58.960524', time_epoch_executed='1632471598.96' WHERE source_name='4FGL J1958.3-3010' and cadence='daily' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435188

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435188/ft1_4FGL_J1958.3-3010_daily_bin549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435188/ft2_4FGL_J1958.3-3010_daily_bin549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435188/ft1_4FGL_J1958.3-3010_daily_bin549.fits outfile=/scratch/kocevski/435188/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin549.fits ra=299.581 dec=-30.181 rad=12.0 tmin=381628801.0 tmax=381888001.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.95
user 3.76
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/435188/ft2_4FGL_J1958.3-3010_daily_bin549.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/435188/ft2_4FGL_J1958.3-3010_daily_bin549.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/435188/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin549.fits evtable="EVENTS" outfile="/scratch/kocevski/435188/ft1_filtered_4FGL_J1958.3-3010_daily_bin549.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/435188/ft1_filtered_4FGL_J1958.3-3010_daily_bin549.fits" evtable="EVENTS" scfile=/scratch/kocevski/435188/ft2_4FGL_J1958.3-3010_daily_bin549.fits sctable="SC_DATA" outfile=/scratch/kocevski/435188/ltcube_381628801_381888001_4FGL_J1958.3-3010_daily_bin549.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/435188/ft2_4FGL_J1958.3-3010_daily_bin549.fits
.....................!
real 11.98
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435188/ft1_filtered_4FGL_J1958.3-3010_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/435188/ft2_4FGL_J1958.3-3010_daily_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/435188/ltcube_381628801_381888001_4FGL_J1958.3-3010_daily_bin549.fits outfile=/scratch/kocevski/435188/expmap_381628801_381888001_4FGL_J1958.3-3010_daily_bin549.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/435188/ltcube_381628801_381888001_4FGL_J1958.3-3010_daily_bin549.fits
.....................!
real 191.53
user 185.67
sys 5.54

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

Setting source of interest to:
4FGL J1958.3-3010 @ 299.581 -30.181

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/435188/ft1_filtered_4FGL_J1958.3-3010_daily_bin549.fits scfile=/scratch/kocevski/435188/ft2_4FGL_J1958.3-3010_daily_bin549.fits outfile=/scratch/kocevski/435188/cmap_381628801_381888001_4FGL_J1958.3-3010_daily_bin549.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.581 yref=-30.181 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/435188/ft1_filtered_4FGL_J1958.3-3010_daily_bin549.fits scfile=/scratch/kocevski/435188/ft2_4FGL_J1958.3-3010_daily_bin549.fits outfile=/scratch/kocevski/435188/cmap_HighResolution_381628801_381888001_4FGL_J1958.3-3010_daily_bin549.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.581 yref=-30.181 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/435188/ft1_filtered_4FGL_J1958.3-3010_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/435188/ft2_4FGL_J1958.3-3010_daily_bin549.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/435188/Model_4FGL_J1958.3-3010_daily_bin549.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/435188/ft1_filtered_4FGL_J1958.3-3010_daily_bin549.fits.....................!
real 79.30
user 78.01
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/435188/ft1_filtered_4FGL_J1958.3-3010_daily_bin549.fits', '/scratch/kocevski/435188/ft2_4FGL_J1958.3-3010_daily_bin549.fits', expMap='/scratch/kocevski/435188/expmap_381628801_381888001_4FGL_J1958.3-3010_daily_bin549.fits', expCube='/scratch/kocevski/435188/ltcube_381628801_381888001_4FGL_J1958.3-3010_daily_bin549.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/435188/Model_4FGL_J1958.3-3010_daily_bin549.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1958.3-3010'

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  6.150e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
458        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
459        Scale:  4.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/435188/ft1_filtered_4FGL_J1958.3-3010_daily_bin549.fits
Spacecraft file(s): /scratch/kocevski/435188/ft2_4FGL_J1958.3-3010_daily_bin549.fits
Exposure map: /scratch/kocevski/435188/expmap_381628801_381888001_4FGL_J1958.3-3010_daily_bin549.fits
Exposure cube: /scratch/kocevski/435188/ltcube_381628801_381888001_4FGL_J1958.3-3010_daily_bin549.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/435188/Model_4FGL_J1958.3-3010_daily_bin549.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) = 8553.65148268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    159.00       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11034E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .93595       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.455       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.202       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6725       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5068       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .92938       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8553.645     FROM MIGRAD    STATUS=CONVERGED    339 CALLS     1605 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6905       -.10203E-06** at limit **
   2  Prefactor     .10000E-03    4.8003       -.71047E-07** at limit **
   3  Prefactor     159.00        101.93       -.71956E-06    .19974E-04
   4  Prefactor     .10000E-03    60.699        .11087E-04** at limit **
   5  Prefactor     .10000E-03    13.195       -.56167E-06** at limit **
   6  norm          .10000E-03    41.982        .19190E-05** at limit **
   7  Prefactor     .10000E-03    1.9779        .44425E-07** at limit **
   8  norm          .93600        .92658       -.97593E-06   -.33949E-03
   9  Prefactor     15.453        30.455       -.29436E-06    .11317E-04
  10  Prefactor     .10000E-03    13.632        .58202E-06** at limit **
  11  norm          .10000E-03    4.7354        .10295E-06** at limit **
  12  Prefactor     27.208        58.091       -.60527E-07    .68277E-05
  13  norm          .10000E-03    10.828        .78701E-07** at limit **
  14  Prefactor     .10000E-03    79.469        .29962E-05** at limit **
  15  Prefactor     4.6671        8.0615       -.58414E-06    .60017E-04
  16  Normalizat    1.5064        .29824        .22636E-05   -.11478E-03
  17  Prefactor     .92948        .85349E-01   -.66834E-09    .43669E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 158.998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.936002
  Prefactor  = 15.4527
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.208
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.66712
  Normalizat = 1.50645
  Prefactor  = 0.929483
 **********
 **   18 **HESSE 
 **********

 FCN=   8553.645     FROM HESSE     STATUS=OK           221 CALLS     1826 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.9082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     159.00        101.94        .31978E-04   -1.3179    
   4  Prefactor     .10000E-03    58.931        .48481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    43.132        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9897        .12698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .93600        .92837        .94325E-03   -1.5514    
   9  Prefactor     15.453        30.477        .10188E-03   -1.4922    
  10  Prefactor     .10000E-03    13.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.7407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.208        58.154        .76812E-04   -1.4664    
  13  norm          .10000E-03    10.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    79.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6671        8.0598        .18618E-03   -1.5276    
  16  Normalizat    1.5064        .35077        .43601E-03   -.77597    
  17  Prefactor     .92948        .10221        .15790E-03   -.95118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76543e-09
Minuit parameter uncertainties:
  1  7.34469e-06
  2  2.51036e-05
  3  102.055
  4  9.83913e-05
  5  8.12675e-05
  6  0.000184514
  7  5.4074e-06
  8  0.928381
  9  30.5075
  10  3.25189e-05
  11  3.50677e-06
  12  58.2758
  13  2.78424e-05
  14  0.00034683
  15  8.06162
  16  0.351337
  17  0.102227
Done.

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

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  1.545e+01  3.051e+01  1.000e-04  1.000e+04 ( 1.000e-14)
458        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
459        Scale:  4.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
749    Prefactor:  9.295e-01  1.022e-01  0.000e+00  1.000e+01 ( 1.000e+00)
750        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
751        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
748   Normalization:  1.506e+00  3.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.31
Ra Dec: 299.581 -30.181
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/435188/likelihoodResults_381628801_381888001_4FGL_J1958.3-3010_daily_bin549.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) = 8553.48683835
delta logL = 0.157914301544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8553.48399702
delta logL = 0.160755627836

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4726       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3256       1.0000          .0000       10.000    
     3 'Normalizat'    1.4926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92951       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8553.484     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      330 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4573        31.511        .13021E-03    .38417E-05
   2  Index         2.3268        1.2313        .84224E-02    .37538E-04
   3  Normalizat    1.4924        .34526        .43762E-03    .32733E-05
   4  Prefactor     .92972        .10173        .15785E-03    .69141E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.45726
  Index      = 2.32676
  Normalizat = 1.4924
  Prefactor  = 0.929722
 **********
 **   18 **HESSE 
 **********

 FCN=   8553.484     FROM HESSE     STATUS=OK            25 CALLS      355 TOTAL
                     EDM=   .79E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4573        21.833        .52084E-05   -1.5093    
   2  Index         2.3268        .85889        .33690E-03   -.56409    
   3  Normalizat    1.4924        .34381        .17505E-04   -.77992    
   4  Prefactor     .92972        .10148        .63140E-05   -.95110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.90959e-14
Minuit parameter uncertainties:
  1  21.8513
  2  0.864922
  3  0.344353
  4  0.101499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435188': 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) = 8553.48398942
delta logL = 0.1607632329

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  9.457e+00  2.185e+01  1.000e-04  1.000e+04 ( 1.000e-14)
458        Index:  2.327e+00  8.649e-01  0.000e+00  1.000e+01 (-1.000e+00)
459        Scale:  4.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
749    Prefactor:  9.297e-01  1.015e-01  0.000e+00  1.000e+01 ( 1.000e+00)
750        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
751        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
748   Normalization:  1.492e+00  3.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
Ra Dec: 299.581 -30.181

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/435188/cmap_HighResolution_381628801_381888001_4FGL_J1958.3-3010_daily_bin549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.64e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-24 01:32:04.175213', job_id='435188', GAL2='0.93', fit_tolerance='1e-08', EG2='1.49', EG='1.51', time_epoch_completed='1632472324.18', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.61e-01', ts2='0.63', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='549' AND source_name='4FGL J1958.3-3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 01:32:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 435188: <4FGL_J1958.3-3010_daily_bin549> in cluster <slac> Done

Job <4FGL_J1958.3-3010_daily_bin549> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Sep 24 01:16:56 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 01:17:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 24 01:17:00 2021
Terminated at Fri Sep 24 01:32:05 2021
Results reported at Fri Sep 24 01:32:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.3-3010_daily_bin549 299.581 -30.181 381628801 381888001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1958.3-3010 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   725.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            909 sec.

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

