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


Performing analysis on: 4FGL_J1058.4+0133_daily_bin597
RA = 164.624, Dec = 1.5641
tmin = 394070401, tmax = 394329601
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='328579', job_status='RUN', time_executed='2021-09-02 22:20:55.072228', time_epoch_executed='1630646455.07' WHERE source_name='4FGL J1058.4+0133' and cadence='daily' and bin_id='597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/328579

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/328579/ft1_4FGL_J1058.4+0133_daily_bin597.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/328579/ft2_4FGL_J1058.4+0133_daily_bin597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/328579/ft1_4FGL_J1058.4+0133_daily_bin597.fits outfile=/scratch/kocevski/328579/ft1_filteredMKT_4FGL_J1058.4+0133_daily_bin597.fits ra=164.624 dec=1.5641 rad=12.0 tmin=394070401.0 tmax=394329601.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 4.56
user 4.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/328579/ft1_filtered_4FGL_J1058.4+0133_daily_bin597.fits" evtable="EVENTS" scfile=/scratch/kocevski/328579/ft2_4FGL_J1058.4+0133_daily_bin597.fits sctable="SC_DATA" outfile=/scratch/kocevski/328579/ltcube_394070401_394329601_4FGL_J1058.4+0133_daily_bin597.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/328579/ft2_4FGL_J1058.4+0133_daily_bin597.fits
.....................!
real 14.30
user 13.95
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/328579/ft1_filtered_4FGL_J1058.4+0133_daily_bin597.fits evtable="EVENTS" scfile=/scratch/kocevski/328579/ft2_4FGL_J1058.4+0133_daily_bin597.fits sctable="SC_DATA" expcube=/scratch/kocevski/328579/ltcube_394070401_394329601_4FGL_J1058.4+0133_daily_bin597.fits outfile=/scratch/kocevski/328579/expmap_394070401_394329601_4FGL_J1058.4+0133_daily_bin597.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/328579/ltcube_394070401_394329601_4FGL_J1058.4+0133_daily_bin597.fits
.....................!
real 190.66
user 185.98
sys 4.22

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/328579/ft1_filtered_4FGL_J1058.4+0133_daily_bin597.fits scfile=/scratch/kocevski/328579/ft2_4FGL_J1058.4+0133_daily_bin597.fits outfile=/scratch/kocevski/328579/cmap_394070401_394329601_4FGL_J1058.4+0133_daily_bin597.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/328579/ft1_filtered_4FGL_J1058.4+0133_daily_bin597.fits scfile=/scratch/kocevski/328579/ft2_4FGL_J1058.4+0133_daily_bin597.fits outfile=/scratch/kocevski/328579/cmap_HighResolution_394070401_394329601_4FGL_J1058.4+0133_daily_bin597.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.613       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.949       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.6855       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7537       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3549       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.4366       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0198       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    25.247       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24416E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .82576       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2322       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=   6444.550     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2721 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.612        12.315        .31010E-05   -.95441E-04
   2  Prefactor     12.926        90.464       -.40959E-04    .11505E-03
   3  Prefactor     .10000E-03    32.731       -.31319E-07** at limit **
   4  Prefactor     .10000E-03    7.8872        .59851E-06** at limit **
   5  norm          2.6855        1.5962        .17693E-07   -.30602E-03
   6  Prefactor     .10000E-03    1.7976       -.63869E-08** at limit **
   7  Prefactor     1.7537        2.1866        .13425E-06   -.17239E-03
   8  Prefactor     3.3552        6.9916       -.16799E-05   -.19773E-03
   9  norm          .10000E-03    .13283        .49528E-08** at limit **
  10  Prefactor     .10000E-03    3.0524       -.29412E-08** at limit **
  11  norm          5.4365        2.0540       -.26868E-06   -.35801E-02
  12  Prefactor     .10000E-03    42.968        .35264E-06** at limit **
  13  Prefactor     .10000E-03    7.7048       -.66272E-06** at limit **
  14  Prefactor     .10000E-03    6.8297       -.48127E-07** at limit **
  15  Prefactor     7.0187        4.7971        .19325E-05   -.54357E-03
  16  norm          .10000E-03    2.1953       -.10540E-06** at limit **
  17  Prefactor     .10000E-03    2.5242       -.59650E-06** at limit **
  18  norm          25.241        27.514        .84203E-05    .44315E-03
  19  Prefactor     .10000E-03    .68847       -.67160E-08** at limit **
  20  Prefactor     .10005E-03    21.128       -.67717E-05** at limit **
  21  Normalizat    .82578        .19752        .20484E-05    .18753E-03
  22  Prefactor     1.2322        .16179       -.13399E-05    .60173E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.612
  Prefactor  = 12.9262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.68551
  Prefactor  = 0.0001
  Prefactor  = 1.75374
  Prefactor  = 3.35519
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.43651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.01868
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 25.2406
  Prefactor  = 0.0001
  Prefactor  = 0.000100049
  Normalizat = 0.825785
  Prefactor  = 1.23217
 **********
 **   18 **HESSE 
 **********

 FCN=   6444.550     FROM HESSE     STATUS=OK           344 CALLS     3065 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.612        12.223        .10856E-03   -1.4970    
   2  Prefactor     12.926        86.566        .11131E-03   -1.4989    
   3  Prefactor     .10000E-03    32.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.8929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6855        1.5919        .75062E-04   -1.5380    
   6  Prefactor     .10000E-03    1.8024        .10510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7537        2.1677        .12763E-03   -1.5443    
   8  Prefactor     3.3552        7.0013        .22095E-03   -1.5342    
   9  norm          .10000E-03    .13735        .57020E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.0640        .13692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.4365        2.0930        .34123E-03   -1.5242    
  12  Prefactor     .10000E-03    43.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.7367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.9136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0187        4.7504        .13637E-03   -1.5178    
  16  norm          .10000E-03    2.1979        .11615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.5913        .24892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          25.241        29.150        .79725E-04   -1.4703    
  19  Prefactor     .10000E-03    .69998        .65022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10005E-03    26.697        .97867E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .82578        .23539        .30796E-03   -.99119    
  22  Prefactor     1.2322        .19349        .21488E-03   -.85347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36007e-09
