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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin475
RA = 164.624, Dec = 1.5641
tmin = 362448001, tmax = 362707201
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='327159', job_status='RUN', time_executed='2021-09-02 22:16:59.399588', time_epoch_executed='1630646219.4' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/327159

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/327159/ft1_4FGL_J1058.4+0133_daily_bin475.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/327159/ft2_4FGL_J1058.4+0133_daily_bin475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/327159/ft1_4FGL_J1058.4+0133_daily_bin475.fits outfile=/scratch/kocevski/327159/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin475.fits ra=164.624 dec=1.5641 rad=12.0 tmin=362448001.0 tmax=362707201.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 5.67
user 5.34
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/327159/ft2_4FGL_J1058.4+0133_daily_bin475.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/327159/ft2_4FGL_J1058.4+0133_daily_bin475.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/327159/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin475.fits evtable="EVENTS" outfile="/scratch/kocevski/327159/ft1_filtered_4FGL_J1058.4+0133_daily_bin475.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/327159/ft1_filtered_4FGL_J1058.4+0133_daily_bin475.fits" evtable="EVENTS" scfile=/scratch/kocevski/327159/ft2_4FGL_J1058.4+0133_daily_bin475.fits sctable="SC_DATA" outfile=/scratch/kocevski/327159/ltcube_362448001_362707201_4FGL_J1058.4+0133_daily_bin475.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/327159/ft2_4FGL_J1058.4+0133_daily_bin475.fits
.....................!
real 16.42
user 15.90
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/327159/ft1_filtered_4FGL_J1058.4+0133_daily_bin475.fits evtable="EVENTS" scfile=/scratch/kocevski/327159/ft2_4FGL_J1058.4+0133_daily_bin475.fits sctable="SC_DATA" expcube=/scratch/kocevski/327159/ltcube_362448001_362707201_4FGL_J1058.4+0133_daily_bin475.fits outfile=/scratch/kocevski/327159/expmap_362448001_362707201_4FGL_J1058.4+0133_daily_bin475.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/327159/ltcube_362448001_362707201_4FGL_J1058.4+0133_daily_bin475.fits
.....................!
real 194.13
user 187.41
sys 4.23

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

