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


Performing analysis on: 4FGL_J1058.6+5627_daily_bin1331
RA = 164.665, Dec = 56.4634
tmin = 584323201, tmax = 584582401
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='376056', job_status='RUN', time_executed='2021-09-03 00:47:04.207816', time_epoch_executed='1630655224.21' WHERE source_name='4FGL J1058.6+5627' and cadence='daily' and bin_id='1331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/376056

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/376056/ft1_4FGL_J1058.6+5627_daily_bin1331.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/376056/ft2_4FGL_J1058.6+5627_daily_bin1331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/376056/ft1_4FGL_J1058.6+5627_daily_bin1331.fits outfile=/scratch/kocevski/376056/ft1_filteredMKT_4FGL_J1058.6+5627_daily_bin1331.fits ra=164.665 dec=56.4634 rad=12.0 tmin=584323201.0 tmax=584582401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.53
user 3.30
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/376056/ft2_4FGL_J1058.6+5627_daily_bin1331.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/376056/ft2_4FGL_J1058.6+5627_daily_bin1331.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/376056/ft1_filteredMKT_4FGL_J1058.6+5627_daily_bin1331.fits evtable="EVENTS" outfile="/scratch/kocevski/376056/ft1_filtered_4FGL_J1058.6+5627_daily_bin1331.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.59
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/376056/ft1_filtered_4FGL_J1058.6+5627_daily_bin1331.fits" evtable="EVENTS" scfile=/scratch/kocevski/376056/ft2_4FGL_J1058.6+5627_daily_bin1331.fits sctable="SC_DATA" outfile=/scratch/kocevski/376056/ltcube_584323201_584582401_4FGL_J1058.6+5627_daily_bin1331.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/376056/ft2_4FGL_J1058.6+5627_daily_bin1331.fits
.....................!
real 16.60
user 16.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/376056/ft1_filtered_4FGL_J1058.6+5627_daily_bin1331.fits evtable="EVENTS" scfile=/scratch/kocevski/376056/ft2_4FGL_J1058.6+5627_daily_bin1331.fits sctable="SC_DATA" expcube=/scratch/kocevski/376056/ltcube_584323201_584582401_4FGL_J1058.6+5627_daily_bin1331.fits outfile=/scratch/kocevski/376056/expmap_584323201_584582401_4FGL_J1058.6+5627_daily_bin1331.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/376056/ltcube_584323201_584582401_4FGL_J1058.6+5627_daily_bin1331.fits
.....................!
real 193.47
user 186.63
sys 5.27

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 237 point sources and 0 extended sources

Setting source of interest to:
4FGL J1058.6+5627 @ 164.665 56.4634

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/376056/ft1_filtered_4FGL_J1058.6+5627_daily_bin1331.fits scfile=/scratch/kocevski/376056/ft2_4FGL_J1058.6+5627_daily_bin1331.fits outfile=/scratch/kocevski/376056/cmap_584323201_584582401_4FGL_J1058.6+5627_daily_bin1331.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.665 yref=56.4634 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/376056/ft1_filtered_4FGL_J1058.6+5627_daily_bin1331.fits scfile=/scratch/kocevski/376056/ft2_4FGL_J1058.6+5627_daily_bin1331.fits outfile=/scratch/kocevski/376056/cmap_HighResolution_584323201_584582401_4FGL_J1058.6+5627_daily_bin1331.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.665 yref=56.4634 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.60
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/376056/ft1_filtered_4FGL_J1058.6+5627_daily_bin1331.fits evtable="EVENTS" scfile=/scratch/kocevski/376056/ft2_4FGL_J1058.6+5627_daily_bin1331.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/376056/Model_4FGL_J1058.6+5627_daily_bin1331.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/376056/ft1_filtered_4FGL_J1058.6+5627_daily_bin1331.fits.....................!
real 38.79
user 36.42
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/376056/ft1_filtered_4FGL_J1058.6+5627_daily_bin1331.fits', '/scratch/kocevski/376056/ft2_4FGL_J1058.6+5627_daily_bin1331.fits', expMap='/scratch/kocevski/376056/expmap_584323201_584582401_4FGL_J1058.6+5627_daily_bin1331.fits', expCube='/scratch/kocevski/376056/ltcube_584323201_584582401_4FGL_J1058.6+5627_daily_bin1331.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/376056/Model_4FGL_J1058.6+5627_daily_bin1331.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.6+5627'

