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


Performing analysis on: 4FGL_J1058.6+5627_daily_bin1215
RA = 164.665, Dec = 56.4634
tmin = 554256001, tmax = 554515201
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='374721', job_status='RUN', time_executed='2021-09-03 00:46:33.565350', time_epoch_executed='1630655193.57' WHERE source_name='4FGL J1058.6+5627' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/374721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/374721/ft1_4FGL_J1058.6+5627_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/374721/ft2_4FGL_J1058.6+5627_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/374721/ft1_4FGL_J1058.6+5627_daily_bin1215.fits outfile=/scratch/kocevski/374721/ft1_filteredMKT_4FGL_J1058.6+5627_daily_bin1215.fits ra=164.665 dec=56.4634 rad=12.0 tmin=554256001.0 tmax=554515201.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.07
user 3.81
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/374721/ft2_4FGL_J1058.6+5627_daily_bin1215.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/374721/ft1_filteredMKT_4FGL_J1058.6+5627_daily_bin1215.fits evtable="EVENTS" outfile="/scratch/kocevski/374721/ft1_filtered_4FGL_J1058.6+5627_daily_bin1215.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.57
user 0.33
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/374721/ft1_filtered_4FGL_J1058.6+5627_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/374721/ft2_4FGL_J1058.6+5627_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/374721/ltcube_554256001_554515201_4FGL_J1058.6+5627_daily_bin1215.fits outfile=/scratch/kocevski/374721/expmap_554256001_554515201_4FGL_J1058.6+5627_daily_bin1215.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/374721/ltcube_554256001_554515201_4FGL_J1058.6+5627_daily_bin1215.fits
.....................!
real 191.38
user 185.39
sys 4.92

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/374721/ft1_filtered_4FGL_J1058.6+5627_daily_bin1215.fits scfile=/scratch/kocevski/374721/ft2_4FGL_J1058.6+5627_daily_bin1215.fits outfile=/scratch/kocevski/374721/cmap_554256001_554515201_4FGL_J1058.6+5627_daily_bin1215.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/374721/ft1_filtered_4FGL_J1058.6+5627_daily_bin1215.fits scfile=/scratch/kocevski/374721/ft2_4FGL_J1058.6+5627_daily_bin1215.fits outfile=/scratch/kocevski/374721/cmap_HighResolution_554256001_554515201_4FGL_J1058.6+5627_daily_bin1215.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11029E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10530E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10673E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10673E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11577E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11308E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11023E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10575E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    .60453       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=   14.58051     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     3846 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1087.3       -.13467E-03** at limit **
   2  Prefactor     .10000E-03    493.81        .27825E-03** at limit **
   3  Prefactor     .10000E-03    6346.8       -.10296E-02** at limit **
   4  norm          .10000E-03    1167.8       -.20634E-03** at limit **
   5  Prefactor     .10000E-03    6154.8       -.89392E-03** at limit **
   6  norm          .10000E-03    42.059       -.13199E-05** at limit **
   7  Prefactor     .10000E-03    1089.6       -.13678E-03** at limit **
   8  norm          .10000E-03    35.823       -.83213E-07** at limit **
   9  norm          .10000E-03    453.84        .25202E-03** at limit **
  10  Prefactor     .10000E-03    2060.6       -.78674E-03** at limit **
  11  norm          .10000E-03    1124.2       -.16790E-03** at limit **
  12  Prefactor     .10000E-03    644.20        .25431E-03** at limit **
  13  norm          .10000E-03    103.69       -.61574E-04** at limit **
  14  norm          .10000E-03    122.70        .14147E-03** at limit **
  15  Prefactor     .10000E-03    8040.8       -.15696E-02** at limit **
  16  Prefactor     .10000E-03    8401.3       -.16237E-02** at limit **
  17  Prefactor     .10000E-03    8682.0       -.16602E-02** at limit **
  18  norm          .10000E-03    150.06       -.77078E-04** at limit **
  19  Prefactor     .10000E-03    6727.2       -.12258E-02** at limit **
  20  Prefactor     .10000E-03    1012.2       -.65385E-04** at limit **
  21  Prefactor     .10000E-03    7605.7       -.14885E-02** at limit **
  22  norm          .10000E-03    6398.4       -.10611E-02** at limit **
  23  Prefactor     .10000E-03    319.05       -.15232E-04** at limit **
  24  Prefactor     .10000E-03    935.03        .74726E-05** at limit **
  25  Prefactor     .10000E-03    1124.4       -.16802E-03** at limit **
  26  norm          .10000E-03    594.09        .27785E-03** at limit **
  27  Prefactor     .10000E-03    44.201        .16967E-05** at limit **
  28  norm          .10000E-03    143.39       -.14300E-04** at limit **
  29  Prefactor     .10000E-03    263.39       -.20245E-03** at limit **
  30  Prefactor     .10000E-03    778.03        .15325E-03** at limit **
  31  norm          .10000E-03    106.39        .11095E-04** at limit **
  32  Prefactor     .10000E-03    6178.1       -.91212E-03** at limit **
  33  Normalizat    .10000E-01    .90466        .13062E-05** at limit **
  34  Prefactor     .60325        .74813        .48089E-05    .34136E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.603247
 **********
 **   18 **HESSE 
 **********

 FCN=   14.58051     FROM HESSE     STATUS=OK           698 CALLS     4544 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1087.3        .12743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    493.80        .84982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6346.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1167.8        .13226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6154.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    42.059        .24612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1089.6        .12758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    35.823        .22712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    453.84        .81414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2060.6        .17869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1124.2        .12967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    644.19        .97318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    103.69        .38684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    122.70        .42094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8040.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8401.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8682.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    150.06        .46573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6727.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1012.2        .12279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7605.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6398.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    319.04        .68104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    935.03        .11785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1124.3        .12967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    594.09        .93375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    44.201        .25230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    143.39        .45521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    263.39        .61821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    778.02        .10720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    106.39        .39186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    6178.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .10000E-01    .90532        .11549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .60325        .74533        .12076E-03   -1.0745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18145e-10
