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


Performing analysis on: 4FGL_J1058.0+4305_daily_bin1181
RA = 164.518, Dec = 43.0938
tmin = 545443201, tmax = 545702401
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='322090', job_status='RUN', time_executed='2021-09-02 21:59:14.009384', time_epoch_executed='1630645154.01' WHERE source_name='4FGL J1058.0+4305' and cadence='daily' and bin_id='1181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/322090

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/322090/ft1_4FGL_J1058.0+4305_daily_bin1181.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/322090/ft2_4FGL_J1058.0+4305_daily_bin1181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/322090/ft1_4FGL_J1058.0+4305_daily_bin1181.fits outfile=/scratch/kocevski/322090/ft1_filteredMKT_4FGL_J1058.0+4305_daily_bin1181.fits ra=164.518 dec=43.0938 rad=12.0 tmin=545443201.0 tmax=545702401.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.23
user 3.93
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/322090/ft1_filtered_4FGL_J1058.0+4305_daily_bin1181.fits" evtable="EVENTS" scfile=/scratch/kocevski/322090/ft2_4FGL_J1058.0+4305_daily_bin1181.fits sctable="SC_DATA" outfile=/scratch/kocevski/322090/ltcube_545443201_545702401_4FGL_J1058.0+4305_daily_bin1181.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/322090/ft2_4FGL_J1058.0+4305_daily_bin1181.fits
.....................!
real 14.64
user 14.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/322090/ft1_filtered_4FGL_J1058.0+4305_daily_bin1181.fits evtable="EVENTS" scfile=/scratch/kocevski/322090/ft2_4FGL_J1058.0+4305_daily_bin1181.fits sctable="SC_DATA" expcube=/scratch/kocevski/322090/ltcube_545443201_545702401_4FGL_J1058.0+4305_daily_bin1181.fits outfile=/scratch/kocevski/322090/expmap_545443201_545702401_4FGL_J1058.0+4305_daily_bin1181.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/322090/ltcube_545443201_545702401_4FGL_J1058.0+4305_daily_bin1181.fits
.....................!
real 192.16
user 185.92
sys 5.54

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/322090/ft1_filtered_4FGL_J1058.0+4305_daily_bin1181.fits scfile=/scratch/kocevski/322090/ft2_4FGL_J1058.0+4305_daily_bin1181.fits outfile=/scratch/kocevski/322090/cmap_545443201_545702401_4FGL_J1058.0+4305_daily_bin1181.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/322090/ft1_filtered_4FGL_J1058.0+4305_daily_bin1181.fits scfile=/scratch/kocevski/322090/ft2_4FGL_J1058.0+4305_daily_bin1181.fits outfile=/scratch/kocevski/322090/cmap_HighResolution_545443201_545702401_4FGL_J1058.0+4305_daily_bin1181.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/322090/ft1_filtered_4FGL_J1058.0+4305_daily_bin1181.fits', '/scratch/kocevski/322090/ft2_4FGL_J1058.0+4305_daily_bin1181.fits', expMap='/scratch/kocevski/322090/expmap_545443201_545702401_4FGL_J1058.0+4305_daily_bin1181.fits', expCube='/scratch/kocevski/322090/ltcube_545443201_545702401_4FGL_J1058.0+4305_daily_bin1181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/322090/Model_4FGL_J1058.0+4305_daily_bin1181.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/322090/ft1_filtered_4FGL_J1058.0+4305_daily_bin1181.fits
Spacecraft file(s): /scratch/kocevski/322090/ft2_4FGL_J1058.0+4305_daily_bin1181.fits
Exposure map: /scratch/kocevski/322090/expmap_545443201_545702401_4FGL_J1058.0+4305_daily_bin1181.fits
Exposure cube: /scratch/kocevski/322090/ltcube_545443201_545702401_4FGL_J1058.0+4305_daily_bin1181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/322090/Model_4FGL_J1058.0+4305_daily_bin1181.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) = 1349.65407193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    139.08       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31575E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10702E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.988       1.0000         .10000E-03   10000.    
     6 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    74.784       1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.155       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .33710E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .40480E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    67.875       1.0000         .10000E-03   10000.    
    13 'Prefactor '    400.19       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .77877E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .68731       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11775E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    27.969       1.0000         .10000E-03   10000.    
    20 'norm      '    469.82       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.6146       1.0000         .10000E-03   10000.    
    22 'Prefactor '    52.294       1.0000         .10000E-03   10000.    
    23 'norm      '    .10796E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.884       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    8.5563       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .63118       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .81065       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.

 FCN=   1349.523     FROM MIGRAD    STATUS=CONVERGED    846 CALLS     4404 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          139.11        191.91        .18979E-05    .25586E-05
   2  Prefactor     .10011E-03    27.529        .65832E-05** at limit **
   3  Prefactor     .10000E-03    154.43       -.82284E-05** at limit **
   4  norm          .10000E-03    63.957        .56036E-06** at limit **
   5  Prefactor     23.035        18.563       -.33475E-05   -.26264E-03
   6  norm          .10000E-03    22.462        .11215E-06** at limit **
   7  Prefactor     74.536        82.599        .58568E-05    .10552E-03
   8  Prefactor     33.148        21.245        .54025E-06    .57883E-04
   9  Prefactor     .10043E-03    23.370       -.33310E-05** at limit **
  10  Prefactor     .10000E-03    48.926       -.15693E-05** at limit **
  11  Prefactor     .10000E-03    627.67       -.35150E-06** at limit **
  12  Prefactor     67.855        62.483        .56752E-07    .24539E-04
  13  Prefactor     399.95        344.37       -.10173E-04   -.12024E-04
  14  Prefactor     .10001E-03    6639.2       -.33440E-04** at limit **
  15  norm          .68712        .48375        .38226E-07    .37147E-03
  16  Prefactor     .10000E-03    40.693       -.25787E-06** at limit **
  17  Prefactor     .10000E-03    12.607        .13284E-07** at limit **
  18  Prefactor     .10000E-03    310.97        .15428E-04** at limit **
  19  norm          27.972        33.543       -.71637E-06    .25872E-04
  20  norm          469.94        472.41        .49498E-05    .42119E-05
  21  Prefactor     3.6089        10.251       -.13732E-05   -.19495E-03
  22  Prefactor     52.440        157.89        .80305E-05   -.16826E-04
  23  norm          .10000E-03    6.4158        .17205E-05** at limit **
  24  Prefactor     22.892        16.231       -.49241E-06   -.19368E-04
  25  Prefactor     .10000E-03    190.72        .59286E-05** at limit **
  26  norm          .10000E-03    1.0959        .17697E-06** at limit **
  27  norm          8.5534        23.287        .70504E-06   -.26082E-04
  28  Prefactor     .10000E-03    15.900        .98561E-09** at limit **
  29  Prefactor     .10000E-03    40.404        .68137E-06** at limit **
  30  Prefactor     .10000E-03    60.405        .18700E-05** at limit **
  31  Normalizat    .63099        .48667        .49024E-05   -.17931E-04
  32  Prefactor     .81077        .46938       -.10032E-05    .28254E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 139.113
  Prefactor  = 0.000100114
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 23.0349
  norm       = 0.0001
  Prefactor  = 74.5358
  Prefactor  = 33.1477
  Prefactor  = 0.000100427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.855
  Prefactor  = 399.947
  Prefactor  = 0.000100006
  norm       = 0.687124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 27.9717
  norm       = 469.943
  Prefactor  = 3.60886
  Prefactor  = 52.4399
  norm       = 0.000100001
  Prefactor  = 22.8916
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.55339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.630992
  Prefactor  = 0.810773
 **********
 **   18 **HESSE 
 **********

 FCN=   1349.523     FROM HESSE     STATUS=OK           645 CALLS     5049 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          139.11        191.68        .17078E-03   -1.3344    
   2  Prefactor     .10011E-03    107.02        .31095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    154.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    63.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.035        19.254        .83543E-04   -1.4748    
   6  norm          .10000E-03    22.495        .17009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     74.536        84.014        .23215E-03   -1.3979    
   8  Prefactor     33.148        21.302        .69592E-04   -1.4556    
   9  Prefactor     .10043E-03    245.77        .28697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    48.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    627.66        .21258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     67.855        62.765        .48719E-04   -1.4059    
  13  Prefactor     399.95        344.93        .10204E-03   -1.1681    
  14  Prefactor     .10001E-03    6639.8        .20918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .68712        .48209        .20287E-04   -1.5542    
  16  Prefactor     .10000E-03    40.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.609        .12742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    311.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          27.972        33.577        .75753E-04   -1.4650    
  20  norm          469.94        472.47        .94518E-04   -1.1338    
  21  Prefactor     3.6089        9.9808        .10741E-03   -1.5328    
  22  Prefactor     52.440        154.42        .55461E-04   -1.4258    
  23  norm          .10000E-03    6.3374        .17792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     22.892        16.207        .83732E-04   -1.4751    
  25  Prefactor     .10000E-03    190.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.1094        .37451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.5534        23.609        .68520E-03   -1.5123    
  28  Prefactor     .10000E-03    15.900        .14312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    40.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    60.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .63099        .55641        .33515E-03   -1.0668    
  32  Prefactor     .81077        .54575        .31923E-03   -.99332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19721e-09