4FGL J1058.6+5627
   Spectrum: LogParabola
399         norm:  2.525e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
400        alpha:  1.858e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
401         beta:  4.581e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
402           Eb:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/376056/ft1_filtered_4FGL_J1058.6+5627_daily_bin1331.fits
Spacecraft file(s): /scratch/kocevski/376056/ft2_4FGL_J1058.6+5627_daily_bin1331.fits
Exposure map: /scratch/kocevski/376056/expmap_584323201_584582401_4FGL_J1058.6+5627_daily_bin1331.fits
Exposure cube: /scratch/kocevski/376056/ltcube_584323201_584582401_4FGL_J1058.6+5627_daily_bin1331.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/376056/Model_4FGL_J1058.6+5627_daily_bin1331.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) = 3392.24656359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2478       1.0000         .10000E-03   10000.    
     4 'norm      '    .37546       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.463       1.0000         .10000E-03   10000.    
     6 'norm      '    .70477       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7327       1.0000         .10000E-03   10000.    
     9 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9943       1.0000         .10000E-03   10000.    
    11 'norm      '    21.117       1.0000         .10000E-03   10000.    
    12 'Prefactor '    116.77       1.0000         .10000E-03   10000.    
    13 'norm      '    .11238E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.8472       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11651E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.7792       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.2352       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.3990       1.0000         .10000E-03   10000.    
    26 'norm      '    13.926       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.836       1.0000         .10000E-03   10000.    
    28 'norm      '    8.1566       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    1.3462       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .86969       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0794       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7560E+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=   3392.202     FROM MIGRAD    STATUS=CONVERGED   1720 CALLS     5618 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3313        .16419E-02** at limit **
   2  Prefactor     .10000E-03    5.2456        .13018E-02** at limit **
   3  Prefactor     5.2465        11.372        .17546E-03   -.35117E-04
   4  norm          .20844        438.07        .41756E-02    .41108E-04
   5  Prefactor     20.927        78.794        .88541E-04   -.46031E-04
   6  norm          .70462        .58637        .39883E-04   -.16120E-03
   7  Prefactor     .10000E-03    5.1611        .12889E-02** at limit **
   8  norm          1.7326        1.1439        .49005E-04   -.49263E-03
   9  norm          .10000E-03    7.4930        .22489E-02** at limit **
  10  Prefactor     7.9898        30.460        .14181E-03   -.24412E-04
  11  norm          21.116        28.426        .87163E-04   -.72415E-04
  12  Prefactor     116.68        42.938        .18617E-03    .22182E-03
  13  norm          .10000E-03    5.7154        .26616E-03** at limit **
  14  norm          2.8474        2.4640        .82511E-04   -.18511E-03
  15  Prefactor     .10002E-03    86.023        .18142E-02** at limit **
  16  Prefactor     .10000E-03    45.523        .18142E-02** at limit **
  17  Prefactor     .10000E-03    157.36        .18142E-02** at limit **
  18  norm          7.7800        4.2384        .85673E-04   -.12945E-03
  19  Prefactor     .10000E-03    38.195        .18142E-02** at limit **
  20  Prefactor     .10000E-03    14.856        .18142E-02** at limit **
  21  Prefactor     .10000E-03    37.634        .18142E-02** at limit **
  22  norm          .10000E-03    23.710        .18142E-02** at limit **
  23  Prefactor     9.2363        10.897        .65940E-03    .28017E-05
  24  Prefactor     .10000E-03    20.916        .18142E-02** at limit **
  25  Prefactor     3.4019        58.580        .21944E-03    .69680E-05
  26  norm          13.926        17.660        .10733E-03   -.31617E-04
  27  Prefactor     12.836        5.2157        .81062E-04   -.39199E-04
  28  norm          8.1564        7.1516        .13682E-03   -.43539E-04
  29  Prefactor     .10000E-03    6.4246        .14344E-02** at limit **
  30  Prefactor     .10000E-03    7.6426        .15724E-02** at limit **
  31  norm          1.3464        1.8229        .88821E-04   -.96381E-04
  32  Prefactor     .10000E-03    15.328        .18142E-02** at limit **
  33  Normalizat    .86965        .28614        .24525E-03   -.51685E-03
  34  Prefactor     1.0794        .35546        .28839E-03   -.13813E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.24654
  norm       = 0.208444
  Prefactor  = 20.9266
  norm       = 0.704625
  Prefactor  = 0.0001
  norm       = 1.73257
  norm       = 0.000100001
  Prefactor  = 7.98984
  norm       = 21.1163
  Prefactor  = 116.679
  norm       = 0.000100001
  norm       = 2.84735
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.78003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 9.23628
  Prefactor  = 0.0001
  Prefactor  = 3.4019
  norm       = 13.9265
  Prefactor  = 12.8364
  norm       = 8.15636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.3464
  Prefactor  = 0.0001
  Normalizat = 0.869653
  Prefactor  = 1.07935
 **********
 **   18 **HESSE 
 **********

 FCN=   3392.202     FROM HESSE     STATUS=OK           702 CALLS     6320 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3314        .32838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.2458        .26037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2465        11.372        .70186E-05   -1.5250    
   4  norm          .20844        343.48        .16702E-03   -1.5617    
   5  Prefactor     20.927        68.344        .35417E-05   -1.4793    
   6  norm          .70462        .58634        .15953E-05   -1.5540    
   7  Prefactor     .10000E-03    5.1615        .25778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7326        1.1438        .19602E-05   -1.5445    
   9  norm          .10000E-03    7.5172        .44977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.9898        30.456        .56723E-05   -1.5143    
  11  norm          21.116        28.426        .17433E-04   -1.4789    
  12  Prefactor     116.68        42.933        .37235E-04   -1.3543    
  13  norm          .10000E-03    5.7156        .53233E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8474        2.4640        .33004E-05   -1.5370    
  15  Prefactor     .10002E-03    86.023        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    45.523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    157.36        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.7800        4.2383        .34269E-05   -1.5150    
  19  Prefactor     .10000E-03    38.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.856        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    37.634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    23.710        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.2363        10.893        .26376E-04   -1.5100    
  24  Prefactor     .10000E-03    20.917        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.4019        58.560        .87778E-05   -1.5339    
  26  norm          13.926        17.659        .21466E-04   -1.4961    
  27  Prefactor     12.836        5.2157        .32425E-05   -1.4991    
  28  norm          8.1564        7.1506        .54730E-05   -1.5137    
  29  Prefactor     .10000E-03    6.4255        .28688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    7.6426        .31449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          1.3464        1.8228        .35528E-05   -1.5476    
  32  Prefactor     .10000E-03    15.328        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .86965        .28494        .49050E-04   -.97535    
  34  Prefactor     1.0794        .35439        .57677E-04   -.90129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47086e-09
