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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin848
RA = 164.624, Dec = 1.5641
tmin = 459129601, tmax = 459388801
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='330348', job_status='RUN', time_executed='2021-09-02 22:26:54.240888', time_epoch_executed='1630646814.24' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='848'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330348

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330348/ft1_4FGL_J1058.4+0133_daily_bin848.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330348/ft2_4FGL_J1058.4+0133_daily_bin848.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330348/ft1_4FGL_J1058.4+0133_daily_bin848.fits outfile=/scratch/kocevski/330348/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin848.fits ra=164.624 dec=1.5641 rad=12.0 tmin=459129601.0 tmax=459388801.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.95
user 3.67
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/330348/ft2_4FGL_J1058.4+0133_daily_bin848.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/330348/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin848.fits evtable="EVENTS" outfile="/scratch/kocevski/330348/ft1_filtered_4FGL_J1058.4+0133_daily_bin848.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.53
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/330348/ft1_filtered_4FGL_J1058.4+0133_daily_bin848.fits" evtable="EVENTS" scfile=/scratch/kocevski/330348/ft2_4FGL_J1058.4+0133_daily_bin848.fits sctable="SC_DATA" outfile=/scratch/kocevski/330348/ltcube_459129601_459388801_4FGL_J1058.4+0133_daily_bin848.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/330348/ft2_4FGL_J1058.4+0133_daily_bin848.fits
.....................!
real 17.27
user 16.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330348/ft1_filtered_4FGL_J1058.4+0133_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/330348/ft2_4FGL_J1058.4+0133_daily_bin848.fits sctable="SC_DATA" expcube=/scratch/kocevski/330348/ltcube_459129601_459388801_4FGL_J1058.4+0133_daily_bin848.fits outfile=/scratch/kocevski/330348/expmap_459129601_459388801_4FGL_J1058.4+0133_daily_bin848.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/330348/ltcube_459129601_459388801_4FGL_J1058.4+0133_daily_bin848.fits
.....................!
real 193.49
user 187.80
sys 4.97

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/330348/ft1_filtered_4FGL_J1058.4+0133_daily_bin848.fits scfile=/scratch/kocevski/330348/ft2_4FGL_J1058.4+0133_daily_bin848.fits outfile=/scratch/kocevski/330348/cmap_459129601_459388801_4FGL_J1058.4+0133_daily_bin848.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.88
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330348/ft1_filtered_4FGL_J1058.4+0133_daily_bin848.fits scfile=/scratch/kocevski/330348/ft2_4FGL_J1058.4+0133_daily_bin848.fits outfile=/scratch/kocevski/330348/cmap_HighResolution_459129601_459388801_4FGL_J1058.4+0133_daily_bin848.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.64
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/330348/ft1_filtered_4FGL_J1058.4+0133_daily_bin848.fits', '/scratch/kocevski/330348/ft2_4FGL_J1058.4+0133_daily_bin848.fits', expMap='/scratch/kocevski/330348/expmap_459129601_459388801_4FGL_J1058.4+0133_daily_bin848.fits', expCube='/scratch/kocevski/330348/ltcube_459129601_459388801_4FGL_J1058.4+0133_daily_bin848.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/330348/Model_4FGL_J1058.4+0133_daily_bin848.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/330348/ft1_filtered_4FGL_J1058.4+0133_daily_bin848.fits
Spacecraft file(s): /scratch/kocevski/330348/ft2_4FGL_J1058.4+0133_daily_bin848.fits
Exposure map: /scratch/kocevski/330348/expmap_459129601_459388801_4FGL_J1058.4+0133_daily_bin848.fits
Exposure cube: /scratch/kocevski/330348/ltcube_459129601_459388801_4FGL_J1058.4+0133_daily_bin848.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/330348/Model_4FGL_J1058.4+0133_daily_bin848.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) = 7266.06816805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65147E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12767E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    161.41       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.7549       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.125       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .78267       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .66613E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4569       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3045       1.0000         .10000E-03   10000.    
    11 'norm      '    .33595       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4254       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9524       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6713       1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.912       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8347       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.666       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .56975       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3579       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7265.990     FROM MIGRAD    STATUS=CONVERGED    890 CALLS     2844 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    46.269        .43778E-02** at limit **
   2  Prefactor     .10000E-03    36.819        .18142E-02** at limit **
   3  Prefactor     161.60        66.575        .15871E-03   -.29080E-03
   4  Prefactor     .10000E-03    9.0166        .18142E-02** at limit **
   5  norm          2.7554        1.3118        .64709E-04   -.20802E-03
   6  Prefactor     10.124        6.0639        .12593E-03   -.79806E-04
   7  Prefactor     .78116        4.4440        .23660E-02   -.92283E-03
   8  Prefactor     .90955E-01    11.415        .51645E-01    .35193E-03
   9  norm          1.4567        .65731        .38492E-04   -.49697E-02
  10  Prefactor     7.3013        9.8620        .14841E-03   -.34120E-03
  11  norm          .33550        1.0108        .14501E-03    .20807E-03
  12  Prefactor     5.4191        16.705        .17252E-03   -.36508E-04
  13  Prefactor     8.9501        10.599        .13396E-03   -.37936E-03
  14  Prefactor     .10000E-03    16.816        .36285E-03** at limit **
  15  Prefactor     3.6715        4.4472        .18145E-03   -.97804E-04
  16  norm          .10000E-03    3.2215        .14917E-02** at limit **
  17  Prefactor     12.909        5.7113        .55736E-03    .44364E-04
  18  norm          .10000E-03    24.996        .18142E-02** at limit **
  19  Prefactor     3.8341        2.4446        .10097E-03    .71385E-04
  20  Prefactor     11.677        18.970        .11729E-03   -.10207E-03
  21  Normalizat    .56974        .22595        .36424E-03   -.22966E-03
  22  Prefactor     1.3581        .17731        .20911E-03   -.27823E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 161.602
  Prefactor  = 0.0001
  norm       = 2.75538
  Prefactor  = 10.1237
  Prefactor  = 0.781161
  Prefactor  = 0.0909546
  norm       = 1.45674
  Prefactor  = 7.30133
  norm       = 0.335499
  Prefactor  = 5.41915
  Prefactor  = 8.95013
  Prefactor  = 0.0001
  Prefactor  = 3.67151
  norm       = 0.0001
  Prefactor  = 12.909
  norm       = 0.000100001
  Prefactor  = 3.83408
  Prefactor  = 11.6768
  Normalizat = 0.569739
  Prefactor  = 1.35806
 **********
 **   18 **HESSE 
 **********

 FCN=   7265.990     FROM HESSE     STATUS=OK           334 CALLS     3178 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    46.843        .87556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.820        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     161.60        66.296        .31742E-04   -1.3159    
   4  Prefactor     .10000E-03    9.0167        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.7554        1.3117        .25883E-05   -1.5376    
   6  Prefactor     10.124        6.0625        .50372E-05   -1.5072    
   7  Prefactor     .78116        4.3205        .94640E-04   -1.5531    
   8  Prefactor     .90955E-01    8.1300        .62827E-01   -1.5648    
   9  norm          1.4567        .65723        .76983E-05   -1.5467    
  10  Prefactor     7.3013        9.8397        .59362E-05   -1.5167    
  11  norm          .33550        1.0106        .58004E-05   -1.5592    
  12  Prefactor     5.4191        16.702        .69007E-05   -1.5242    
  13  Prefactor     8.9501        10.597        .53583E-05   -1.5110    
  14  Prefactor     .10000E-03    16.816        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6715        4.4454        .72580E-05   -1.5325    
  16  norm          .10000E-03    3.2217        .29834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.909        5.7103        .22294E-04   -1.4989    
  18  norm          .10000E-03    25.003        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.8341        2.4438        .40388E-05   -1.5316    
  20  Prefactor     11.677        18.969        .46916E-05   -1.5024    
  21  Normalizat    .56974        .22524        .14570E-04   -1.0928    
  22  Prefactor     1.3581        .17734        .41821E-04   -.81597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04251e-09