Minuit parameter uncertainties:
  1  192.549
  2  0.00701094
  3  0.000652777
  4  0.000110316
  5  19.2588
  6  1.98328e-05
  7  84.1486
  8  21.3073
  9  0.0205685
  10  5.97165e-05
  11  4.08921e-05
  12  62.8262
  13  346.739
  14  0.00915257
  15  0.482088
  16  8.62382e-05
  17  7.3782e-06
  18  0.00122338
  19  33.5997
  20  476.488
  21  9.98545
  22  155.623
  23  0.00012708
  24  16.2104
  25  0.000556888
  26  9.54285e-06
  27  23.6349
  28  3.71946e-07
  29  2.91755e-06
  30  6.41266e-05
  31  0.561469
  32  0.549451
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  3.999e+02  3.467e+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:  8.108e-01  5.495e-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:  6.310e-01  5.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.61
Ra Dec: 164.518 43.094
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 1.36e-07 +/- 1.18e-07
Energy Flux (Fixed Index): 4.82e-05 +/- 4.18e-05

TS (Fixed Index): 2.61
Ra Dec: 164.518 43.094
Photon Flux Upper Limit: 4.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/322090/likelihoodResults_545443201_545702401_4FGL_J1058.0+4305_daily_bin1181.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) = 1349.47505699
delta logL = 0.0478182723364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1349.47427398
delta logL = 0.0486012866725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    500.36       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1230       1.0000          .0000       10.000    
     3 'Normalizat'    .64235       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80088       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=   1349.474     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      284 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     500.22        518.06        .91735E-04    .54405E-05
   2  Index         2.1228        .69958        .46890E-02    .15984E-04
   3  Normalizat    .64267        .47176        .33228E-03    .70986E-04
   4  Prefactor     .80060        .50848        .32095E-03    .58384E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 500.224
  Index      = 2.12276
  Normalizat = 0.642666
  Prefactor  = 0.800597
 **********
 **   18 **HESSE 
 **********

 FCN=   1349.474     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     500.22        509.56        .18347E-04   -1.1197    
   2  Index         2.1228        .68795        .18756E-03   -.61315    
   3  Normalizat    .64267        .47198        .13291E-04   -1.0620    
   4  Prefactor     .80060        .50872        .12838E-04   -.99706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54345e-11
