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


Performing analysis on: 4FGL_J0058.0-3233_daily_bin1601
RA = 14.5132, Dec = -32.5658
tmin = 654307201, tmax = 654566401
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='538483', job_status='RUN', time_executed='2021-09-29 00:00:54.294565', time_epoch_executed='1632898854.29' WHERE source_name='4FGL J0058.0-3233' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538483

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538483/ft1_4FGL_J0058.0-3233_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538483/ft2_4FGL_J0058.0-3233_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538483/ft1_4FGL_J0058.0-3233_daily_bin1601.fits outfile=/scratch/kocevski/538483/ft1_filteredMKT_4FGL_J0058.0-3233_daily_bin1601.fits ra=14.5132 dec=-32.5658 rad=12.0 tmin=654307201.0 tmax=654566401.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.27
user 4.06
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/538483/ft2_4FGL_J0058.0-3233_daily_bin1601.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/538483/ft2_4FGL_J0058.0-3233_daily_bin1601.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/538483/ft1_filteredMKT_4FGL_J0058.0-3233_daily_bin1601.fits evtable="EVENTS" outfile="/scratch/kocevski/538483/ft1_filtered_4FGL_J0058.0-3233_daily_bin1601.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/538483/ft1_filtered_4FGL_J0058.0-3233_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/538483/ft2_4FGL_J0058.0-3233_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/538483/ltcube_654307201_654566401_4FGL_J0058.0-3233_daily_bin1601.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/538483/ft2_4FGL_J0058.0-3233_daily_bin1601.fits
.....................!
real 12.18
user 11.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538483/ft1_filtered_4FGL_J0058.0-3233_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/538483/ft2_4FGL_J0058.0-3233_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/538483/ltcube_654307201_654566401_4FGL_J0058.0-3233_daily_bin1601.fits outfile=/scratch/kocevski/538483/expmap_654307201_654566401_4FGL_J0058.0-3233_daily_bin1601.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/538483/ltcube_654307201_654566401_4FGL_J0058.0-3233_daily_bin1601.fits
.....................!
real 189.09
user 185.03
sys 3.74

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

Setting source of interest to:
4FGL J0058.0-3233 @ 14.5132 -32.5658

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/538483/ft1_filtered_4FGL_J0058.0-3233_daily_bin1601.fits scfile=/scratch/kocevski/538483/ft2_4FGL_J0058.0-3233_daily_bin1601.fits outfile=/scratch/kocevski/538483/cmap_654307201_654566401_4FGL_J0058.0-3233_daily_bin1601.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=14.5132 yref=-32.5658 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538483/ft1_filtered_4FGL_J0058.0-3233_daily_bin1601.fits scfile=/scratch/kocevski/538483/ft2_4FGL_J0058.0-3233_daily_bin1601.fits outfile=/scratch/kocevski/538483/cmap_HighResolution_654307201_654566401_4FGL_J0058.0-3233_daily_bin1601.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=14.5132 yref=-32.5658 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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/538483/ft1_filtered_4FGL_J0058.0-3233_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/538483/ft2_4FGL_J0058.0-3233_daily_bin1601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/538483/Model_4FGL_J0058.0-3233_daily_bin1601.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/538483/ft1_filtered_4FGL_J0058.0-3233_daily_bin1601.fits.....................!
real 35.52
user 34.34
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/538483/ft1_filtered_4FGL_J0058.0-3233_daily_bin1601.fits', '/scratch/kocevski/538483/ft2_4FGL_J0058.0-3233_daily_bin1601.fits', expMap='/scratch/kocevski/538483/expmap_654307201_654566401_4FGL_J0058.0-3233_daily_bin1601.fits', expCube='/scratch/kocevski/538483/ltcube_654307201_654566401_4FGL_J0058.0-3233_daily_bin1601.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/538483/Model_4FGL_J0058.0-3233_daily_bin1601.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0058.0-3233'

4FGL J0058.0-3233
   Spectrum: LogParabola
