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


Performing analysis on: 4FGL_J1958.0-3845_daily_bin1076
RA = 299.503, Dec = -38.7547
tmin = 518227201, tmax = 518486401
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='417745', job_status='RUN', time_executed='2021-09-24 00:19:05.815032', time_epoch_executed='1632467945.82' WHERE source_name='4FGL J1958.0-3845' and cadence='daily' and bin_id='1076'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/417745

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/417745/ft1_4FGL_J1958.0-3845_daily_bin1076.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/417745/ft2_4FGL_J1958.0-3845_daily_bin1076.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/417745/ft1_4FGL_J1958.0-3845_daily_bin1076.fits outfile=/scratch/kocevski/417745/ft1_filteredMKT_4FGL_J1958.0-3845_daily_bin1076.fits ra=299.503 dec=-38.7547 rad=12.0 tmin=518227201.0 tmax=518486401.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.61
user 3.40
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/417745/ft2_4FGL_J1958.0-3845_daily_bin1076.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/417745/ft1_filteredMKT_4FGL_J1958.0-3845_daily_bin1076.fits evtable="EVENTS" outfile="/scratch/kocevski/417745/ft1_filtered_4FGL_J1958.0-3845_daily_bin1076.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/417745/ft1_filtered_4FGL_J1958.0-3845_daily_bin1076.fits" evtable="EVENTS" scfile=/scratch/kocevski/417745/ft2_4FGL_J1958.0-3845_daily_bin1076.fits sctable="SC_DATA" outfile=/scratch/kocevski/417745/ltcube_518227201_518486401_4FGL_J1958.0-3845_daily_bin1076.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/417745/ft2_4FGL_J1958.0-3845_daily_bin1076.fits
.....................!
real 12.11
user 11.80
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/417745/ft1_filtered_4FGL_J1958.0-3845_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/417745/ft2_4FGL_J1958.0-3845_daily_bin1076.fits sctable="SC_DATA" expcube=/scratch/kocevski/417745/ltcube_518227201_518486401_4FGL_J1958.0-3845_daily_bin1076.fits outfile=/scratch/kocevski/417745/expmap_518227201_518486401_4FGL_J1958.0-3845_daily_bin1076.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/417745/ltcube_518227201_518486401_4FGL_J1958.0-3845_daily_bin1076.fits
.....................!
real 189.53
user 184.89
sys 4.26

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/417745/ft1_filtered_4FGL_J1958.0-3845_daily_bin1076.fits scfile=/scratch/kocevski/417745/ft2_4FGL_J1958.0-3845_daily_bin1076.fits outfile=/scratch/kocevski/417745/cmap_518227201_518486401_4FGL_J1958.0-3845_daily_bin1076.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/417745/ft1_filtered_4FGL_J1958.0-3845_daily_bin1076.fits scfile=/scratch/kocevski/417745/ft2_4FGL_J1958.0-3845_daily_bin1076.fits outfile=/scratch/kocevski/417745/cmap_HighResolution_518227201_518486401_4FGL_J1958.0-3845_daily_bin1076.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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/417745/ft1_filtered_4FGL_J1958.0-3845_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/417745/ft2_4FGL_J1958.0-3845_daily_bin1076.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/417745/Model_4FGL_J1958.0-3845_daily_bin1076.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/417745/ft1_filtered_4FGL_J1958.0-3845_daily_bin1076.fits....................!
real 82.47
user 81.05
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/417745/ft1_filtered_4FGL_J1958.0-3845_daily_bin1076.fits', '/scratch/kocevski/417745/ft2_4FGL_J1958.0-3845_daily_bin1076.fits', expMap='/scratch/kocevski/417745/expmap_518227201_518486401_4FGL_J1958.0-3845_daily_bin1076.fits', expCube='/scratch/kocevski/417745/ltcube_518227201_518486401_4FGL_J1958.0-3845_daily_bin1076.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/417745/Model_4FGL_J1958.0-3845_daily_bin1076.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/417745/ft1_filtered_4FGL_J1958.0-3845_daily_bin1076.fits
Spacecraft file(s): /scratch/kocevski/417745/ft2_4FGL_J1958.0-3845_daily_bin1076.fits
Exposure map: /scratch/kocevski/417745/expmap_518227201_518486401_4FGL_J1958.0-3845_daily_bin1076.fits
Exposure cube: /scratch/kocevski/417745/ltcube_518227201_518486401_4FGL_J1958.0-3845_daily_bin1076.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/417745/Model_4FGL_J1958.0-3845_daily_bin1076.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) = 9627.10076925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5629       1.0000         .10000E-03   10000.    
     2 'norm      '    .81967       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5356       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1603       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3020       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.1343       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.6052       1.0000         .10000E-03   10000.    
    17 'norm      '    .15738E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    22.643       1.0000         .10000E-03   10000.    
    20 'Prefactor '    53.184       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17105E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1844       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0124       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=   9626.982     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2570 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5612        5.2770        .11093E-06   -.29047E-04
   2  norm          .81844        1.4511        .82191E-06    .17113E-02
   3  Prefactor     .10000E-03    5.5450        .26192E-06** at limit **
   4  Prefactor     .10000E-03    52.642        .53731E-06** at limit **
   5  Prefactor     8.5376        8.8177        .26277E-05   -.16210E-03
   6  Prefactor     .10000E-03    10.035       -.21037E-06** at limit **
   7  Prefactor     .10000E-03    7.1621        .14501E-06** at limit **
   8  norm          .10000E-03    5.4451        .11944E-07** at limit **
   9  Prefactor     4.1589        5.7044        .56628E-06   -.82590E-04
  10  norm          1.3019        .92102        .59878E-07   -.12282E-03
  11  Prefactor     .10000E-03    21.185        .17941E-06** at limit **
  12  norm          .10000E-03    3.8564        .52554E-07** at limit **
  13  norm          .10000E-03    9.5689        .16652E-06** at limit **
  14  norm          4.1344        1.9300        .80907E-08   -.24584E-04
  15  Prefactor     .10000E-03    14.687        .77138E-08** at limit **
  16  norm          7.6065        3.7233        .21426E-07   -.17620E-04
  17  norm          .10035E-03    6.1926        .14413E-05** at limit **
  18  Prefactor     .10000E-03    30.215       -.14119E-06** at limit **
  19  norm          22.653        21.314        .29936E-06    .19637E-04
  20  Prefactor     53.120        41.974       -.71203E-06   -.21450E-03
  21  Prefactor     .10000E-03    65.991       -.13398E-05** at limit **
  22  Normalizat    1.1835        .25484        .94123E-06   -.21528E-03
  23  Prefactor     1.0127        .84427E-01   -.97822E-06   -.16633E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.56119
  norm       = 0.81844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.53759
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.15886
  norm       = 1.30194
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.13442
  Prefactor  = 0.0001
  norm       = 7.60648
  norm       = 0.00010035
  Prefactor  = 0.0001
  norm       = 22.6526
  Prefactor  = 53.1202
  Prefactor  = 0.0001
  Normalizat = 1.18353
  Prefactor  = 1.01267
 **********
 **   18 **HESSE 
 **********

 FCN=   9626.982     FROM HESSE     STATUS=OK           370 CALLS     2940 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5612        5.2822        .17034E-03   -1.5236    
   2  norm          .81844        1.2536        .17429E-02   -1.5527    
   3  Prefactor     .10000E-03    5.7125        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    52.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.5376        8.4588        .68604E-03   -1.5124    
   6  Prefactor     .10000E-03    10.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.2114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.4463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1589        5.6898        .19761E-03   -1.5300    
  10  norm          1.3019        .90915        .76247E-04   -1.5480    
  11  Prefactor     .10000E-03    21.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.8750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.6279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.1344        1.9302        .90522E-04   -1.5301    
  15  Prefactor     .10000E-03    14.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.6065        3.7245        .12845E-03   -1.5156    
  17  norm          .10035E-03    54.872        .45644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          22.653        21.326        .84176E-04   -1.4756    
  20  Prefactor     53.120        42.183        .54998E-04   -1.4249    
  21  Prefactor     .10000E-03    65.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1835        .28927        .43906E-03   -.87113    
  23  Prefactor     1.0127        .95925E-01    .15814E-03   -.92308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84743e-09