Minuit parameter uncertainties:
  1  1.31044e-06
  2  9.08295e-06
  3  11.3764
  4  17.0175
  5  68.6015
  6  0.586343
  7  2.09833e-06
  8  1.1438
  9  0.00017825
  10  30.5154
  11  28.4438
  12  42.9441
  13  0.000169375
  14  2.46406
  15  0.00264524
  16  0.000245005
  17  0.000851549
  18  4.23847
  19  1.08168e-05
  20  5.0064e-05
  21  0.000279128
  22  7.83985e-05
  23  10.895
  24  2.90644e-05
  25  28.2609
  26  17.6661
  27  5.2159
  28  7.15132
  29  8.78686e-06
  30  8.64136e-06
  31  1.82284
  32  1.82654e-05
  33  0.285435
  34  0.35517
Done.

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

Extracting fit parameters...

4FGL J1058.6+5627
   Spectrum: LogParabola
399         norm:  7.780e+00  4.238e+00  1.000e-04  1.000e+04 ( 1.000e-12)
400        alpha:  1.858e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
401         beta:  4.581e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
402           Eb:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
753    Prefactor:  1.079e+00  3.552e-01  0.000e+00  1.000e+01 ( 1.000e+00)
754        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
755        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
752   Normalization:  8.697e-01  2.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.19
Ra Dec: 164.665 56.463
Photon Index (Fixed Index): 1.86 +/- 0.00
Photon Flux (Fixed Index): 6.91e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 6.12e-05 +/- 3.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) = 3389.73969664
delta logL = 2.46220602292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3389.40427688
delta logL = 2.79762578488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9382       1.0000         .10000E-03   10000.    
     2 'alpha     '    .91912       1.0000          .0000       5.0000    
     3 'Normalizat'    .89415       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0758       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3389.404     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      213 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9368        2.7928        .50820E-02   -.11071E-03
   2  alpha         .91814        .29712        .16559       -.19889E-04
   3  Normalizat    .89372        .22041        .44827E-01    .71252E-05
   4  Prefactor     1.0761        .28692        .65338E-01    .57375E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.93683
  alpha      = 0.918138
  Normalizat = 0.89372
  Prefactor  = 1.07606
 **********
 **   18 **HESSE 
 **********

 FCN=   3389.404     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .95E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9368        3.8575        .66264E-04   -1.5311    
   2  alpha         .91814        .41249        .72549E-03   -.68509    
   3  Normalizat    .89372        .26507        .24246E-03   -.96681    
   4  Prefactor     1.0761        .34487        .28902E-03   -.90235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.50142e-15
