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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin724
RA = 164.624, Dec = 1.5641
tmin = 426988801, tmax = 427248001
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='330168', job_status='RUN', time_executed='2021-09-02 22:24:13.421420', time_epoch_executed='1630646653.42' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330168

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330168/ft1_4FGL_J1058.4+0133_daily_bin724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330168/ft2_4FGL_J1058.4+0133_daily_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330168/ft1_4FGL_J1058.4+0133_daily_bin724.fits outfile=/scratch/kocevski/330168/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin724.fits ra=164.624 dec=1.5641 rad=12.0 tmin=426988801.0 tmax=427248001.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.82
user 5.50
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330168/ft1_filtered_4FGL_J1058.4+0133_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/330168/ft2_4FGL_J1058.4+0133_daily_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/330168/ltcube_426988801_427248001_4FGL_J1058.4+0133_daily_bin724.fits outfile=/scratch/kocevski/330168/expmap_426988801_427248001_4FGL_J1058.4+0133_daily_bin724.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/330168/ltcube_426988801_427248001_4FGL_J1058.4+0133_daily_bin724.fits
.....................!
real 193.60
user 187.53
sys 4.59

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/330168/ft1_filtered_4FGL_J1058.4+0133_daily_bin724.fits scfile=/scratch/kocevski/330168/ft2_4FGL_J1058.4+0133_daily_bin724.fits outfile=/scratch/kocevski/330168/cmap_426988801_427248001_4FGL_J1058.4+0133_daily_bin724.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330168/ft1_filtered_4FGL_J1058.4+0133_daily_bin724.fits scfile=/scratch/kocevski/330168/ft2_4FGL_J1058.4+0133_daily_bin724.fits outfile=/scratch/kocevski/330168/cmap_HighResolution_426988801_427248001_4FGL_J1058.4+0133_daily_bin724.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    55.523       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41658E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2374       1.0000         .10000E-03   10000.    
     5 'norm      '    .76908       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.544       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .35630E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8367       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.2599       1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.632       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2169       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2890       1.0000         .10000E-03   10000.    
    16 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .24871       1.0000         .10000E-03   10000.    
    18 'norm      '    19.647       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8660       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85711       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93888       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=   5215.018     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2464 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4727        .27182E-06** at limit **
   2  Prefactor     55.498        56.777       -.20589E-05    .74752E-04
   3  Prefactor     .10000E-03    184.27       -.11906E-05** at limit **
   4  Prefactor     4.2622        14.654        .21953E-05    .17518E-03
   5  norm          .77035        1.3798        .32492E-06    .79264E-03
   6  Prefactor     12.548        7.9507       -.32978E-06   -.14961E-03
   7  Prefactor     .10000E-03    1.4313        .80948E-07** at limit **
   8  Prefactor     .10000E-03    40.707        .93009E-05** at limit **
   9  norm          1.8361        .73871       -.25647E-07   -.67941E-03
  10  Prefactor     .10000E-03    17.178        .55173E-06** at limit **
  11  norm          3.2606        1.6823       -.13067E-07   -.19630E-04
  12  Prefactor     43.636        24.998        .66851E-07   -.35100E-04
  13  Prefactor     5.2183        11.071       -.14511E-05    .89797E-04
  14  Prefactor     .10000E-03    4.0126       -.11637E-06** at limit **
  15  Prefactor     6.2855        4.8074       -.34440E-06    .19254E-03
  16  norm          .10000E-03    9.6021       -.13696E-06** at limit **
  17  Prefactor     .27480        3.0313        .12005E-05   -.29941E-04
  18  norm          19.624        20.246        .12391E-06    .23460E-04
  19  Prefactor     2.8666        2.1923       -.90473E-08    .18215E-04
  20  Prefactor     .10000E-03    29.505       -.97279E-06** at limit **
  21  Normalizat    .85645        .21642        .46129E-06   -.78527E-04
  22  Prefactor     .93921        .16663        .62363E-08   -.50719E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 55.4982
  Prefactor  = 0.000100001
  Prefactor  = 4.26218
  norm       = 0.770347
  Prefactor  = 12.5477
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.83607
  Prefactor  = 0.0001
  norm       = 3.26057
  Prefactor  = 43.636
  Prefactor  = 5.21825
  Prefactor  = 0.0001
  Prefactor  = 6.28555
  norm       = 0.0001
  Prefactor  = 0.274799
  norm       = 19.624
  Prefactor  = 2.8666
  Prefactor  = 0.0001
  Normalizat = 0.856454
  Prefactor  = 0.939209
 **********
 **   18 **HESSE 
 **********

 FCN=   5215.018     FROM HESSE     STATUS=OK           352 CALLS     2816 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4771        .14901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     55.498        56.360        .26917E-03   -1.4217    
   3  Prefactor     .10000E-03    181.81        .21245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.2622        14.682        .19575E-03   -1.5295    
   5  norm          .77035        1.2879        .10737E-02   -1.5532    
   6  Prefactor     12.548        7.9276        .11310E-03   -1.4999    
   7  Prefactor     .10000E-03    1.4442        .84244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    41.225        .37706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8361        .72576        .36619E-04   -1.5437    
  10  Prefactor     .10000E-03    17.485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2606        1.6819        .64517E-04   -1.5347    
  12  Prefactor     43.636        24.988        .60693E-04   -1.4386    
  13  Prefactor     5.2183        11.100        .87996E-03   -1.5251    
  14  Prefactor     .10000E-03    4.0253        .14129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.2855        4.8523        .64402E-03   -1.5206    
  16  norm          .10000E-03    9.8497        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .27480        16.118        .21125E-02   -1.5603    
  18  norm          19.624        20.365        .90362E-04   -1.4822    
  19  Prefactor     2.8666        2.1876        .89994E-04   -1.5369    
  20  Prefactor     .10000E-03    29.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .85645        .24868        .27663E-03   -.98008    
  22  Prefactor     .93921        .19472        .21940E-03   -.94784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40422e-08