Minuit parameter uncertainties:
  1  5.28268
  2  1.25369
  3  7.60534e-06
  4  0.000207431
  5  8.45998
  6  5.07899e-05
  7  1.08542e-05
  8  6.73865e-07
  9  5.69059
  10  0.909155
  11  4.99237e-05
  12  1.35026e-06
  13  2.65068e-05
  14  1.9302
  15  1.70825e-06
  16  3.72464
  17  0.00877888
  18  0.000136432
  19  21.3335
  20  42.2067
  21  9.47502e-05
  22  0.289663
  23  0.0959412
Done.

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

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  1.302e+00  9.092e-01  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:  1.013e+00  9.594e-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.184e+00  2.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.03
Ra Dec: 299.503 -38.755
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 5.37e-08 +/- 3.75e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.50e-05

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) = 9626.88262855
delta logL = 0.0998396188879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9626.87537207
delta logL = 0.107096092423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2069       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4892       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0153       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.

 FCN=   9626.875     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2069        15.814        .10308E-01    .51565E-04
   2  alpha         2.4892        3.5143        .41152        .56810E-04
   3  Normalizat    1.1670        .10004        .99686E-01   -.33364E-04
   4  Prefactor     1.0153        .29245E-01    .42648E-01   -.19890E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.20687
  alpha      = 2.48919
  Normalizat = 1.16696
  Prefactor  = 1.01526
 **********
 **   18 **HESSE 
 **********

 FCN=   9626.875     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2069        .90728        .69776E-04   -1.5488    
   2  alpha         2.4892        .68726        .19098E-01   -.43250E-02
   3  Normalizat    1.1670        .28234        .44172E-03   -.87630    
   4  Prefactor     1.0153        .94795E-01    .15795E-03   -.92222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.18046e-11