Minuit parameter uncertainties:
  1  12.2248
  2  67.0421
  3  0.000103501
  4  5.89189e-06
  5  1.59191
  6  1.15396e-07
  7  2.16784
  8  7.00304
  9  2.46823e-07
  10  3.9252e-06
  11  2.09306
  12  6.60273e-05
  13  1.06637e-05
  14  4.26093e-05
  15  4.75069
  16  1.44882e-05
  17  9.43489e-05
  18  29.1664
  19  8.52898e-07
  20  0.00229566
  21  0.235679
  22  0.1936
Done.

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

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.000e-04  2.468e-07  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.232e+00  1.936e-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.258e-01  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.624 1.564
Photon Flux Upper Limit: 5.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/328579/likelihoodResults_394070401_394329601_4FGL_J1058.4+0133_daily_bin597.txt

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) = 6444.55020017
delta logL = -4.60514838778e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6444.55015643
delta logL = -2.32057755056e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1858       1.0000          .0000       5.0000    
     3 'Normalizat'    .82544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2323       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=   6444.550     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      244 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .13810        .57052E-04** at limit **
   2  alpha         2.0978        3.2913        .16628       -.85462E-06
   3  Normalizat    .82579        .22543        .30795E-03    .36544E-03
   4  Prefactor     1.2322        .18937        .21488E-03    .56044E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.09779
  Normalizat = 0.825789
  Prefactor  = 1.23217
 **********
 **   18 **HESSE 
 **********

 FCN=   6444.550     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .13792        .11410E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0978        2.9206        .33256E-01   -.16159    
   3  Normalizat    .82579        .22563        .12318E-04   -.99119    
   4  Prefactor     1.2322        .18954        .42976E-04   -.85347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69546e-10
Minuit parameter uncertainties:
  1  3.13569e-06
  2  52.5785
  3  0.225884
  4  0.189642
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/328579': 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) = 6444.55015262
delta logL = 1.4970491975e-06

Extracting fit parameters...

4FGL J1058.4+0133
   Spectrum: LogParabola
234         norm:  1.000e-04  3.136e-06  1.000e-04  1.000e+04 ( 1.000e-11)
235        alpha:  2.098e+00  5.258e+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.232e+00  1.896e-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.258e-01  2.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.624 1.564

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/328579/cmap_HighResolution_394070401_394329601_4FGL_J1058.4+0133_daily_bin597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.18e-05', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2021-09-02 22:32:32.248703', job_id='328579', GAL2='1.23', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630647152.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.50e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='597' AND source_name='4FGL J1058.4+0133' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:32:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 328579: <4FGL_J1058.4+0133_daily_bin597> in cluster <slac> Done

Job <4FGL_J1058.4+0133_daily_bin597> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  2 22:16:33 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 22:20:34 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:20:34 2021
Terminated at Thu Sep  2 22:32:33 2021
Results reported at Thu Sep  2 22:32:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.4+0133_daily_bin597 164.624 1.5641 394070401 394329601 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 :                                   693.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            960 sec.

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

