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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin453
RA = 164.624, Dec = 1.5641
tmin = 356745601, tmax = 357004801
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='327127', job_status='RUN', time_executed='2021-09-02 22:16:32.799750', time_epoch_executed='1630646192.8' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='453'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/327127

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/327127/ft1_4FGL_J1058.4+0133_daily_bin453.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/327127/ft2_4FGL_J1058.4+0133_daily_bin453.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/327127/ft1_4FGL_J1058.4+0133_daily_bin453.fits outfile=/scratch/kocevski/327127/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin453.fits ra=164.624 dec=1.5641 rad=12.0 tmin=356745601.0 tmax=357004801.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 2.92
user 2.68
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/327127/ft1_filtered_4FGL_J1058.4+0133_daily_bin453.fits" evtable="EVENTS" scfile=/scratch/kocevski/327127/ft2_4FGL_J1058.4+0133_daily_bin453.fits sctable="SC_DATA" outfile=/scratch/kocevski/327127/ltcube_356745601_357004801_4FGL_J1058.4+0133_daily_bin453.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/327127/ft2_4FGL_J1058.4+0133_daily_bin453.fits
.....................!
real 12.79
user 12.48
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/327127/ft1_filtered_4FGL_J1058.4+0133_daily_bin453.fits evtable="EVENTS" scfile=/scratch/kocevski/327127/ft2_4FGL_J1058.4+0133_daily_bin453.fits sctable="SC_DATA" expcube=/scratch/kocevski/327127/ltcube_356745601_357004801_4FGL_J1058.4+0133_daily_bin453.fits outfile=/scratch/kocevski/327127/expmap_356745601_357004801_4FGL_J1058.4+0133_daily_bin453.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/327127/ltcube_356745601_357004801_4FGL_J1058.4+0133_daily_bin453.fits
.....................!
real 155.43
user 151.51
sys 3.53

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/327127/ft1_filtered_4FGL_J1058.4+0133_daily_bin453.fits scfile=/scratch/kocevski/327127/ft2_4FGL_J1058.4+0133_daily_bin453.fits outfile=/scratch/kocevski/327127/cmap_356745601_357004801_4FGL_J1058.4+0133_daily_bin453.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.50
user 0.35
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/327127/ft1_filtered_4FGL_J1058.4+0133_daily_bin453.fits scfile=/scratch/kocevski/327127/ft2_4FGL_J1058.4+0133_daily_bin453.fits outfile=/scratch/kocevski/327127/cmap_HighResolution_356745601_357004801_4FGL_J1058.4+0133_daily_bin453.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.52
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    137.95       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.200       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .84167       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .67864E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2596       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.273       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4603       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.028       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.2264       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .38991E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .52865E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10488E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0522       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0986       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=   6002.513     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2851 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0603       -.59567E-06** at limit **
   2  Prefactor     137.94        87.103        .40079E-06    .26226E-04
   3  Prefactor     36.189        42.786       -.35660E-05   -.61833E-04
   4  Prefactor     .10000E-03    9.3406       -.15490E-05** at limit **
   5  norm          .84194        .87041       -.25235E-07   -.52757E-04
   6  Prefactor     .10055E-03    78.738        .35001E-04** at limit **
   7  Prefactor     6.2601        3.6861       -.11346E-06    .34154E-05
   8  Prefactor     15.273        9.8024       -.17932E-05   -.32060E-03
   9  norm          1.4606        .75546       -.16578E-06   -.19891E-03
  10  Prefactor     .10000E-03    8.9897       -.39200E-06** at limit **
  11  norm          .10000E-03    .72468       -.32340E-06** at limit **
  12  Prefactor     .10000E-03    24.762       -.18317E-06** at limit **
  13  Prefactor     .10000E-03    6.5750       -.13461E-05** at limit **
  14  Prefactor     10.022        11.474       -.13745E-05   -.67462E-04
  15  Prefactor     .10000E-03    2.7167       -.39116E-06** at limit **
  16  norm          3.2296        6.5964       -.36887E-05   -.37805E-03
  17  Prefactor     .10000E-03    5.1682       -.31512E-08** at limit **
  18  norm          .10117E-03    37.254       -.14031E-04** at limit **
  19  Prefactor     .59399E-01    2.5164       -.53376E-05   -.20096E-02
  20  Prefactor     .10000E-03    70.282        .54904E-05** at limit **
  21  Normalizat    1.0524        .21885        .14494E-05   -.41172E-03
  22  Prefactor     1.0983        .17162        .90050E-08    .58357E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 137.943
  Prefactor  = 36.1891
  Prefactor  = 0.0001
  norm       = 0.841942
  Prefactor  = 0.000100551
  Prefactor  = 6.26014
  Prefactor  = 15.2733
  norm       = 1.46065
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0217
  Prefactor  = 0.0001
  norm       = 3.22955
  Prefactor  = 0.0001
  norm       = 0.00010117
  Prefactor  = 0.0593992
  Prefactor  = 0.000100001
  Normalizat = 1.0524
  Prefactor  = 1.09833
 **********
 **   18 **HESSE 
 **********

 FCN=   6002.513     FROM HESSE     STATUS=OK           360 CALLS     3211 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0616        .15243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     137.94        87.214        .34294E-04   -1.3354    
   3  Prefactor     36.189        42.879        .66610E-04   -1.4504    
   4  Prefactor     .10000E-03    9.3439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .84194        .86849        .71268E-04   -1.5524    
   6  Prefactor     .10055E-03    8.2882        .50832E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.2601        3.6872        .10870E-03   -1.5208    
   8  Prefactor     15.273        9.8428        .10249E-03   -1.4926    
   9  norm          1.4606        .74682        .45091E-04   -1.5466    
  10  Prefactor     .10000E-03    9.0254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5738        .12742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.5768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.022        11.450        .12654E-03   -1.5075    
  15  Prefactor     .10000E-03    2.7332        .12440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.2296        6.6475        .22552E-03   -1.5349    
  17  Prefactor     .10000E-03    5.2948        .34186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10117E-03    26.938        .10946       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .59399E-01    6.8398        .14315E-02   -1.5659    
  20  Prefactor     .10000E-03    71.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0524        .25125        .29018E-03   -.91295    
  22  Prefactor     1.0983        .19981        .22940E-03   -.89520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20845e-08
