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


Performing analysis on: 4FGL_J1958.3-3010_daily_bin814
RA = 299.581, Dec = -30.181
tmin = 450316801, tmax = 450576001
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='437687', job_status='RUN', time_executed='2021-09-24 01:28:54.953057', time_epoch_executed='1632472134.95' WHERE source_name='4FGL J1958.3-3010' and cadence='daily' and bin_id='814'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437687

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437687/ft1_4FGL_J1958.3-3010_daily_bin814.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437687/ft2_4FGL_J1958.3-3010_daily_bin814.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437687/ft1_4FGL_J1958.3-3010_daily_bin814.fits outfile=/scratch/kocevski/437687/ft1_filteredMKT_4FGL_J1958.3-3010_daily_bin814.fits ra=299.581 dec=-30.181 rad=12.0 tmin=450316801.0 tmax=450576001.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.97
user 3.76
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437687/ft1_filtered_4FGL_J1958.3-3010_daily_bin814.fits" evtable="EVENTS" scfile=/scratch/kocevski/437687/ft2_4FGL_J1958.3-3010_daily_bin814.fits sctable="SC_DATA" outfile=/scratch/kocevski/437687/ltcube_450316801_450576001_4FGL_J1958.3-3010_daily_bin814.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/437687/ft2_4FGL_J1958.3-3010_daily_bin814.fits
.....................!
real 12.04
user 11.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437687/ft1_filtered_4FGL_J1958.3-3010_daily_bin814.fits evtable="EVENTS" scfile=/scratch/kocevski/437687/ft2_4FGL_J1958.3-3010_daily_bin814.fits sctable="SC_DATA" expcube=/scratch/kocevski/437687/ltcube_450316801_450576001_4FGL_J1958.3-3010_daily_bin814.fits outfile=/scratch/kocevski/437687/expmap_450316801_450576001_4FGL_J1958.3-3010_daily_bin814.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/437687/ltcube_450316801_450576001_4FGL_J1958.3-3010_daily_bin814.fits
.....................!
real 189.59
user 185.07
sys 4.06

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/437687/ft1_filtered_4FGL_J1958.3-3010_daily_bin814.fits scfile=/scratch/kocevski/437687/ft2_4FGL_J1958.3-3010_daily_bin814.fits outfile=/scratch/kocevski/437687/cmap_450316801_450576001_4FGL_J1958.3-3010_daily_bin814.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437687/ft1_filtered_4FGL_J1958.3-3010_daily_bin814.fits scfile=/scratch/kocevski/437687/ft2_4FGL_J1958.3-3010_daily_bin814.fits outfile=/scratch/kocevski/437687/cmap_HighResolution_450316801_450576001_4FGL_J1958.3-3010_daily_bin814.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .12406       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.187       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.646       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.503       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1862       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.4758       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2796       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .91868       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0884       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=   9616.543     FROM MIGRAD    STATUS=CONVERGED    325 CALLS     1588 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.054       -.21018E-05** at limit **
   2  Prefactor     .17694        3.9077       -.14556E-05    .12146E-03
   3  Prefactor     27.205        88.704        .29937E-04   -.29183E-04
   4  Prefactor     14.647        10.510        .12575E-06   -.35231E-04
   5  Prefactor     .10000E-03    20.585        .32554E-05** at limit **
   6  norm          .10000E-03    7.7011        .21727E-06** at limit **
   7  Prefactor     13.504        6.4409       -.89931E-06   -.25613E-02
   8  norm          1.1864        .99007        .54271E-07   -.92652E-03
   9  Prefactor     .10000E-03    7.1823        .16138E-06** at limit **
  10  Prefactor     .10000E-03    11.983        .78088E-06** at limit **
  11  norm          5.4791        11.303        .95965E-06   -.10260E-03
  12  Prefactor     9.2823        36.826        .10113E-04   -.45461E-04
  13  norm          .10000E-03    12.635        .14502E-05** at limit **
  14  Prefactor     .10000E-03    17.310       -.45461E-05** at limit **
  15  Prefactor     .10000E-03    1.9795        .20643E-06** at limit **
  16  Normalizat    .91877        .29420       -.26932E-05    .78889E-04
  17  Prefactor     1.0883        .87344E-01    .19010E-06    .45904E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.176943
  Prefactor  = 27.2047
  Prefactor  = 14.6471
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.504
  norm       = 1.18644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.47906
  Prefactor  = 9.28232
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.918769
  Prefactor  = 1.08827
 **********
 **   18 **HESSE 
 **********

 FCN=   9616.543     FROM HESSE     STATUS=OK           221 CALLS     1809 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.386        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .17694        36.571        .36168E-02   -1.5624    
   3  Prefactor     27.205        86.543        .76833E-04   -1.4664    
   4  Prefactor     14.647        10.499        .10466E-03   -1.4942    
   5  Prefactor     .10000E-03    20.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.7077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.504        6.9099        .54501E-03   -1.4973    
   8  norm          1.1864        .96579        .85466E-04   -1.5490    
   9  Prefactor     .10000E-03    7.1837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.4791        11.264        .17171E-03   -1.5240    
  12  Prefactor     9.2823        36.439        .13156E-03   -1.5099    
  13  norm          .10000E-03    12.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.9854        .13472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .91877        .32551        .52625E-03   -.95804    
  17  Prefactor     1.0883        .99411E-01    .14914E-03   -.89842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20285e-09