Minuit parameter uncertainties:
  1  0.00165956
  2  0.000106818
  3  66.327
  4  7.26372e-05
  5  1.31176
  6  6.06285
  7  3.67442
  8  1.71914
  9  0.657236
  10  9.84186
  11  1.01064
  12  16.7168
  13  10.5994
  14  0.000134058
  15  4.44584
  16  5.91464e-05
  17  5.71056
  18  0.000315239
  19  2.44385
  20  18.9792
  21  0.225598
  22  0.177415
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.457e+00  6.572e-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:  1.358e+00  1.774e-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:  5.697e-01  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.16
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 4.76e-08
Energy Flux (Fixed Index): 4.54e-05 +/- 2.05e-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) = 7265.91804565
delta logL = 0.0714548900223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7265.91300009
delta logL = 0.0765004507102

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5094       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0568       1.0000          .0000       5.0000    
     3 'Normalizat'    .58171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3531       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=   7265.913     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5095        11.189        .87048E-02    .16996E-03
   2  alpha         2.0568        3.4742        .25151        .17013E-04
   3  Normalizat    .58180        .15687        .81457E-01    .38504E-04
   4  Prefactor     1.3530        .10264        .47387E-01   -.22535E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50951
  alpha      = 2.0568
  Normalizat = 0.5818
  Prefactor  = 1.35298
 **********
 **   18 **HESSE 
 **********

 FCN=   7265.913     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5095        .60679        .40186E-04   -1.5462    
   2  alpha         2.0568        .33914        .10049E-01   -.17822    
   3  Normalizat    .58180        .20760        .36075E-03   -1.0876    
   4  Prefactor     1.3530        .17641        .20947E-03   -.81745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.63619e-11
Minuit parameter uncertainties:
  1  0.606797
  2  0.340218
  3  0.20788
  4  0.176485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330348': 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) = 7265.91299992
delta logL = 0.0765006269266

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.510e+00  6.068e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.057e+00  3.402e-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:  1.353e+00  1.765e-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:  5.818e-01  2.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.36
Ra Dec: 164.624 1.564
Photon Index (Free Index): 2.06 +/- 0.34
Photon Flux (Free Index): 9.36e-08 +/- 4.80e-08
Energy Flux (Free Index): 5.06e-05 +/- 2.55e-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/330348/cmap_HighResolution_459129601_459388801_4FGL_J1058.4+0133_daily_bin848.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='5.06e-05', photon_flux_error='4.76e-08', dlogl='7.65e-02', energy_flux='4.54e-05', photon_flux2='9.36e-08', job_status='DONE', time_completed='2021-09-02 22:38:45.829265', photon_index_error2='0.34', photon_index2='2.06', ts='18.16', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', energy_flux_error2='2.55e-05', EG='0.57', time_epoch_completed='1630647525.83', return_code='0', job_id='330348', GAL2='1.35', EG2='0.58', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='4.80e-08', ts2='18.36', photon_index='2.19' WHERE bin_id='848' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:38:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 330348: <4FGL_J1058.4+0133_daily_bin848> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin848> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 22:22:14 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:22:55 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:22:55 2021
Terminated at Thu Sep  2 22:38:47 2021
Results reported at Thu Sep  2 22:38:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin848 164.624 1.5641 459129601 459388801 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 :                                   703.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            993 sec.

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

