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


Performing analysis on: 4FGL_J1958.3-3010_daily_bin1660
RA = 299.581, Dec = -30.181
tmin = 669600001, tmax = 669859201
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='993062', job_status='RUN', time_executed='2022-03-25 00:38:59.894645', time_epoch_executed='1648193939.89' WHERE source_name='4FGL J1958.3-3010' and cadence='daily' and bin_id='1660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993062

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993062/ft1_4FGL_J1958.3-3010_daily_bin1660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993062/ft2_4FGL_J1958.3-3010_daily_bin1660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993062/ft1_4FGL_J1958.3-3010_daily_bin1660.fits outfile=/scratch/kocevski/993062/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin1660.fits ra=299.581 dec=-30.181 rad=12.0 tmin=669600001.0 tmax=669859201.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 4.52
user 4.31
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993062/ft2_4FGL_J1958.3-3010_daily_bin1660.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/993062/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin1660.fits evtable="EVENTS" outfile="/scratch/kocevski/993062/ft1_filtered_4FGL_J1958.3-3010_daily_bin1660.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 815

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993062/ft1_filtered_4FGL_J1958.3-3010_daily_bin1660.fits" evtable="EVENTS" scfile=/scratch/kocevski/993062/ft2_4FGL_J1958.3-3010_daily_bin1660.fits sctable="SC_DATA" outfile=/scratch/kocevski/993062/ltcube_669600001_669859201_4FGL_J1958.3-3010_daily_bin1660.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/993062/ft2_4FGL_J1958.3-3010_daily_bin1660.fits
.....................!
real 11.92
user 11.55
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993062/ft1_filtered_4FGL_J1958.3-3010_daily_bin1660.fits evtable="EVENTS" scfile=/scratch/kocevski/993062/ft2_4FGL_J1958.3-3010_daily_bin1660.fits sctable="SC_DATA" expcube=/scratch/kocevski/993062/ltcube_669600001_669859201_4FGL_J1958.3-3010_daily_bin1660.fits outfile=/scratch/kocevski/993062/expmap_669600001_669859201_4FGL_J1958.3-3010_daily_bin1660.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/993062/ltcube_669600001_669859201_4FGL_J1958.3-3010_daily_bin1660.fits
.....................!
real 191.11
user 185.66
sys 5.14

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/993062/ft1_filtered_4FGL_J1958.3-3010_daily_bin1660.fits scfile=/scratch/kocevski/993062/ft2_4FGL_J1958.3-3010_daily_bin1660.fits outfile=/scratch/kocevski/993062/cmap_669600001_669859201_4FGL_J1958.3-3010_daily_bin1660.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/993062/ft1_filtered_4FGL_J1958.3-3010_daily_bin1660.fits scfile=/scratch/kocevski/993062/ft2_4FGL_J1958.3-3010_daily_bin1660.fits outfile=/scratch/kocevski/993062/cmap_HighResolution_669600001_669859201_4FGL_J1958.3-3010_daily_bin1660.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/993062/ft1_filtered_4FGL_J1958.3-3010_daily_bin1660.fits evtable="EVENTS" scfile=/scratch/kocevski/993062/ft2_4FGL_J1958.3-3010_daily_bin1660.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993062/Model_4FGL_J1958.3-3010_daily_bin1660.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/993062/ft1_filtered_4FGL_J1958.3-3010_daily_bin1660.fits.....................!
real 77.60
user 76.25
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/993062/ft1_filtered_4FGL_J1958.3-3010_daily_bin1660.fits', '/scratch/kocevski/993062/ft2_4FGL_J1958.3-3010_daily_bin1660.fits', expMap='/scratch/kocevski/993062/expmap_669600001_669859201_4FGL_J1958.3-3010_daily_bin1660.fits', expCube='/scratch/kocevski/993062/ltcube_669600001_669859201_4FGL_J1958.3-3010_daily_bin1660.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/993062/Model_4FGL_J1958.3-3010_daily_bin1660.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/993062/ft1_filtered_4FGL_J1958.3-3010_daily_bin1660.fits
Spacecraft file(s): /scratch/kocevski/993062/ft2_4FGL_J1958.3-3010_daily_bin1660.fits
Exposure map: /scratch/kocevski/993062/expmap_669600001_669859201_4FGL_J1958.3-3010_daily_bin1660.fits
Exposure cube: /scratch/kocevski/993062/ltcube_669600001_669859201_4FGL_J1958.3-3010_daily_bin1660.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/993062/Model_4FGL_J1958.3-3010_daily_bin1660.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) = 8837.74255842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7261       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8051       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3337       1.0000         .10000E-03   10000.    
     6 'norm      '    12.925       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4662       1.0000         .10000E-03   10000.    
     8 'norm      '    7.1895       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.950       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.877       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.3369       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.245       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2393       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .95238       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=   8837.739     FROM MIGRAD    STATUS=CONVERGED    330 CALLS     1575 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.4508       -.15718E-06** at limit **
   2  Prefactor     1.7261        2.3994       -.76478E-07   -.18826E-03
   3  Prefactor     .10000E-03    25.134       -.13959E-05** at limit **
   4  Prefactor     6.8049        7.9428        .31118E-05   -.31744E-03
   5  Prefactor     4.3183        77.843       -.24270E-04    .45789E-04
   6  norm          12.925        12.877        .76765E-07    .35824E-05
   7  Prefactor     1.4690        5.7182       -.25610E-05   -.89085E-03
   8  norm          7.1894        1.7674       -.57562E-07    .15413E-04
   9  Prefactor     19.941        25.639       -.23370E-06    .33669E-04
  10  Prefactor     .10000E-03    23.954        .14825E-05** at limit **
  11  norm          16.878        16.692       -.24123E-06   -.17077E-05
  12  Prefactor     .10000E-03    49.716        .53807E-06** at limit **
  13  norm          7.3358        14.175       -.66372E-06   -.30089E-04
  14  Prefactor     .10000E-03    125.29        .67471E-06** at limit **
  15  Prefactor     10.244        10.379       -.30109E-06   -.62305E-04
  16  Normalizat    1.2392        .30540        .48029E-06    .43426E-04
  17  Prefactor     .95237        .85380E-01    .32500E-06    .84358E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.72607
  Prefactor  = 0.0001
  Prefactor  = 6.80485
  Prefactor  = 4.3183
  norm       = 12.925
  Prefactor  = 1.46896
  norm       = 7.18939
  Prefactor  = 19.9411
  Prefactor  = 0.0001
  norm       = 16.8776
  Prefactor  = 0.0001
  norm       = 7.33582
  Prefactor  = 0.0001
  Prefactor  = 10.2439
  Normalizat = 1.23924
  Prefactor  = 0.952372
 **********
 **   18 **HESSE 
 **********

 FCN=   8837.739     FROM HESSE     STATUS=OK           227 CALLS     1802 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.4727        .17055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.7261        2.3823        .16695E-03   -1.5445    
   3  Prefactor     .10000E-03    25.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.8049        7.7420        .15381E-03   -1.5186    
   5  Prefactor     4.3183        75.229        .19350E-03   -1.5292    
   6  norm          12.925        12.880        .11142E-03   -1.4989    
   7  Prefactor     1.4690        6.6773        .35509E-03   -1.5466    
   8  norm          7.1894        1.7702        .58948E-04   -1.5172    
   9  Prefactor     19.941        25.572        .89673E-04   -1.4815    
  10  Prefactor     .10000E-03    24.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.878        16.708        .97492E-04   -1.4886    
  12  Prefactor     .10000E-03    49.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.3358        14.222        .14807E-03   -1.5166    
  14  Prefactor     .10000E-03    125.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.244        10.510        .12518E-03   -1.5068    
  16  Normalizat    1.2392        .36002        .46934E-03   -.85399    
  17  Prefactor     .95237        .10137        .15717E-03   -.94334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39093e-09
