/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 11 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 = 7720
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1058.0+4305_daily_bin751
RA = 164.518, Dec = 43.0938
tmin = 433987201, tmax = 434246401
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='318909', job_status='RUN', time_executed='2021-09-02 21:48:32.954207', time_epoch_executed='1630644512.95' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318909

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318909/ft1_4FGL_J1058.0+4305_daily_bin751.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318909/ft2_4FGL_J1058.0+4305_daily_bin751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318909/ft1_4FGL_J1058.0+4305_daily_bin751.fits outfile=/scratch/kocevski/318909/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin751.fits ra=164.518 dec=43.0938 rad=12.0 tmin=433987201.0 tmax=434246401.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.37
user 6.02
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/318909/ft2_4FGL_J1058.0+4305_daily_bin751.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318909/ft2_4FGL_J1058.0+4305_daily_bin751.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/318909/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin751.fits evtable="EVENTS" outfile="/scratch/kocevski/318909/ft1_filtered_4FGL_J1058.0+4305_daily_bin751.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.53
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318909/ft1_filtered_4FGL_J1058.0+4305_daily_bin751.fits" evtable="EVENTS" scfile=/scratch/kocevski/318909/ft2_4FGL_J1058.0+4305_daily_bin751.fits sctable="SC_DATA" outfile=/scratch/kocevski/318909/ltcube_433987201_434246401_4FGL_J1058.0+4305_daily_bin751.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/318909/ft2_4FGL_J1058.0+4305_daily_bin751.fits
.....................!
real 18.25
user 17.71
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318909/ft1_filtered_4FGL_J1058.0+4305_daily_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/318909/ft2_4FGL_J1058.0+4305_daily_bin751.fits sctable="SC_DATA" expcube=/scratch/kocevski/318909/ltcube_433987201_434246401_4FGL_J1058.0+4305_daily_bin751.fits outfile=/scratch/kocevski/318909/expmap_433987201_434246401_4FGL_J1058.0+4305_daily_bin751.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/318909/ltcube_433987201_434246401_4FGL_J1058.0+4305_daily_bin751.fits
.....................!
real 195.42
user 189.15
sys 4.56

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