Minuit parameter uncertainties:
  1  0.907291
  2  0.696227
  3  0.282706
  4  0.0948106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/417745': 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) = 9626.87537206
delta logL = 0.107096108974

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  1.207e+00  9.073e-01  1.000e-04  1.000e+04 ( 1.000e-11)
384        alpha:  2.489e+00  6.962e-01  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:  1.015e+00  9.481e-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.167e+00  2.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.24
Ra Dec: 299.503 -38.755
Photon Index (Free Index): 2.49 +/- 0.70
Photon Flux (Free Index): 6.95e-08 +/- 5.57e-08
Energy Flux (Free Index): 2.09e-05 +/- 1.40e-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/417745/cmap_HighResolution_518227201_518486401_4FGL_J1958.0-3845_daily_bin1076.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.37e-08', energy_flux2='2.09e-05', photon_flux_error='3.75e-08', dlogl='1.07e-01', energy_flux='2.15e-05', photon_flux2='6.95e-08', job_status='DONE', time_completed='2021-09-24 00:32:31.885197', photon_index_error2='0.70', photon_index2='2.49', ts='4.03', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='1.18', time_epoch_completed='1632468751.89', return_code='0', job_id='417745', GAL2='1.02', EG2='1.17', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='5.57e-08', ts2='4.24', photon_index='2.18' WHERE bin_id='1076' AND source_name='4FGL J1958.0-3845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:32:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 417745: <4FGL_J1958.0-3845_daily_bin1076> in cluster <slac> Done

Job <4FGL_J1958.0-3845_daily_bin1076> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 24 00:16:41 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 00:16:44 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:16:44 2021
Terminated at Fri Sep 24 00:32:32 2021
Results reported at Fri Sep 24 00:32:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.0-3845_daily_bin1076 299.503 -38.7547 518227201 518486401 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 :                                   805.00 sec.
    Max Memory :                                 1228 MB
    Average Memory :                             350.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            951 sec.

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

