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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin970
RA = 164.624, Dec = 1.5641
tmin = 490752001, tmax = 491011201
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='331374', job_status='RUN', time_executed='2021-09-02 22:30:14.344412', time_epoch_executed='1630647014.34' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331374

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331374/ft1_4FGL_J1058.4+0133_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331374/ft2_4FGL_J1058.4+0133_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/331374/ft1_4FGL_J1058.4+0133_daily_bin970.fits outfile=/scratch/kocevski/331374/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin970.fits ra=164.624 dec=1.5641 rad=12.0 tmin=490752001.0 tmax=491011201.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 6.08
user 5.55
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331374/ft1_filtered_4FGL_J1058.4+0133_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/331374/ft2_4FGL_J1058.4+0133_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/331374/ltcube_490752001_491011201_4FGL_J1058.4+0133_daily_bin970.fits outfile=/scratch/kocevski/331374/expmap_490752001_491011201_4FGL_J1058.4+0133_daily_bin970.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/331374/ltcube_490752001_491011201_4FGL_J1058.4+0133_daily_bin970.fits
.....................!
real 193.53
user 188.34
sys 4.40

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/331374/ft1_filtered_4FGL_J1058.4+0133_daily_bin970.fits scfile=/scratch/kocevski/331374/ft2_4FGL_J1058.4+0133_daily_bin970.fits outfile=/scratch/kocevski/331374/cmap_490752001_491011201_4FGL_J1058.4+0133_daily_bin970.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/331374/ft1_filtered_4FGL_J1058.4+0133_daily_bin970.fits scfile=/scratch/kocevski/331374/ft2_4FGL_J1058.4+0133_daily_bin970.fits outfile=/scratch/kocevski/331374/cmap_HighResolution_490752001_491011201_4FGL_J1058.4+0133_daily_bin970.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.831       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.7578       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5490       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21442       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.7346       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .38065       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.900       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .58720E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10639E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.370       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10637E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6031       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96826       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85796       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=   5580.124     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2386 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8663       -.36258E-08** at limit **
   2  Prefactor     24.834        44.347        .39178E-05   -.26975E-04
   3  Prefactor     .10000E-03    14.878        .30632E-06** at limit **
   4  Prefactor     .10000E-03    4.4003        .81829E-07** at limit **
   5  norm          5.7588        2.0277       -.19098E-07    .24493E-03
   6  Prefactor     1.5391        7.0686       -.28232E-05   -.70753E-03
   7  Prefactor     .21430        1.7304       -.24967E-06    .11111E-03
   8  Prefactor     .10000E-03    6.0274        .44636E-06** at limit **
   9  norm          3.7340        .81004        .28706E-07    .15522E-03
  10  Prefactor     .10000E-03    3.1904        .99456E-07** at limit **
  11  norm          .37899        .94094       -.14984E-06   -.10900E-02
  12  Prefactor     32.884        25.845       -.73301E-05    .25946E-03
  13  Prefactor     .10000E-03    10.003       -.19605E-05** at limit **
  14  Prefactor     .10018E-03    7.9830        .38402E-06** at limit **
  15  Prefactor     .10000E-03    2.1954        .38774E-07** at limit **
  16  norm          10.390        7.9998        .15541E-06   -.13867E-03
  17  Prefactor     .10000E-03    1.7723        .10975E-07** at limit **
  18  norm          .10000E-03    8.9762        .21727E-05** at limit **
  19  Prefactor     1.6030        1.3163       -.58634E-07    .13532E-03
  20  Prefactor     .10000E-03    7.8697       -.11834E-05** at limit **
  21  Normalizat    .96810        .20260        .10518E-05    .92175E-04
  22  Prefactor     .85827        .15540        .15748E-06    .11368E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 24.8336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.75885
  Prefactor  = 1.53907
  Prefactor  = 0.214295
  Prefactor  = 0.0001
  norm       = 3.73397
  Prefactor  = 0.0001
  norm       = 0.378986
  Prefactor  = 32.8843
  Prefactor  = 0.0001
  Prefactor  = 0.000100182
  Prefactor  = 0.0001
  norm       = 10.3901
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.60298
  Prefactor  = 0.0001
  Normalizat = 0.968103
  Prefactor  = 0.858268
 **********
 **   18 **HESSE 
 **********

 FCN=   5580.124     FROM HESSE     STATUS=OK           354 CALLS     2740 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8696        .12350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.834        44.147        .80389E-04   -1.4711    
   3  Prefactor     .10000E-03    14.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4013        .15303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.7588        2.0183        .58787E-04   -1.5228    
   6  Prefactor     1.5391        8.2133        .34228E-03   -1.5460    
   7  Prefactor     .21430        15.140        .18229E-02   -1.5615    
   8  Prefactor     .10000E-03    6.1122        .17891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.7340        .81073        .29873E-04   -1.5321    
  10  Prefactor     .10000E-03    3.1955        .13024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .37899        .80410        .11083E-02   -1.5585    
  12  Prefactor     32.884        25.037        .69860E-04   -1.4560    
  13  Prefactor     .10000E-03    10.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10018E-03    9.2293        .63931E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.2212        .10794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.390        7.9870        .12442E-03   -1.5063    
  17  Prefactor     .10000E-03    1.7992        .97039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.9549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6030        1.3231        .75567E-04   -1.5455    
  20  Prefactor     .10000E-03    7.8747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96810        .23927        .26390E-03   -.94107    
  22  Prefactor     .85827        .18119        .22859E-03   -.97615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2753e-09