Minuit parameter uncertainties:
  1  4.35763e-07
  2  2.38245
  3  4.41084e-05
  4  7.74316
  5  36.1005
  6  12.8826
  7  6.26469
  8  1.77018
  9  25.5861
  10  5.94175e-05
  11  16.7131
  12  3.66893e-05
  13  14.2283
  14  9.74851e-06
  15  10.5119
  16  0.360749
  17  0.101389
Done.

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

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  1.994e+01  2.559e+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.524e-01  1.014e-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.239e+00  3.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.09
Ra Dec: 299.581 -30.181
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 2.20e-08 +/- 2.82e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 2.92e-05

TS (Fixed Index): 1.09
Ra Dec: 299.581 -30.181
Photon Flux Upper Limit: 9.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993062/likelihoodResults_669600001_669859201_4FGL_J1958.3-3010_daily_bin1660.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) = 8837.72214277
delta logL = 0.0170640418401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8837.71873663
delta logL = 0.0204701803268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.324       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6791       1.0000          .0000       10.000    
     3 'Normalizat'    1.2426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95249       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8837.719     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      268 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.329        30.530        .84775E-04    .21189E-04
   2  Index         1.6785        .86635        .16153E-01    .38469E-03
   3  Normalizat    1.2424        .32789        .46884E-03   -.31911E-04
   4  Prefactor     .95255        .98691E-01    .15716E-03   -.30962E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.3291
  Index      = 1.67846
  Normalizat = 1.24236
  Prefactor  = 0.952552
 **********
 **   18 **HESSE 
 **********

 FCN=   8837.719     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.329        29.910        .33910E-05   -1.4763    
   2  Index         1.6785        .85008        .32305E-02   -.72657    
   3  Normalizat    1.2424        .32807        .18754E-04   -.85304    
   4  Prefactor     .95255        .98774E-01    .62862E-05   -.94328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.52517e-12
