/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 4 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 = 7463
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1958.0-3845_daily_bin439
RA = 299.503, Dec = -38.7547
tmin = 353116801, tmax = 353376001
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='412860', job_status='RUN', time_executed='2021-09-24 00:02:32.838592', time_epoch_executed='1632466952.84' WHERE source_name='4FGL J1958.0-3845' and cadence='daily' and bin_id='439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412860

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412860/ft1_4FGL_J1958.0-3845_daily_bin439.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412860/ft2_4FGL_J1958.0-3845_daily_bin439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412860/ft1_4FGL_J1958.0-3845_daily_bin439.fits outfile=/scratch/kocevski/412860/ft1_filteredMKT_4FGL_J1958.0-3845_daily_bin439.fits ra=299.503 dec=-38.7547 rad=12.0 tmin=353116801.0 tmax=353376001.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.42
user 3.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412860/ft2_4FGL_J1958.0-3845_daily_bin439.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/412860/ft1_filteredMKT_4FGL_J1958.0-3845_daily_bin439.fits evtable="EVENTS" outfile="/scratch/kocevski/412860/ft1_filtered_4FGL_J1958.0-3845_daily_bin439.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412860/ft1_filtered_4FGL_J1958.0-3845_daily_bin439.fits" evtable="EVENTS" scfile=/scratch/kocevski/412860/ft2_4FGL_J1958.0-3845_daily_bin439.fits sctable="SC_DATA" outfile=/scratch/kocevski/412860/ltcube_353116801_353376001_4FGL_J1958.0-3845_daily_bin439.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/412860/ft2_4FGL_J1958.0-3845_daily_bin439.fits
.....................!
real 11.94
user 11.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412860/ft1_filtered_4FGL_J1958.0-3845_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/412860/ft2_4FGL_J1958.0-3845_daily_bin439.fits sctable="SC_DATA" expcube=/scratch/kocevski/412860/ltcube_353116801_353376001_4FGL_J1958.0-3845_daily_bin439.fits outfile=/scratch/kocevski/412860/expmap_353116801_353376001_4FGL_J1958.0-3845_daily_bin439.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/412860/ltcube_353116801_353376001_4FGL_J1958.0-3845_daily_bin439.fits
.....................!
real 190.17
user 185.40
sys 4.46

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/412860/ft1_filtered_4FGL_J1958.0-3845_daily_bin439.fits scfile=/scratch/kocevski/412860/ft2_4FGL_J1958.0-3845_daily_bin439.fits outfile=/scratch/kocevski/412860/cmap_353116801_353376001_4FGL_J1958.0-3845_daily_bin439.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/412860/ft1_filtered_4FGL_J1958.0-3845_daily_bin439.fits scfile=/scratch/kocevski/412860/ft2_4FGL_J1958.0-3845_daily_bin439.fits outfile=/scratch/kocevski/412860/cmap_HighResolution_353116801_353376001_4FGL_J1958.0-3845_daily_bin439.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412860/ft1_filtered_4FGL_J1958.0-3845_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/412860/ft2_4FGL_J1958.0-3845_daily_bin439.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412860/Model_4FGL_J1958.0-3845_daily_bin439.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/412860/ft1_filtered_4FGL_J1958.0-3845_daily_bin439.fits.....................!
real 80.53
user 79.23
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.1652       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6433       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .92552       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16148E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.502       1.0000         .10000E-03   10000.    
     8 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2860       1.0000         .10000E-03   10000.    
    12 'norm      '    .10166E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    26.205       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1199       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5727       1.0000         .10000E-03   10000.    
    17 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .94717E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    62.620       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .83974       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0635       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=   9415.394     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2558 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.1651        6.6377        .11048E-06    .36182E-04
   2  norm          1.6433        1.5484        .81141E-08    .28257E-05
   3  Prefactor     .92391        3.4810        .18233E-05   -.34117E-03
   4  Prefactor     .10000E-03    64.742       -.15804E-06** at limit **
   5  Prefactor     .10000E-03    6.3978       -.68919E-08** at limit **
   6  Prefactor     .10000E-03    10.006        .27215E-07** at limit **
   7  Prefactor     14.499        10.408       -.95669E-06   -.44490E-03
   8  norm          .10000E-03    4.8893       -.36449E-08** at limit **
   9  Prefactor     .10000E-03    2.1805       -.35025E-07** at limit **
  10  norm          .10000E-03    .31176        .10508E-08** at limit **
  11  Prefactor     5.2896        37.045       -.27772E-05   -.70643E-04
  12  norm          .10000E-03    3.8124       -.96009E-08** at limit **
  13  norm          26.247        20.462       -.24193E-06   -.41494E-04
  14  norm          2.1198        1.4491       -.14917E-07    .26299E-04
  15  Prefactor     .10000E-03    26.227        .90976E-07** at limit **
  16  norm          2.5696        3.8964        .33571E-06   -.15118E-03
  17  norm          .10000E-03    4.0814        .24254E-07** at limit **
  18  Prefactor     .10000E-03    708.03        .38763E-06** at limit **
  19  norm          .10000E-03    5.5184       -.11115E-07** at limit **
  20  Prefactor     .10000E-03    8.8854       -.10479E-07** at limit **
  21  Prefactor     62.661        62.582        .79263E-06    .46859E-04
  22  Normalizat    .83973        .25741        .20741E-06   -.32228E-04
  23  Prefactor     1.0635        .85112E-01   -.58327E-07   -.81150E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.16514
  norm       = 1.64334
  Prefactor  = 0.923913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.499
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.28964
  norm       = 0.0001
  norm       = 26.2475
  norm       = 2.1198
  Prefactor  = 0.0001
  norm       = 2.56959
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.6605
  Normalizat = 0.839728
  Prefactor  = 1.06349
 **********
 **   18 **HESSE 
 **********

 FCN=   9415.394     FROM HESSE     STATUS=OK           368 CALLS     2926 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.1651        6.6523        .13239E-03   -1.5102    
   2  norm          1.6433        1.5526        .11404E-03   -1.5452    
   3  Prefactor     .92391        3.7035        .36068E-03   -1.5516    
   4  Prefactor     .10000E-03    65.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.499        11.022        .10518E-03   -1.4946    
   8  norm          .10000E-03    4.8898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.2007        .13983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .53389        .10499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2896        39.246        .17482E-03   -1.5248    
  12  norm          .10000E-03    3.8283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          26.247        20.459        .78256E-04   -1.4683    
  14  norm          2.1198        1.4538        .94023E-04   -1.5417    
  15  Prefactor     .10000E-03    26.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5696        3.8996        .22513E-03   -1.5387    
  17  norm          .10000E-03    4.0883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    728.38        .36349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.5194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.8887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     62.661        62.870        .50708E-04   -1.4123    
  22  Normalizat    .83973        .28818        .48733E-03   -.98612    
  23  Prefactor     1.0635        .96537E-01    .14788E-03   -.90642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55755e-10