Minuit parameter uncertainties:
  1  4.16881e-06
  2  44.2055
  3  2.02698e-05
  4  4.65078e-06
  5  2.01832
  6  7.11209
  7  3.60259
  8  1.96205e-05
  9  0.810734
  10  1.9846e-06
  11  0.804122
  12  25.0447
  13  2.1169e-05
  14  0.00259016
  15  6.56188e-06
  16  7.98786
  17  4.15966e-06
  18  4.39885e-05
  19  1.32316
  20  1.60825e-05
  21  0.239533
  22  0.181319
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  3.734e+00  8.107e-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.583e-01  1.813e-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.681e-01  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 72.44
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 2.71e-07 +/- 5.87e-08
Energy Flux (Fixed Index): 1.16e-04 +/- 2.53e-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) = 5579.96351895
delta logL = 0.160737708021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5579.95842691
delta logL = 0.165829747935

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4479       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3179       1.0000          .0000       5.0000    
     3 'Normalizat'    .94316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87121       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=   5579.958     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      219 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4485        10.150        .54453E-02    .38721E-03
   2  alpha         2.3178        2.0658        .11381        .75530E-04
   3  Normalizat    .94311        .23495        .45451E-01   -.34563E-05
   4  Prefactor     .87126        .15227        .44637E-01    .62853E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.4485
  alpha      = 2.31784
  Normalizat = 0.943113
  Prefactor  = 0.87126
 **********
 **   18 **HESSE 
 **********

 FCN=   5579.958     FROM HESSE     STATUS=OK            29 CALLS      248 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4485        .91607        .28091E-04   -1.5337    
   2  alpha         2.3178        .22469        .49424E-03   -.72929E-01
   3  Normalizat    .94311        .22226        .26670E-03   -.94961    
   4  Prefactor     .87126        .18011        .22697E-03   -.97153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11058e-12
Minuit parameter uncertainties:
  1  0.916075
  2  0.224992
  3  0.222481
  4  0.180235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331374': 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) = 5579.9584266
delta logL = 0.165830062882

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  3.449e+00  9.161e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.318e+00  2.250e-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.713e-01  1.802e-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.431e-01  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 72.29
Ra Dec: 164.624 1.564
Photon Index (Free Index): 2.32 +/- 0.22
Photon Flux (Free Index): 2.93e-07 +/- 7.31e-08
Energy Flux (Free Index): 1.05e-04 +/- 2.79e-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/331374/cmap_HighResolution_490752001_491011201_4FGL_J1058.4+0133_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.71e-07', energy_flux2='1.05e-04', photon_flux_error='5.87e-08', dlogl='1.66e-01', energy_flux='1.16e-04', photon_flux2='2.93e-07', job_status='DONE', time_completed='2021-09-02 22:40:17.781814', photon_index_error2='0.22', photon_index2='2.32', ts='72.44', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.79e-05', EG='0.97', time_epoch_completed='1630647617.78', return_code='0', job_id='331374', GAL2='0.87', EG2='0.94', return_code2='0', energy_flux_error='2.53e-05', photon_flux_error2='7.31e-08', ts2='72.29', photon_index='2.19' WHERE bin_id='970' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:40:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 331374: <4FGL_J1058.4+0133_daily_bin970> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin970> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Sep  2 22:26:32 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:26:58 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:26:58 2021
Terminated at Thu Sep  2 22:40:18 2021
Results reported at Thu Sep  2 22:40:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin970 164.624 1.5641 490752001 491011201 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 :                                   598.07 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             260.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            826 sec.

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