Minuit parameter uncertainties:
  1  29.9301
  2  0.857591
  3  0.328617
  4  0.0987922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993062': 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) = 8837.71873614
delta logL = 0.0204706708973

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  2.233e+01  2.993e+01  1.000e-04  1.000e+04 ( 1.000e-14)
458        Index:  1.678e+00  8.576e-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.526e-01  9.879e-02  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.242e+00  3.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 299.581 -30.181
Photon Index (Free Index): 1.68 +/- 0.86
Photon Flux (Free Index): 1.63e-08 +/- 3.38e-08
Energy Flux (Free Index): 2.85e-05 +/- 4.93e-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/993062/cmap_HighResolution_669600001_669859201_4FGL_J1958.3-3010_daily_bin1660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.40e-03', comment='SUCCESS', photon_flux='2.20e-08', energy_flux2='2.85e-05', photon_flux_error='2.82e-08', dlogl='2.05e-02', energy_flux='2.28e-05', photon_flux2='1.63e-08', job_status='DONE', time_completed='2022-03-25 00:50:59.961434', photon_index_error2='0.86', photon_index2='1.68', ts='1.09', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.99e-08', energy_flux_error2='4.93e-05', EG='1.24', time_epoch_completed='1648194659.96', return_code='0', job_id='993062', GAL2='0.95', EG2='1.24', return_code2='0', energy_flux_error='2.92e-05', photon_flux_error2='3.38e-08', ts2='1.13', photon_index='1.85' WHERE bin_id='1660' AND source_name='4FGL J1958.3-3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 25 00:50:59 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 993062: <4FGL_J1958.3-3010_daily_bin1660> in cluster <slac> Done

Job <4FGL_J1958.3-3010_daily_bin1660> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Mar 25 00:35:23 2022
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 25 00:35:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 25 00:35:24 2022
Terminated at Fri Mar 25 00:51:00 2022
Results reported at Fri Mar 25 00:51:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.3-3010_daily_bin1660 299.581 -30.181 669600001 669859201 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 :                                   722.26 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             286.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            937 sec.

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