Minuit parameter uncertainties:
  1  3.85771
  2  0.415678
  3  0.265456
  4  0.345581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/376056': 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) = 3389.4042684
delta logL = 2.7976342666

Extracting fit parameters...

4FGL J1058.6+5627
   Spectrum: LogParabola
399         norm:  3.937e+00  3.858e+00  1.000e-04  1.000e+04 ( 1.000e-12)
400        alpha:  9.181e-01  4.157e-01  0.000e+00  5.000e+00 ( 1.000e+00)
401         beta:  4.581e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
402           Eb:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
753    Prefactor:  1.076e+00  3.456e-01  0.000e+00  1.000e+01 ( 1.000e+00)
754        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
755        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
752   Normalization:  8.937e-01  2.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.75
Ra Dec: 164.665 56.463
Photon Index (Free Index): 0.92 +/- 0.42
Photon Flux (Free Index): 2.63e-08 +/- 1.82e-08
Energy Flux (Free Index): 3.20e-04 +/- 2.71e-04

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/376056/cmap_HighResolution_584323201_584582401_4FGL_J1058.6+5627_daily_bin1331.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.91e-08', energy_flux2='3.20e-04', photon_flux_error='3.77e-08', dlogl='2.80e+00', energy_flux='6.12e-05', photon_flux2='2.63e-08', job_status='DONE', time_completed='2021-09-03 01:00:06.126576', photon_index_error2='0.42', photon_index2='0.92', ts='23.19', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='2.71e-04', EG='0.87', time_epoch_completed='1630656006.13', return_code='0', job_id='376056', GAL2='1.08', EG2='0.89', return_code2='0', energy_flux_error='3.33e-05', photon_flux_error2='1.82e-08', ts2='28.75', photon_index='1.86' WHERE bin_id='1331' AND source_name='4FGL J1058.6+5627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 01:00:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 376056: <4FGL_J1058.6+5627_daily_bin1331> in cluster <slac> Done

Job <4FGL_J1058.6+5627_daily_bin1331> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 00:46:35 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 00:46:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 00:46:46 2021
Terminated at Fri Sep  3 01:00:06 2021
Results reported at Fri Sep  3 01:00:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+5627_daily_bin1331 164.665 56.4634 584323201 584582401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.6+5627 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   773.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             330.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            811 sec.

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