196         norm:  1.613e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
197        alpha:  1.916e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
198         beta:  1.485e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
199           Eb:  9.938e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/538483/ft1_filtered_4FGL_J0058.0-3233_daily_bin1601.fits
Spacecraft file(s): /scratch/kocevski/538483/ft2_4FGL_J0058.0-3233_daily_bin1601.fits
Exposure map: /scratch/kocevski/538483/expmap_654307201_654566401_4FGL_J0058.0-3233_daily_bin1601.fits
Exposure cube: /scratch/kocevski/538483/ltcube_654307201_654566401_4FGL_J0058.0-3233_daily_bin1601.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/538483/Model_4FGL_J0058.0-3233_daily_bin1601.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) = 3836.99761136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4710       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.624       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.571       1.0000         .10000E-03   10000.    
     9 'norm      '    28.170       1.0000         .10000E-03   10000.    
    10 'norm      '    26.145       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6758       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.082       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.044       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.987       1.0000         .10000E-03   10000.    
    21 'norm      '    .56987E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.485       1.0000         .10000E-03   10000.    
    23 'norm      '    2.4475       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84043       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0380       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+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=   3836.995     FROM MIGRAD    STATUS=CONVERGED   1036 CALLS     3369 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4717        4.9592        .12517E-03    .14910E-03
   2  Prefactor     .10000E-03    12.853        .18142E-02** at limit **
   3  Prefactor     .10000E-03    21.537        .18142E-02** at limit **
   4  Prefactor     .10000E-03    27.563        .18142E-02** at limit **
   5  Prefactor     .10000E-03    1.8026        .81163E-03** at limit **
   6  Prefactor     .10000E-03    44.541        .36285E-03** at limit **
   7  norm          16.624        10.273        .98231E-04   -.32232E-04
   8  Prefactor     11.569        11.297        .11777E-03    .27995E-04
   9  norm          28.159        33.784        .75482E-04   -.18977E-04
  10  norm          26.144        19.975        .78346E-04   -.64574E-05
  11  norm          2.6757        2.6528        .97382E-04   -.71680E-04
  12  Prefactor     .10000E-03    4.0192        .12090E-02** at limit **
  13  Prefactor     15.077        26.351        .10313E-03    .92045E-05
  14  Prefactor     .10000E-03    4.7465        .13177E-02** at limit **
  15  Prefactor     .10000E-03    1.1652        .65225E-03** at limit **
  16  norm          .10000E-03    2.6205        .19155E-03** at limit **
  17  norm          .10000E-03    .93774        .58471E-03** at limit **
  18  Prefactor     17.045        17.933        .97013E-04   -.22289E-03
  19  Prefactor     .10000E-03    4.1089        .12228E-02** at limit **
  20  Prefactor     17.975        44.244        .94437E-04    .17456E-05
  21  norm          .30240E-03    3.8255        .30852E-01** at limit **
  22  Prefactor     22.485        8.0425        .84471E-04    .58545E-05
  23  norm          2.4476        3.6103        .13822E-03    .37892E-03
  24  Normalizat    .84054        .25627        .24577E-03   -.17115E-05
  25  Prefactor     1.0379        .28423        .25767E-03   -.12506E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.47166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.6237
  Prefactor  = 11.5686
  norm       = 28.1585
  norm       = 26.1444
  norm       = 2.67575
  Prefactor  = 0.0001
  Prefactor  = 15.0766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.0453
  Prefactor  = 0.0001
  Prefactor  = 17.9749
  norm       = 0.000302398
  Prefactor  = 22.4848
  norm       = 2.44763
  Normalizat = 0.840544
  Prefactor  = 1.03786
 **********
 **   18 **HESSE 
 **********

 FCN=   3836.995     FROM HESSE     STATUS=OK           411 CALLS     3780 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4717        4.9591        .50066E-05   -1.5240    
   2  Prefactor     .10000E-03    12.853        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.544        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.567        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.8027        .16233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    44.542        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.624        10.272        .39292E-05   -1.4892    
   8  Prefactor     11.569        11.297        .47108E-05   -1.5028    
   9  norm          28.159        33.779        .30193E-05   -1.4646    
  10  norm          26.144        19.973        .31338E-05   -1.4685    
  11  norm          2.6757        2.6528        .38953E-05   -1.5381    
  12  Prefactor     .10000E-03    4.0196        .24180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.077        26.346        .41253E-05   -1.4931    
  14  Prefactor     .10000E-03    4.7466        .26354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1653        .13045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6206        .38309E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .93774        .11694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.045        17.930        .38805E-05   -1.4882    
  19  Prefactor     .10000E-03    4.1093        .24456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.975        44.242        .37775E-05   -1.4860    
  21  norm          .30240E-03    3.2941        .34335E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.485        8.0422        .33789E-05   -1.4759    
  23  norm          2.4476        3.6104        .55290E-05   -1.5395    
  24  Normalizat    .84054        .25653        .98307E-05   -.98582    
  25  Prefactor     1.0379        .28452        .51534E-04   -.91478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25571e-10
