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


Performing analysis on: 4FGL_J1058.6+5627_daily_bin741
RA = 164.665, Dec = 56.4634
tmin = 431395201, tmax = 431654401
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='372055', job_status='RUN', time_executed='2021-09-03 00:32:34.881826', time_epoch_executed='1630654354.88' WHERE source_name='4FGL J1058.6+5627' and cadence='daily' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/372055

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/372055/ft1_4FGL_J1058.6+5627_daily_bin741.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/372055/ft2_4FGL_J1058.6+5627_daily_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/372055/ft1_4FGL_J1058.6+5627_daily_bin741.fits outfile=/scratch/kocevski/372055/ft1_filteredMKT_4FGL_J1058.6+5627_daily_bin741.fits ra=164.665 dec=56.4634 rad=12.0 tmin=431395201.0 tmax=431654401.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.45
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/372055/ft1_filtered_4FGL_J1058.6+5627_daily_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/372055/ft2_4FGL_J1058.6+5627_daily_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/372055/ltcube_431395201_431654401_4FGL_J1058.6+5627_daily_bin741.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/372055/ft2_4FGL_J1058.6+5627_daily_bin741.fits
.....................!
real 13.74
user 13.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/372055/ft1_filtered_4FGL_J1058.6+5627_daily_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/372055/ft2_4FGL_J1058.6+5627_daily_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/372055/ltcube_431395201_431654401_4FGL_J1058.6+5627_daily_bin741.fits outfile=/scratch/kocevski/372055/expmap_431395201_431654401_4FGL_J1058.6+5627_daily_bin741.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/372055/ltcube_431395201_431654401_4FGL_J1058.6+5627_daily_bin741.fits
.....................!
real 192.34
user 185.64
sys 5.34

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/372055/ft1_filtered_4FGL_J1058.6+5627_daily_bin741.fits scfile=/scratch/kocevski/372055/ft2_4FGL_J1058.6+5627_daily_bin741.fits outfile=/scratch/kocevski/372055/cmap_431395201_431654401_4FGL_J1058.6+5627_daily_bin741.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/372055/ft1_filtered_4FGL_J1058.6+5627_daily_bin741.fits scfile=/scratch/kocevski/372055/ft2_4FGL_J1058.6+5627_daily_bin741.fits outfile=/scratch/kocevski/372055/cmap_HighResolution_431395201_431654401_4FGL_J1058.6+5627_daily_bin741.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.56
user 0.37
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/372055/ft1_filtered_4FGL_J1058.6+5627_daily_bin741.fits', '/scratch/kocevski/372055/ft2_4FGL_J1058.6+5627_daily_bin741.fits', expMap='/scratch/kocevski/372055/expmap_431395201_431654401_4FGL_J1058.6+5627_daily_bin741.fits', expCube='/scratch/kocevski/372055/ltcube_431395201_431654401_4FGL_J1058.6+5627_daily_bin741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/372055/Model_4FGL_J1058.6+5627_daily_bin741.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/372055/ft1_filtered_4FGL_J1058.6+5627_daily_bin741.fits
Spacecraft file(s): /scratch/kocevski/372055/ft2_4FGL_J1058.6+5627_daily_bin741.fits
Exposure map: /scratch/kocevski/372055/expmap_431395201_431654401_4FGL_J1058.6+5627_daily_bin741.fits
Exposure cube: /scratch/kocevski/372055/ltcube_431395201_431654401_4FGL_J1058.6+5627_daily_bin741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/372055/Model_4FGL_J1058.6+5627_daily_bin741.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) = 5276.40401925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    48.707       1.0000         .10000E-03   10000.    
     6 'norm      '    1.2997       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1171       1.0000         .10000E-03   10000.    
     9 'norm      '    3.9287       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.988       1.0000         .10000E-03   10000.    
    11 'norm      '    .13398E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2731       1.0000         .10000E-03   10000.    
    13 'norm      '    .10309E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .99637       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .49039E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10618E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.1209       1.0000         .10000E-03   10000.    
    19 'Prefactor '    80.366       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.435       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.421       1.0000         .10000E-03   10000.    
    22 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.1578       1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.476       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.4394       1.0000         .10000E-03   10000.    
    28 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.4170       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .82018       1.0000         .10000E-03   10000.    
    31 'norm      '    3.1520       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0785       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .89917       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.

 FCN=   5276.387     FROM MIGRAD    STATUS=CONVERGED    954 CALLS     4928 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0311        .10659E-07** at limit **
   2  Prefactor     .10000E-03    10.549       -.74474E-06** at limit **
   3  Prefactor     .10000E-03    9.7672        .37945E-06** at limit **
   4  norm          .10000E-03    12.708       -.45591E-06** at limit **
   5  Prefactor     48.712        33.829       -.45704E-06   -.65851E-04
   6  norm          1.2998        .55415        .85803E-09   -.53870E-04
   7  Prefactor     .10000E-03    6.4275        .20861E-06** at limit **
   8  norm          1.1172        .77296        .31179E-07   -.34863E-04
   9  norm          3.9286        3.2711        .56358E-07   -.17640E-04
  10  Prefactor     13.977        22.348        .15756E-05    .18721E-03
  11  norm          .10000E-03    50.411       -.37874E-06** at limit **
  12  Prefactor     9.2491        16.255       -.29751E-06   -.48297E-04
  13  norm          .10000E-03    2.1382        .27168E-06** at limit **
  14  norm          .99640        1.4787        .23058E-06    .12009E-03
  15  Prefactor     .10000E-03    51.202       -.69173E-06** at limit **
  16  Prefactor     .10016E-03    563.01       -.20722E-04** at limit **
  17  Prefactor     .10000E-03    52.854       -.43467E-06** at limit **
  18  norm          4.1218        2.8246       -.96654E-07   -.60581E-04
  19  Prefactor     80.326        67.805       -.32306E-05   -.18265E-03
  20  Prefactor     11.425        27.551        .34858E-06    .95027E-04
  21  Prefactor     21.436        81.233        .34009E-05    .43669E-04
  22  norm          .10000E-03    18.372       -.13420E-07** at limit **
  23  Prefactor     5.1557        7.5250        .53623E-05   -.97761E-03
  24  Prefactor     29.509        30.267       -.57602E-05   -.58225E-03
  25  Prefactor     .10000E-03    11.328        .81800E-06** at limit **
  26  norm          .10000E-03    4.3720       -.42609E-07** at limit **
  27  Prefactor     5.4391        3.6323        .15758E-07   -.16383E-04
  28  norm          .10000E-03    2.0982       -.12892E-06** at limit **
  29  Prefactor     6.4193        7.2260       -.30143E-07   -.89728E-04
  30  Prefactor     .81365        19.173        .10211E-05   -.10493E-03
  31  norm          3.1519        2.3850       -.10513E-07   -.60297E-04
  32  Prefactor     .10000E-03    47.535        .13060E-05** at limit **
  33  Normalizat    1.0785        .18424        .17636E-07   -.79376E-04
  34  Prefactor     .89919        .22362       -.11430E-05    .31377E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 48.7122
  norm       = 1.29975
  Prefactor  = 0.0001
  norm       = 1.11715
  norm       = 3.92857
  Prefactor  = 13.9775
  norm       = 0.0001
  Prefactor  = 9.24911
  norm       = 0.0001
  norm       = 0.996402
  Prefactor  = 0.0001
  Prefactor  = 0.000100164
  Prefactor  = 0.0001
  norm       = 4.1218
  Prefactor  = 80.3263
  Prefactor  = 11.4245
  Prefactor  = 21.4357
  norm       = 0.0001
  Prefactor  = 5.15573
  Prefactor  = 29.509
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.43913
  norm       = 0.0001
  Prefactor  = 6.4193
  Prefactor  = 0.813654
  norm       = 3.15186
  Prefactor  = 0.000100001
  Normalizat = 1.07854
  Prefactor  = 0.899189
 **********
 **   18 **HESSE 
 **********

 FCN=   5276.387     FROM HESSE     STATUS=OK           732 CALLS     5660 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0366        .15912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.858        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.9894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    12.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     48.712        33.722        .57457E-04   -1.4311    
   6  norm          1.2998        .55387        .33955E-04   -1.5480    
   7  Prefactor     .10000E-03    6.6036        .35929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1172        .75696        .51108E-04   -1.5497    
   9  norm          3.9286        3.2711        .11543E-03   -1.5312    
  10  Prefactor     13.977        22.441        .10709E-03   -1.4960    
  11  norm          .10000E-03    51.887        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.2491        14.806        .13161E-03   -1.5100    
  13  norm          .10000E-03    4.4381        .18624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .99640        1.2864        .10395E-02   -1.5508    
  15  Prefactor     .10000E-03    51.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10016E-03    581.84        .19229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    52.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.1218        2.8210        .90903E-04   -1.5302    
  19  Prefactor     80.326        68.572        .44801E-04   -1.3913    
  20  Prefactor     11.425        27.821        .11847E-03   -1.5032    
  21  Prefactor     21.436        81.535        .86542E-04   -1.4782    
  22  norm          .10000E-03    18.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.1557        7.7880        .88508E-03   -1.5254    
  24  Prefactor     29.509        31.248        .73795E-04   -1.4621    
  25  Prefactor     .10000E-03    11.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.3742        .14834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.4391        3.6320        .10972E-03   -1.5241    
  28  norm          .10000E-03    2.1118        .10265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.4193        7.2876        .15844E-03   -1.5201    
  30  Prefactor     .81365        130.90        .58708E-02   -1.5528    
  31  norm          3.1519        2.3840        .94030E-04   -1.5353    
  32  Prefactor     .10000E-03    47.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0785        .21518        .22563E-03   -.90444    
  34  Prefactor     .89919        .25973        .30801E-03   -.96169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98833e-09