Minuit parameter uncertainties:
  1  9.4417e-06
  2  56.4138
  3  0.00101202
  4  14.6949
  5  1.28796
  6  7.92828
  7  3.0271e-06
  8  0.000324941
  9  0.725763
  10  4.67111e-05
  11  1.68197
  12  24.9935
  13  11.1043
  14  9.11111e-06
  15  4.85257
  16  1.74468e-05
  17  4.20962
  18  20.3727
  19  2.18771
  20  7.27903e-05
  21  0.249009
  22  0.194865
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.836e+00  7.258e-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:  9.392e-01  1.949e-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:  8.565e-01  2.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.32
Ra Dec: 164.624 1.564
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.33e-07 +/- 5.26e-08
Energy Flux (Fixed Index): 5.72e-05 +/- 2.26e-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) = 5213.91749673
delta logL = 1.10037741223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5213.91376338
delta logL = 1.1041107627

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1849       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7486       1.0000          .0000       5.0000    
     3 'Normalizat'    .78967       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97730       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=   5213.914     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      208 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1850        5.7423        .59475E-02    .27588E-02
   2  alpha         2.7485        3.7267        .15123        .15267E-03
   3  Normalizat    .78968        .97563E-01    .64844E-01    .13404E-03
   4  Prefactor     .97728        .78261E-01    .45983E-01    .91338E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.18504
  alpha      = 2.74854
  Normalizat = 0.789681
  Prefactor  = 0.977281
 **********
 **   18 **HESSE 
 **********

 FCN=   5213.914     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1850        .73435        .26406E-04   -1.5490    
   2  alpha         2.7485        .42865        .64860E-02    .99580E-01
   3  Normalizat    .78968        .23877        .28686E-03   -1.0045    
   4  Prefactor     .97728        .19577        .21543E-03   -.93491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70281e-10
Minuit parameter uncertainties:
  1  0.734358
  2  0.430796
  3  0.239084
  4  0.195916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330168': 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) = 5213.91376335
delta logL = 1.10411079172

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.185e+00  7.344e-01  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.749e+00  4.308e-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:  9.773e-01  1.959e-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:  7.897e-01  2.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.52
Ra Dec: 164.624 1.564
Photon Index (Free Index): 2.75 +/- 0.43
Photon Flux (Free Index): 1.84e-07 +/- 6.96e-08
Energy Flux (Free Index): 4.38e-05 +/- 1.72e-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/330168/cmap_HighResolution_426988801_427248001_4FGL_J1058.4+0133_daily_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.33e-07', energy_flux2='4.38e-05', photon_flux_error='5.26e-08', dlogl='1.10e+00', energy_flux='5.72e-05', photon_flux2='1.84e-07', job_status='DONE', time_completed='2021-09-02 22:33:56.519283', photon_index_error2='0.43', photon_index2='2.75', ts='13.32', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='0.86', time_epoch_completed='1630647236.52', return_code='0', job_id='330168', GAL2='0.98', EG2='0.79', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='6.96e-08', ts2='15.52', photon_index='2.19' WHERE bin_id='724' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:33:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 330168: <4FGL_J1058.4+0133_daily_bin724> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin724> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 22:21:59 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:22:13 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:13 2021
Terminated at Thu Sep  2 22:33:57 2021
Results reported at Thu Sep  2 22:33:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin724 164.624 1.5641 426988801 427248001 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 :                                   578.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            718 sec.

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