Setting source of interest to:
4FGL J1058.0+4305 @ 164.518 43.0938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/318909/ft1_filtered_4FGL_J1058.0+4305_daily_bin751.fits scfile=/scratch/kocevski/318909/ft2_4FGL_J1058.0+4305_daily_bin751.fits outfile=/scratch/kocevski/318909/cmap_433987201_434246401_4FGL_J1058.0+4305_daily_bin751.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.518 yref=43.0938 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318909/ft1_filtered_4FGL_J1058.0+4305_daily_bin751.fits scfile=/scratch/kocevski/318909/ft2_4FGL_J1058.0+4305_daily_bin751.fits outfile=/scratch/kocevski/318909/cmap_HighResolution_433987201_434246401_4FGL_J1058.0+4305_daily_bin751.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.518 yref=43.0938 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/318909/ft1_filtered_4FGL_J1058.0+4305_daily_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/318909/ft2_4FGL_J1058.0+4305_daily_bin751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/318909/Model_4FGL_J1058.0+4305_daily_bin751.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/318909/ft1_filtered_4FGL_J1058.0+4305_daily_bin751.fits.....................!
real 37.51
user 35.21
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/318909/ft1_filtered_4FGL_J1058.0+4305_daily_bin751.fits', '/scratch/kocevski/318909/ft2_4FGL_J1058.0+4305_daily_bin751.fits', expMap='/scratch/kocevski/318909/expmap_433987201_434246401_4FGL_J1058.0+4305_daily_bin751.fits', expCube='/scratch/kocevski/318909/ltcube_433987201_434246401_4FGL_J1058.0+4305_daily_bin751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/318909/Model_4FGL_J1058.0+4305_daily_bin751.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.0+4305'

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  7.092e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/318909/ft1_filtered_4FGL_J1058.0+4305_daily_bin751.fits
Spacecraft file(s): /scratch/kocevski/318909/ft2_4FGL_J1058.0+4305_daily_bin751.fits
Exposure map: /scratch/kocevski/318909/expmap_433987201_434246401_4FGL_J1058.0+4305_daily_bin751.fits
Exposure cube: /scratch/kocevski/318909/ltcube_433987201_434246401_4FGL_J1058.0+4305_daily_bin751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/318909/Model_4FGL_J1058.0+4305_daily_bin751.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) = 3478.28635644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.699       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0288       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15943       1.0000         .10000E-03   10000.    
     4 'norm      '    5.2603       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.005       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.181       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    347.55       1.0000         .10000E-03   10000.    
    12 'Prefactor '    77.731       1.0000         .10000E-03   10000.    
    13 'Prefactor '    66.304       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6509       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .88641E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    241.42       1.0000         .10000E-03   10000.    
    19 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    41.342       1.0000         .10000E-03   10000.    
    23 'norm      '    .13173E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.3483       1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.465       1.0000         .10000E-03   10000.    
    26 'norm      '    5.4097       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.9919       1.0000         .10000E-03   10000.    
    29 'Prefactor '    96.467       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .81580       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .95231       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3478.255     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     3653 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.701        1.1835        .37784E-07    .80002E-03
   2  Prefactor     5.0290        4.9123       -.14370E-05   -.48550E-02
   3  Prefactor     .11922E-02    1298.1        .14513E-04** at limit **
   4  norm          5.2601        4.1340       -.38043E-06   -.21901E-03
   5  Prefactor     .10000E-03    4.6243       -.49949E-06** at limit **
   6  norm          .10000E-03    6.4358        .63209E-06** at limit **
   7  Prefactor     34.071        6.6099       -.23201E-06    .26904E-02
   8  Prefactor     .10000E-03    1.9153        .21805E-06** at limit **
   9  Prefactor     10.176        2.6954        .64784E-06   -.35587E-02
  10  Prefactor     .10000E-03    13.479        .13768E-06** at limit **
  11  Prefactor     347.55        1.0148       -.33226E-08    .21951E-02
  12  Prefactor     77.749        1.9879       -.59555E-07    .58706E-02
  13  Prefactor     66.305        1.0058       -.42726E-08    .10053E-02
  14  Prefactor     .10411E-03    75.349       -.89491E-05** at limit **
  15  norm          2.6507        .58851       -.28076E-07    .23537E-03
  16  Prefactor     .10000E-03    9.5963        .28273E-06** at limit **
  17  Prefactor     .14329E-03    13.456       -.76336E-06** at limit **
  18  Prefactor     241.43        1.4515       -.12355E-07   -.78929E-03
  19  norm          .10000E-03    24.554        .48981E-05** at limit **
  20  norm          .10047E-03    59.198       -.31615E-05** at limit **
  21  Prefactor     .10000E-03    1.2217       -.83260E-06** at limit **
  22  Prefactor     41.146        19.092        .78776E-06   -.21078E-01
  23  norm          .10000E-03    6.9637       -.32756E-05** at limit **
  24  Prefactor     5.3475        2.7910       -.78046E-06   -.31152E-02
  25  Prefactor     17.505        4.2189       -.20082E-06    .14275E-03
  26  norm          5.4081        2.0275       -.71577E-07    .14105E-03
  27  norm          .10000E-03    4.5935        .73859E-06** at limit **
  28  Prefactor     2.9917        3.4437       -.24034E-06   -.58429E-04
  29  Prefactor     96.476        1.3475       -.20499E-07    .50969E-03
  30  Prefactor     .10000E-03    16.380       -.55171E-06** at limit **
  31  Normalizat    .81591        .25135        .15446E-04    .19190E-03
  32  Prefactor     .95228        .31116       -.95340E-05    .99769E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 34.7013
  Prefactor  = 5.02902
  Prefactor  = 0.00119218
  norm       = 5.26012
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.0709
  Prefactor  = 0.0001
  Prefactor  = 10.1761
  Prefactor  = 0.0001
  Prefactor  = 347.547
  Prefactor  = 77.7488
  Prefactor  = 66.3047
  Prefactor  = 0.000104109
  norm       = 2.65073
  Prefactor  = 0.0001
  Prefactor  = 0.000143292
  Prefactor  = 241.429
  norm       = 0.000100003
  norm       = 0.000100468
  Prefactor  = 0.0001
  Prefactor  = 41.1459
  norm       = 0.000100001
  Prefactor  = 5.34747
  Prefactor  = 17.5051
  norm       = 5.40813
  norm       = 0.0001
  Prefactor  = 2.99168
  Prefactor  = 96.4764
  Prefactor  = 0.000100001
  Normalizat = 0.815909
  Prefactor  = 0.952275
 **********
 **   18 **HESSE 
 **********

 FCN=   3478.255     FROM HESSE     STATUS=OK           733 CALLS     4386 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.701        22.741        .17008E-02   -1.4529    
   2  Prefactor     5.0290        5.8507        .44829E-02   -1.5259    
   3  Prefactor     .11922E-02    52.795        .12120       -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.2601        4.1560        .43813E-02   -1.5249    
   5  Prefactor     .10000E-03    4.5578        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.4296        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.071        54.204        .17180E-02   -1.4540    
   8  Prefactor     .10000E-03    1.9114        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.176        9.5197        .31394E-02   -1.5070    
  10  Prefactor     .10000E-03    13.480        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     347.55        192.90        .54598E-03   -1.1957    
  12  Prefactor     77.749        45.372        .11387E-02   -1.3942    
  13  Prefactor     66.305        105.42        .12322E-02   -1.4078    
  14  Prefactor     .10411E-03    81.620        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6507        .61226        .46612E-02   -1.5382    
  16  Prefactor     .10000E-03    9.5822        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .14329E-03    23.850        .10420       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     241.43        213.09        .65151E-03   -1.2588    
  19  norm          .10000E-03    24.248        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10047E-03    59.786        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.2184        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     41.146        51.865        .15586E-02   -1.4424    
  23  norm          .10000E-03    4.1107        .33448E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.3475        5.7529        .43445E-02   -1.5245    
  25  Prefactor     17.505        71.385        .23960E-02   -1.4871    
  26  norm          5.4081        2.4057        .43193E-02   -1.5243    
  27  norm          .10000E-03    4.5964        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.9917        3.4483        .58673E-02   -1.5362    
  29  Prefactor     96.476        78.652        .10231E-02   -1.3740    
  30  Prefactor     .10000E-03    16.368        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .81591        .23467        .43816E-01   -.99481    
  32  Prefactor     .95228        .27358        .68575E-01   -.94338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29213e-06