Setting source of interest to:
4FGL J1058.4+0133 @ 164.624 1.5641

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/327159/ft1_filtered_4FGL_J1058.4+0133_daily_bin475.fits scfile=/scratch/kocevski/327159/ft2_4FGL_J1058.4+0133_daily_bin475.fits outfile=/scratch/kocevski/327159/cmap_362448001_362707201_4FGL_J1058.4+0133_daily_bin475.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=164.624 yref=1.5641 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.59
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/327159/ft1_filtered_4FGL_J1058.4+0133_daily_bin475.fits scfile=/scratch/kocevski/327159/ft2_4FGL_J1058.4+0133_daily_bin475.fits outfile=/scratch/kocevski/327159/cmap_HighResolution_362448001_362707201_4FGL_J1058.4+0133_daily_bin475.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=164.624 yref=1.5641 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.57
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/327159/ft1_filtered_4FGL_J1058.4+0133_daily_bin475.fits evtable="EVENTS" scfile=/scratch/kocevski/327159/ft2_4FGL_J1058.4+0133_daily_bin475.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/327159/Model_4FGL_J1058.4+0133_daily_bin475.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/327159/ft1_filtered_4FGL_J1058.4+0133_daily_bin475.fits.....................!
real 63.82
user 61.74
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/327159/ft1_filtered_4FGL_J1058.4+0133_daily_bin475.fits', '/scratch/kocevski/327159/ft2_4FGL_J1058.4+0133_daily_bin475.fits', expMap='/scratch/kocevski/327159/expmap_362448001_362707201_4FGL_J1058.4+0133_daily_bin475.fits', expCube='/scratch/kocevski/327159/ltcube_362448001_362707201_4FGL_J1058.4+0133_daily_bin475.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/327159/Model_4FGL_J1058.4+0133_daily_bin475.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.4+0133'

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.247e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.190e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
236         beta:  4.785e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  8.028e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/327159/ft1_filtered_4FGL_J1058.4+0133_daily_bin475.fits
Spacecraft file(s): /scratch/kocevski/327159/ft2_4FGL_J1058.4+0133_daily_bin475.fits
Exposure map: /scratch/kocevski/327159/expmap_362448001_362707201_4FGL_J1058.4+0133_daily_bin475.fits
Exposure cube: /scratch/kocevski/327159/ltcube_362448001_362707201_4FGL_J1058.4+0133_daily_bin475.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/327159/Model_4FGL_J1058.4+0133_daily_bin475.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) = 6670.85687036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.495       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2642       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3990       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0249       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.430       1.0000         .10000E-03   10000.    
     9 'norm      '    .85938       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2506       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6536       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.824       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.788       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5819       1.0000         .10000E-03   10000.    
    16 'norm      '    13.756       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11905E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1119       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1279       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6670.776     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2411 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.512       -.37545E-06** at limit **
   2  Prefactor     35.508        64.550        .12460E-04    .21965E-03
   3  Prefactor     .10000E-03    59.790       -.13132E-05** at limit **
   4  Prefactor     .10000E-03    11.772       -.15884E-05** at limit **
   5  norm          1.2641        1.1388       -.88796E-07   -.25610E-03
   6  Prefactor     3.3987        5.1053        .19549E-05    .29070E-03
   7  Prefactor     4.0246        3.0403       -.21386E-07   -.15977E-03
   8  Prefactor     22.429        8.8687       -.47583E-08   -.19675E-03
   9  norm          .85946        .44262        .11507E-07   -.15069E-02
  10  Prefactor     .10000E-03    8.7545        .33684E-05** at limit **
  11  norm          1.2505        1.3283        .23757E-06    .39344E-04
  12  Prefactor     7.6534        17.719        .14186E-06   -.50135E-04
  13  Prefactor     14.825        18.240        .45967E-06    .13222E-03
  14  Prefactor     12.788        13.254        .14819E-06    .16105E-03
  15  Prefactor     3.5823        2.5037        .90032E-06   -.36059E-02
  16  norm          13.760        9.0116        .10906E-06    .41057E-03
  17  Prefactor     .10002E-03    2.1691       -.10599E-05** at limit **
  18  norm          .10000E-03    6.8069        .67782E-06** at limit **
  19  Prefactor     3.1119        2.3059        .14301E-06   -.30641E-05
  20  Prefactor     .10000E-03    18.812        .61160E-06** at limit **
  21  Normalizat    1.1281        .19179       -.18483E-05    .11540E-03
  22  Prefactor     .81868        .14402       -.42653E-07   -.47627E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 35.5084
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 1.26406
  Prefactor  = 3.39871
  Prefactor  = 4.02463
  Prefactor  = 22.4287
  norm       = 0.859456
  Prefactor  = 0.000100001
  norm       = 1.25051
  Prefactor  = 7.65336
  Prefactor  = 14.8253
  Prefactor  = 12.7877
  Prefactor  = 3.58232
  norm       = 13.7597
  Prefactor  = 0.000100021
  norm       = 0.0001
  Prefactor  = 3.11191
  Prefactor  = 0.0001
  Normalizat = 1.12808
  Prefactor  = 0.81868
 **********
 **   18 **HESSE 
 **********

 FCN=   6670.776     FROM HESSE     STATUS=OK           350 CALLS     2761 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.508        65.755        .67265E-04   -1.4515    
   3  Prefactor     .10000E-03    60.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2641        1.1392        .39634E-04   -1.5483    
   6  Prefactor     3.3987        5.0962        .21449E-03   -1.5339    
   7  Prefactor     4.0246        3.0420        .11729E-03   -1.5307    
   8  Prefactor     22.429        8.8794        .84575E-04   -1.4760    
   9  norm          .85946        .43707        .37329E-04   -1.5523    
  10  Prefactor     .10000E-03    9.0122        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2505        1.3064        .92904E-04   -1.5484    
  12  Prefactor     7.6534        17.714        .14495E-03   -1.5155    
  13  Prefactor     14.825        18.193        .10403E-03   -1.4938    
  14  Prefactor     12.788        13.223        .11201E-03   -1.4993    
  15  Prefactor     3.5823        4.0850        .81214E-03   -1.5329    
  16  norm          13.760        9.0059        .10800E-03   -1.4966    
  17  Prefactor     .10002E-03    8.0502        .21924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.8145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.1119        2.3033        .10162E-03   -1.5355    
  20  Prefactor     .10000E-03    18.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1281        .22329        .25886E-03   -.88855    
  22  Prefactor     .81868        .16856        .24000E-03   -.99043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02914e-08