Minuit parameter uncertainties:
  1  6.65288
  2  1.55265
  3  3.69977
  4  5.10825e-05
  5  2.67749e-06
  6  1.6971e-06
  7  11.0231
  8  1.92974e-06
  9  1.87982e-06
  10  3.58464e-06
  11  28.8426
  12  2.1883e-06
  13  20.4648
  14  1.45379
  15  1.02874e-05
  16  3.9
  17  7.04997e-08
  18  0.000277839
  19  1.82635e-06
  20  4.32281e-06
  21  62.9371
  22  0.288704
  23  0.0965528
Done.

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

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  1.000e-04  3.585e-06  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.063e+00  9.655e-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:  8.397e-01  2.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 299.503 -38.755
Photon Flux Upper Limit: 7.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/412860/likelihoodResults_353116801_353376001_4FGL_J1958.0-3845_daily_bin439.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) = 9415.40330174
delta logL = -0.0089367253604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9415.39436332
delta logL = 1.69610939338e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1564       1.0000          .0000       5.0000    
     3 'Normalizat'    .83973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0635       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=   9415.394     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      220 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.7641        .24145E-01** at limit **
   2  alpha         1.7172        3.8750        .41654       -.13363E-06
   3  Normalizat    .83973        .20253E-01    .10992        .39245E-04
   4  Prefactor     1.0635        .68735E-02    .39177E-01   -.29700E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.71718
  Normalizat = 0.83973
  Prefactor  = 1.06349
 **********
 **   18 **HESSE 
 **********

 FCN=   9415.394     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      253 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    150.45        .11628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7172        2.6449        .16661       -.31849    
   3  Normalizat    .83973        .17560        .48732E-03   -.98611    
   4  Prefactor     1.0635        .59983E-01    .14788E-03   -.90642    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.33037e-08
Minuit parameter uncertainties:
  1  5.64992e-05
  2  990.239
  3  0.175715
  4  0.0599868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412860': 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) = 9415.39434516
delta logL = 1.98611742235e-05

Extracting fit parameters...

4FGL J1958.0-3845
   Spectrum: LogParabola
383         norm:  1.000e-04  5.650e-05  1.000e-04  1.000e+04 ( 1.000e-11)
384        alpha:  1.717e+00  9.902e+02  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.063e+00  5.999e-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:  8.397e-01  1.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 299.503 -38.755

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/412860/cmap_HighResolution_353116801_353376001_4FGL_J1958.0-3845_daily_bin439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-05', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2021-09-24 00:17:25.927314', job_id='412860', GAL2='1.06', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632467845.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.99e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='439' AND source_name='4FGL J1958.0-3845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 00:17:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 412860: <4FGL_J1958.0-3845_daily_bin439> in cluster <slac> Done

Job <4FGL_J1958.0-3845_daily_bin439> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 24 00:02:12 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 00:02:20 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:02:20 2021
Terminated at Fri Sep 24 00:17:26 2021
Results reported at Fri Sep 24 00:17:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1958.0-3845_daily_bin439 299.503 -38.7547 353116801 353376001 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 :                                   891.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            914 sec.

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