Minuit parameter uncertainties:
  1  4.95945
  2  8.97879e-05
  3  0.00014678
  4  8.56587e-06
  5  9.08442e-07
  6  0.000210334
  7  10.2735
  8  11.2992
  9  33.8015
  10  19.9784
  11  2.65288
  12  4.80474e-06
  13  26.366
  14  1.03889e-05
  15  1.25129e-06
  16  1.27628e-05
  17  1.51592e-05
  18  17.9355
  19  2.22198e-05
  20  44.3232
  21  0.0516445
  22  8.04255
  23  3.61076
  24  0.256906
  25  0.284939
Done.

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

Extracting fit parameters...

4FGL J0058.0-3233
   Spectrum: LogParabola
196         norm:  2.676e+00  2.653e+00  1.000e-04  1.000e+04 ( 1.000e-12)
197        alpha:  1.916e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
198         beta:  1.485e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
199           Eb:  9.938e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.038e+00  2.849e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  8.405e-01  2.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.74
Ra Dec: 14.513 -32.566
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 1.68e-08 +/- 1.66e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 1.11e-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) = 3836.38009585
delta logL = 0.615365016398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3836.18278486
delta logL = 0.812676002657

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1371       1.0000         .10000E-03   10000.    
     2 'alpha     '    .75475       1.0000          .0000       5.0000    
     3 'Normalizat'    .84983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0367       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3836.183     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      211 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1370        1.2497        .10918E-02   -.30766E-02
   2  alpha         .75472        .56916        .39547       -.14865E-04
   3  Normalizat    .84985        .20268        .44257E-01    .90272E-05
   4  Prefactor     1.0367        .23495        .58287E-01    .55569E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.13698
  alpha      = 0.754719
  Normalizat = 0.849846
  Prefactor  = 1.0367
 **********
 **   18 **HESSE 
 **********

 FCN=   3836.183     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1370        1.7055        .21836E-03   -1.5495    
   2  alpha         .75472        .74560        .17954E-01   -.77276    
   3  Normalizat    .84985        .24371        .24447E-03   -.98246    
   4  Prefactor     1.0367        .28244        .25774E-03   -.91516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36366e-10
Minuit parameter uncertainties:
  1  1.7056
  2  0.769047
  3  0.244021
  4  0.282842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538483': 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) = 3836.18278484
delta logL = 0.812676022135

Extracting fit parameters...

4FGL J0058.0-3233
   Spectrum: LogParabola
196         norm:  1.137e+00  1.706e+00  1.000e-04  1.000e+04 ( 1.000e-12)
197        alpha:  7.547e-01  7.690e-01  0.000e+00  5.000e+00 ( 1.000e+00)
198         beta:  1.485e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
199           Eb:  9.938e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.037e+00  2.828e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  8.498e-01  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.36
Ra Dec: 14.513 -32.566
Photon Index (Free Index): 0.75 +/- 0.77
Photon Flux (Free Index): 5.38e-09 +/- 5.85e-09
Energy Flux (Free Index): 4.15e-05 +/- 6.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/538483/cmap_HighResolution_654307201_654566401_4FGL_J0058.0-3233_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.68e-08', energy_flux2='4.15e-05', photon_flux_error='1.66e-08', dlogl='8.13e-01', energy_flux='1.12e-05', photon_flux2='5.38e-09', job_status='DONE', time_completed='2021-09-29 00:09:45.261676', photon_index_error2='0.77', photon_index2='0.75', ts='5.74', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='6.46e-05', EG='0.84', time_epoch_completed='1632899385.26', return_code='0', job_id='538483', GAL2='1.04', EG2='0.85', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='5.85e-09', ts2='7.36', photon_index='1.92' WHERE bin_id='1601' AND source_name='4FGL J0058.0-3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:09:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 538483: <4FGL_J0058.0-3233_daily_bin1601> in cluster <slac> Done

Job <4FGL_J0058.0-3233_daily_bin1601> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 00:00:24 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:00:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:00:25 2021
Terminated at Wed Sep 29 00:09:45 2021
Results reported at Wed Sep 29 00:09:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0058.0-3233_daily_bin1601 14.5132 -32.5658 654307201 654566401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0058.0-3233 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   534.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   560 sec.
    Turnaround time :                            561 sec.

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