Minuit parameter uncertainties:
  1  0.000151316
  2  65.8892
  3  0.000605417
  4  0.000178703
  5  1.13927
  6  5.09686
  7  3.04209
  8  8.87994
  9  0.437069
  10  0.000210171
  11  1.30638
  12  17.7259
  13  18.1997
  14  13.2265
  15  4.0853
  16  9.00681
  17  0.00082819
  18  4.47626e-05
  19  2.30334
  20  0.000112642
  21  0.223478
  22  0.168663
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  8.595e-01  4.371e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.190e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
236         beta:  4.785e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  8.028e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  8.187e-01  1.687e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.128e+00  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.88
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 6.23e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 1.36e-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) = 6670.63043718
delta logL = 0.145324370529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6670.62647075
delta logL = 0.149290802648

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6670.626     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      228 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .91515        12.702        .88697E-02    .67571E-03
   2  alpha         1.9742        3.1846        .28590        .18615E-04
   3  Normalizat    1.1370        .13373        .58343E-01    .67045E-04
   4  Prefactor     .81534        .10479        .43917E-01   -.22022E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.915154
  alpha      = 1.97419
  Normalizat = 1.13703
  Prefactor  = 0.815338
 **********
 **   18 **HESSE 
 **********

 FCN=   6670.626     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .91515        .47551        .39419E-04   -1.5517    
   2  alpha         1.9742        .39007        .11426E-01   -.21191    
   3  Normalizat    1.1370        .20761        .25802E-03   -.88572    
   4  Prefactor     .81534        .16724        .24046E-03   -.99165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13284e-11
Minuit parameter uncertainties:
  1  0.475513
  2  0.391747
  3  0.207762
  4  0.167342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/327159': 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) = 6670.62647074
delta logL = 0.149290803664

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  9.152e-01  4.755e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  1.974e+00  3.917e-01  0.000e+00  5.000e+00 ( 1.000e+00)
236         beta:  4.785e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  8.028e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  8.153e-01  1.673e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.137e+00  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.17
Ra Dec: 164.624 1.564
Photon Index (Free Index): 1.97 +/- 0.39
Photon Flux (Free Index): 5.19e-08 +/- 3.30e-08
Energy Flux (Free Index): 3.30e-05 +/- 2.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/327159/cmap_HighResolution_362448001_362707201_4FGL_J1058.4+0133_daily_bin475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.23e-08', energy_flux2='3.30e-05', photon_flux_error='3.17e-08', dlogl='1.49e-01', energy_flux='2.68e-05', photon_flux2='5.19e-08', job_status='DONE', time_completed='2021-09-02 22:28:18.166015', photon_index_error2='0.39', photon_index2='1.97', ts='9.88', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.23e-05', EG='1.13', time_epoch_completed='1630646898.17', return_code='0', job_id='327159', GAL2='0.82', EG2='1.14', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='3.30e-08', ts2='10.17', photon_index='2.19' WHERE bin_id='475' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:28:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 327159: <4FGL_J1058.4+0133_daily_bin475> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin475> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 22:11:48 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:16:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 22:16:46 2021
Terminated at Thu Sep  2 22:28:19 2021
Results reported at Thu Sep  2 22:28:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin475 164.624 1.5641 362448001 362707201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.4+0133 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   646.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            991 sec.

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