Minuit parameter uncertainties:
  1  4.44405e-07
  2  87.2954
  3  42.9154
  4  4.14645e-06
  5  0.868505
  6  0.00427613
  7  3.68736
  8  9.84383
  9  0.746822
  10  0.000137822
  11  6.2404e-05
  12  4.08531e-05
  13  1.70423e-05
  14  11.4526
  15  3.22666e-05
  16  6.649
  17  9.26171e-05
  18  0.011231
  19  1.27388
  20  0.000528616
  21  0.251534
  22  0.199951
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.461e+00  7.468e-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.098e+00  2.000e-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.052e+00  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.50
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 5.41e-08
Energy Flux (Fixed Index): 4.55e-05 +/- 2.33e-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) = 6001.7753681
delta logL = 0.737374367392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6001.77288232
delta logL = 0.739860144008

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0123       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8918       1.0000          .0000       5.0000    
     3 'Normalizat'    .94213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1557       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=   6001.773     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0123        4.9809        .67375E-02    .59669E-03
   2  alpha         2.8920        3.8156        .21008        .72616E-04
   3  Normalizat    .94228        .86738E-01    .68712E-01    .16863E-04
   4  Prefactor     1.1556        .60202E-01    .35772E-01    .30195E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.01234
  alpha      = 2.89197
  Normalizat = 0.94228
  Prefactor  = 1.15558
 **********
 **   18 **HESSE 
 **********

 FCN=   6001.773     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0123        .88965        .30039E-04   -1.5507    
   2  alpha         2.8920        .70213        .84940E-02    .15744    
   3  Normalizat    .94228        .26543        .30398E-03   -.94990    
   4  Prefactor     1.1556        .20670        .22425E-03   -.87710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99348e-09
Minuit parameter uncertainties:
  1  0.889664
  2  0.711959
  3  0.265804
  4  0.206842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/327127': 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) = 6001.77288157
delta logL = 0.739860895078

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.012e+00  8.897e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.892e+00  7.120e-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.156e+00  2.068e-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:  9.423e-01  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.16
Ra Dec: 164.624 1.564
Photon Index (Free Index): 2.89 +/- 0.71
Photon Flux (Free Index): 1.95e-07 +/- 1.01e-07
Energy Flux (Free Index): 4.25e-05 +/- 1.80e-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/327127/cmap_HighResolution_356745601_357004801_4FGL_J1058.4+0133_daily_bin453.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='4.25e-05', photon_flux_error='5.41e-08', dlogl='7.40e-01', energy_flux='4.55e-05', photon_flux2='1.95e-07', job_status='DONE', time_completed='2021-09-02 22:25:06.680747', photon_index_error2='0.71', photon_index2='2.89', ts='7.50', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='1.05', time_epoch_completed='1630646706.68', return_code='0', job_id='327127', GAL2='1.16', EG2='0.94', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.01e-07', ts2='9.16', photon_index='2.19' WHERE bin_id='453' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:25:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 327127: <4FGL_J1058.4+0133_daily_bin453> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin453> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 22:11:45 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:16:24 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:24 2021
Terminated at Thu Sep  2 22:25:07 2021
Results reported at Thu Sep  2 22:25:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin453 164.624 1.5641 356745601 357004801 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 :                                   507.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             386.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   522 sec.
    Turnaround time :                            802 sec.

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