Minuit parameter uncertainties:
  1  22.7464
  2  5.85141
  3  0.480681
  4  4.15624
  5  1.58698e-06
  6  7.63302e-05
  7  54.2824
  8  2.54506e-06
  9  9.52109
  10  8.162e-05
  11  193.26
  12  45.3924
  13  105.72
  14  0.036677
  15  0.612264
  16  3.58016e-05
  17  0.0642912
  18  213.776
  19  0.000561362
  20  0.0105935
  21  5.82551e-06
  22  51.9223
  23  0.000117955
  24  5.75349
  25  70.846
  26  2.40578
  27  1.91144e-05
  28  3.44851
  29  78.737
  30  0.000224235
  31  0.234958
  32  0.273983
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  6.630e+01  1.057e+02  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  9.523e-01  2.740e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  8.159e-01  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.61
Ra Dec: 164.518 43.094
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/318909/likelihoodResults_433987201_434246401_4FGL_J1058.0+4305_daily_bin751.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3477.98325704
delta logL = 0.271372328439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3477.88295088
delta logL = 0.371678484118

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    131.43       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6296       1.0000          .0000       10.000    
     3 'Normalizat'    .83052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93633       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+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=   3477.883     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      286 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     131.53        166.82        .17562E-03   -.14825E-05
   2  Index         1.6301        .72112        .90022E-02    .66427E-06
   3  Normalizat    .83060        .24937        .26006E-03   -.22382E-04
   4  Prefactor     .93628        .31062        .30531E-03    .21411E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 131.527
  Index      = 1.63014
  Normalizat = 0.830596
  Prefactor  = 0.936283
 **********
 **   18 **HESSE 
 **********

 FCN=   3477.883     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     131.53        167.22        .35123E-04   -1.3409    
   2  Index         1.6301        .72295        .36009E-03   -.73957    
   3  Normalizat    .83060        .24957        .10402E-04   -.98944    
   4  Prefactor     .93628        .31089        .12212E-04   -.94885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76936e-11
Minuit parameter uncertainties:
  1  167.829
  2  0.727648
  3  0.24992
  4  0.311486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318909': 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) = 3477.88295037
delta logL = 0.371678998032

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.315e+02  1.678e+02  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  1.630e+00  7.276e-01  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  9.363e-01  3.115e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  8.306e-01  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 164.518 43.094
Photon Index (Free Index): 1.63 +/- 0.73
Photon Flux (Free Index): 1.46e-08 +/- 2.30e-08
Energy Flux (Free Index): 2.99e-05 +/- 5.78e-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/318909/cmap_HighResolution_433987201_434246401_4FGL_J1058.0+4305_daily_bin751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.71e-03', comment='SUCCESS', energy_flux2='2.99e-05', dlogl='3.72e-01', photon_flux2='1.46e-08', job_status='DONE', time_completed='2021-09-02 22:01:15.802404', photon_index_error2='0.73', photon_index2='1.63', ts='0.61', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='5.78e-05', EG='0.82', time_epoch_completed='1630645275.8', return_code='0', job_id='318909', GAL2='0.94', EG2='0.83', return_code2='0', photon_flux_error2='2.30e-08', ts2='1.36', photon_index='2.35' WHERE bin_id='751' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:01:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 318909: <4FGL_J1058.0+4305_daily_bin751> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin751> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 21:46:17 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:47:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 21:47:48 2021
Terminated at Thu Sep  2 22:01:16 2021
Results reported at Thu Sep  2 22:01:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin751 164.518 43.0938 433987201 434246401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.0+4305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   755.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            899 sec.

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