Minuit parameter uncertainties:
  1  2.98321e-06
  2  4.21677e-06
  3  3.7428e-05
  4  4.7352e-06
  5  2.94661e-05
  6  5.85919e-09
  7  3.03365e-06
  8  1.98632e-10
  9  3.66186e-06
  10  2.42103e-05
  11  3.78025e-06
  12  4.38593e-06
  13  4.29074e-07
  14  1.07308e-06
  15  0.000100094
  16  0.000113177
  17  0.000123754
  18  6.4571e-07
  19  5.24351e-05
  20  1.39805e-06
  21  0.000563474
  22  0.000155685
  23  1.85386e-07
  24  1.54e-07
  25  3.78404e-06
  26  4.6093e-06
  27  9.72813e-07
  28  1.17183e-07
  29  2.24657e-06
  30  2.89136e-06
  31  7.84156e-08
  32  3.04459e-05
  33  1.90427e-07
  34  0.758072
Done.

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

Extracting fit parameters...

4FGL J1058.6+5627
   Spectrum: LogParabola
399         norm:  1.000e-04  6.457e-07  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:  6.032e-01  7.581e-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.000e-02  1.904e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.665 56.463
Photon Flux Upper Limit: 8.03e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/374721/likelihoodResults_554256001_554515201_4FGL_J1058.6+5627_daily_bin1215.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): 102
logL (Free Index) = 14.5805403827
delta logL = -3.13057813681e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14.5805114609
delta logL = -2.38399221253e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33509E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6144       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60362       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=   14.58051     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      282 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10011E-03    9935.1        .30518E-02** at limit **
   2  alpha         1.4564        2.9432        .16482        .22668E-07
   3  Normalizat    .10000E-01    .29013        .11549E-02** at limit **
   4  Prefactor     .60323        .42230        .12076E-03   -.24525E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100114
  alpha      = 1.45637
  Normalizat = 0.01
  Prefactor  = 0.603233
 **********
 **   18 **HESSE 
 **********

 FCN=   14.58051     FROM HESSE     STATUS=OK            27 CALLS      309 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10011E-03    187.31        .50516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4564        2.7784        .65930E-01   -.43064    
   3  Normalizat    .10000E-01    .90536        .23098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .60323        .74532        .24153E-04   -1.0745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02815e-09
Minuit parameter uncertainties:
  1  0.00927481
  2  1328.06
  3  3.1052e-05
  4  0.758059
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/374721': 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) = 14.5805090276
delta logL = 4.93052176864e-08

Extracting fit parameters...

4FGL J1058.6+5627
   Spectrum: LogParabola
399         norm:  1.001e-04  9.275e-03  1.000e-04  1.000e+04 ( 1.000e-12)
400        alpha:  1.456e+00  1.328e+03  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:  6.032e-01  7.581e-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.000e-02  3.105e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.665 56.463

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/374721/cmap_HighResolution_554256001_554515201_4FGL_J1058.6+5627_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.11e-03', job_status='DONE', photon_flux_upper_limit='8.03e-06', time_completed='2021-09-03 00:53:23.375619', job_id='374721', GAL2='0.60', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630655603.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='4.93e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.86' WHERE bin_id='1215' AND source_name='4FGL J1058.6+5627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 00:53:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 374721: <4FGL_J1058.6+5627_daily_bin1215> in cluster <slac> Done

Job <4FGL_J1058.6+5627_daily_bin1215> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 00:41:20 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 00:44:13 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:44:13 2021
Terminated at Fri Sep  3 00:53:24 2021
Results reported at Fri Sep  3 00:53:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.6+5627_daily_bin1215 164.665 56.4634 554256001 554515201 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 :                                   346.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   550 sec.
    Turnaround time :                            724 sec.

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