Minuit parameter uncertainties:
  1  514.317
  2  0.691234
  3  0.474995
  4  0.511751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/322090': 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) = 1349.47427355
delta logL = 0.0486017186593

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  5.002e+02  5.143e+02  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.123e+00  6.912e-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:  8.006e-01  5.118e-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:  6.427e-01  4.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.66
Ra Dec: 164.518 43.094
Photon Index (Free Index): 2.12 +/- 0.69
Photon Flux (Free Index): 1.14e-07 +/- 1.21e-07
Energy Flux (Free Index): 5.97e-05 +/- 7.06e-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/322090/cmap_HighResolution_545443201_545702401_4FGL_J1058.0+4305_daily_bin1181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-02', comment='SUCCESS', photon_flux='1.36e-07', energy_flux2='5.97e-05', photon_flux_error='1.18e-07', dlogl='4.86e-02', energy_flux='4.82e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-02 22:08:02.968476', photon_index_error2='0.69', photon_index2='2.12', ts='2.61', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='4.43e-07', energy_flux_error2='7.06e-05', EG='0.63', time_epoch_completed='1630645682.97', return_code='0', job_id='322090', GAL2='0.80', EG2='0.64', return_code2='0', energy_flux_error='4.18e-05', photon_flux_error2='1.21e-07', ts2='2.66', photon_index='2.35' WHERE bin_id='1181' AND source_name='4FGL J1058.0+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 22:08:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 322090: <4FGL_J1058.0+4305_daily_bin1181> in cluster <slac> Done

Job <4FGL_J1058.0+4305_daily_bin1181> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  2 21:56:13 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:57:14 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:57:14 2021
Terminated at Thu Sep  2 22:08:03 2021
Results reported at Thu Sep  2 22:08:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_daily_bin1181 164.518 43.0938 545443201 545702401 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 :                                   492.44 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             264.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            710 sec.

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