Minuit parameter uncertainties:
  1  2.64601e-06
  2  9.43705e-05
  3  2.28125e-05
  4  2.51195e-05
  5  33.7352
  6  0.553873
  7  1.87633e-06
  8  0.756968
  9  3.27125
  10  22.4544
  11  0.000162628
  12  14.8114
  13  2.7555e-05
  14  1.28643
  15  0.000228872
  16  0.0197355
  17  0.000121054
  18  2.82105
  19  68.6394
  20  27.8527
  21  81.9638
  22  4.51734e-06
  23  7.78955
  24  31.265
  25  0.000124592
  26  2.60513e-06
  27  3.63217
  28  5.76385e-06
  29  7.2886
  30  20.6853
  31  2.38405
  32  0.000402036
  33  0.215358
  34  0.260086
Done.

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

Extracting fit parameters...

4FGL J1058.6+5627
   Spectrum: LogParabola
399         norm:  4.122e+00  2.821e+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:  8.992e-01  2.601e-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:  1.079e+00  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.88
Ra Dec: 164.665 56.463
Photon Index (Fixed Index): 1.86 +/- 0.00
Photon Flux (Fixed Index): 3.66e-08 +/- 2.51e-08
Energy Flux (Fixed Index): 3.24e-05 +/- 2.22e-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) = 5276.28394443
delta logL = 0.103409561792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5276.2777833
delta logL = 0.109570692137

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8049       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6237       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0869       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89659       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=   5276.278     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8043        2.9065        .51733E-02    .42781E-05
   2  alpha         1.6235        .45037        .31601       -.16158E-04
   3  Normalizat    1.0869        .17488        .38560E-01    .10359E-04
   4  Prefactor     .89659        .22028        .69751E-01    .18684E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.80425
  alpha      = 1.62351
  Normalizat = 1.0869
  Prefactor  = 0.896595
 **********
 **   18 **HESSE 
 **********

 FCN=   5276.278     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .93E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8043        2.9145        .94924E-04   -1.5318    
   2  alpha         1.6235        .51134        .12267E-01   -.35821    
   3  Normalizat    1.0869        .20171        .22498E-03   -.90174    
   4  Prefactor     .89659        .25389        .30859E-03   -.96260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.27039e-13