Minuit parameter uncertainties:
  1  1.51226e-05
  2  5.08938
  3  86.9464
  4  10.4999
  5  7.62139e-05
  6  3.24536e-06
  7  6.91029
  8  0.965807
  9  2.76829e-06
  10  8.48421e-06
  11  11.2679
  12  36.5263
  13  6.18706e-06
  14  0.000118512
  15  1.43686e-06
  16  0.326206
  17  0.0994276
Done.

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

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  1.000e-04  2.768e-06  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:  1.088e+00  9.943e-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:  9.188e-01  3.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/437687/likelihoodResults_450316801_450576001_4FGL_J1958.3-3010_daily_bin814.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): 102
logL (Free Index) = 9616.5438965
delta logL = -0.000662126780298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9616.54323427
delta logL = 1.08560925582e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8218       1.0000          .0000       10.000    
     3 'Normalizat'    .91878       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0883       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9616.543     FROM MIGRAD    STATUS=FAILED        90 CALLS      245 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10197E-03    63.922        .18142E-02** at limit **
   2  Index         1.7527        5.5226        .50000        .24190E-04
   3  Normalizat    .91877        .20097E-01    .52625E-03   -.21603E-06
   4  Prefactor     1.0883        .61987E-02    .14914E-03   -.12196E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9616.543     FROM SIMPLEX   STATUS=UNCHANGED    123 CALLS      368 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10197E-03    63.922        .51005E-03** at limit **
   2  Index         1.7527        5.5226        .34194E-03    .24190E-04
   3  Normalizat    .91877        .20097E-01    .65471E-05   -.21603E-06
   4  Prefactor     1.0883        .61987E-02    .13684E-05   -.12196E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9616.543     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      418 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    101.60        .36285E-02** at limit **
   2  Index         1.2522        5.5645        .50000        .49567E-08
   3  Normalizat    .91877        .22220E-01    .21050E-04    .33053E-04
   4  Prefactor     1.0883        .68538E-02    .59656E-05    .11434E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.25217
  Normalizat = 0.918771
  Prefactor  = 1.08827
 **********
 **   18 **HESSE 
 **********

 FCN=   9616.543     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      447 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    473.20        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2522        9.3714        .50000       -.84741    
   3  Normalizat    .91877        .50341E-01    .42100E-05   -.95804    
   4  Prefactor     1.0883        .15528E-01    .11931E-05   -.89843    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.23977e-09
Minuit parameter uncertainties:
  1  0.000767237
  2  1135.88
  3  0.0503433
  4  0.0155285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437687': 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) = 9616.54323223
delta logL = 2.14962892642e-06

Extracting fit parameters...

4FGL J1958.3-3010
   Spectrum: PowerLaw
457    Prefactor:  1.000e-04  7.672e-04  1.000e-04  1.000e+04 ( 1.000e-14)
458        Index:  1.252e+00  1.136e+03  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:  1.088e+00  1.553e-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:  9.188e-01  5.034e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/437687/cmap_HighResolution_450316801_450576001_4FGL_J1958.3-3010_daily_bin814.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-03', job_status='DONE', photon_flux_upper_limit='4.50e-08', time_completed='2021-09-24 01:41:51.772000', job_id='437687', GAL2='1.09', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632472911.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.15e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='814' AND source_name='4FGL J1958.3-3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 01:41:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 437687: <4FGL_J1958.3-3010_daily_bin814> in cluster <slac> Done

Job <4FGL_J1958.3-3010_daily_bin814> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 24 01:26:35 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 01:26:38 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:26:38 2021
Terminated at Fri Sep 24 01:41:52 2021
Results reported at Fri Sep 24 01:41:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.3-3010_daily_bin814 299.581 -30.181 450316801 450576001 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 :                                   774.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