Minuit parameter uncertainties:
  1  2.91462
  2  0.515499
  3  0.201853
  4  0.254221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/372055': 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) = 5276.27778321
delta logL = 0.109570783554

Extracting fit parameters...

4FGL J1058.6+5627
   Spectrum: LogParabola
399         norm:  3.804e+00  2.915e+00  1.000e-04  1.000e+04 ( 1.000e-12)
400        alpha:  1.624e+00  5.155e-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:  8.966e-01  2.542e-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:  1.087e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.10
Ra Dec: 164.665 56.463
Photon Index (Free Index): 1.62 +/- 0.52
Photon Flux (Free Index): 2.64e-08 +/- 2.77e-08
Energy Flux (Free Index): 4.35e-05 +/- 4.22e-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/372055/cmap_HighResolution_431395201_431654401_4FGL_J1058.6+5627_daily_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.66e-08', energy_flux2='4.35e-05', photon_flux_error='2.51e-08', dlogl='1.10e-01', energy_flux='3.24e-05', photon_flux2='2.64e-08', job_status='DONE', time_completed='2021-09-03 00:48:18.973513', photon_index_error2='0.52', photon_index2='1.62', ts='13.88', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='4.22e-05', EG='1.08', time_epoch_completed='1630655298.97', return_code='0', job_id='372055', GAL2='0.90', EG2='1.09', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='2.77e-08', ts2='14.10', photon_index='1.86' WHERE bin_id='741' AND source_name='4FGL J1058.6+5627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 00:48:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 372055: <4FGL_J1058.6+5627_daily_bin741> in cluster <slac> Done

Job <4FGL_J1058.6+5627_daily_bin741> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 00:31:56 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 00:32:00 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:32:00 2021
Terminated at Fri Sep  3 00:48:19 2021
Results reported at Fri Sep  3 00:48:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+5627_daily_bin741 164.665 56.4634 431395201 431654401 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 :                                   940.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             343.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            983 sec.

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

