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


Performing analysis on: 4FGL_J0058.4+3315_daily_bin1622
RA = 14.6101, Dec = 33.2505
tmin = 659750401, tmax = 660009601
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='134119', job_status='RUN', time_executed='2021-12-07 11:51:23.399904', time_epoch_executed='1638906683.4' WHERE source_name='4FGL J0058.4+3315' and cadence='daily' and bin_id='1622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/134119

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/134119/ft1_4FGL_J0058.4+3315_daily_bin1622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/134119/ft2_4FGL_J0058.4+3315_daily_bin1622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/134119/ft1_4FGL_J0058.4+3315_daily_bin1622.fits outfile=/scratch/kocevski/134119/ft1_filteredMKT_4FGL_J0058.4+3315_daily_bin1622.fits ra=14.6101 dec=33.2505 rad=12.0 tmin=659750401.0 tmax=660009601.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 2.39
user 2.17
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/134119/ft2_4FGL_J0058.4+3315_daily_bin1622.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/134119/ft2_4FGL_J0058.4+3315_daily_bin1622.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/134119/ft1_filteredMKT_4FGL_J0058.4+3315_daily_bin1622.fits evtable="EVENTS" outfile="/scratch/kocevski/134119/ft1_filtered_4FGL_J0058.4+3315_daily_bin1622.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.49
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/134119/ft1_filtered_4FGL_J0058.4+3315_daily_bin1622.fits" evtable="EVENTS" scfile=/scratch/kocevski/134119/ft2_4FGL_J0058.4+3315_daily_bin1622.fits sctable="SC_DATA" outfile=/scratch/kocevski/134119/ltcube_659750401_660009601_4FGL_J0058.4+3315_daily_bin1622.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/134119/ft2_4FGL_J0058.4+3315_daily_bin1622.fits
.....................!
real 13.74
user 13.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/134119/ft1_filtered_4FGL_J0058.4+3315_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/134119/ft2_4FGL_J0058.4+3315_daily_bin1622.fits sctable="SC_DATA" expcube=/scratch/kocevski/134119/ltcube_659750401_660009601_4FGL_J0058.4+3315_daily_bin1622.fits outfile=/scratch/kocevski/134119/expmap_659750401_660009601_4FGL_J0058.4+3315_daily_bin1622.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/134119/ltcube_659750401_660009601_4FGL_J0058.4+3315_daily_bin1622.fits
.....................!
real 192.59
user 186.91
sys 5.30

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

Setting source of interest to:
4FGL J0058.4+3315 @ 14.6101 33.2505

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/134119/ft1_filtered_4FGL_J0058.4+3315_daily_bin1622.fits scfile=/scratch/kocevski/134119/ft2_4FGL_J0058.4+3315_daily_bin1622.fits outfile=/scratch/kocevski/134119/cmap_659750401_660009601_4FGL_J0058.4+3315_daily_bin1622.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=14.6101 yref=33.2505 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/134119/ft1_filtered_4FGL_J0058.4+3315_daily_bin1622.fits scfile=/scratch/kocevski/134119/ft2_4FGL_J0058.4+3315_daily_bin1622.fits outfile=/scratch/kocevski/134119/cmap_HighResolution_659750401_660009601_4FGL_J0058.4+3315_daily_bin1622.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=14.6101 yref=33.2505 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/134119/ft1_filtered_4FGL_J0058.4+3315_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/134119/ft2_4FGL_J0058.4+3315_daily_bin1622.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/134119/Model_4FGL_J0058.4+3315_daily_bin1622.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/134119/ft1_filtered_4FGL_J0058.4+3315_daily_bin1622.fits.....................!
real 33.21
user 31.80
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/134119/ft1_filtered_4FGL_J0058.4+3315_daily_bin1622.fits', '/scratch/kocevski/134119/ft2_4FGL_J0058.4+3315_daily_bin1622.fits', expMap='/scratch/kocevski/134119/expmap_659750401_660009601_4FGL_J0058.4+3315_daily_bin1622.fits', expCube='/scratch/kocevski/134119/ltcube_659750401_660009601_4FGL_J0058.4+3315_daily_bin1622.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/134119/Model_4FGL_J0058.4+3315_daily_bin1622.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0058.4+3315'

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.596e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
190        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/134119/ft1_filtered_4FGL_J0058.4+3315_daily_bin1622.fits
Spacecraft file(s): /scratch/kocevski/134119/ft2_4FGL_J0058.4+3315_daily_bin1622.fits
Exposure map: /scratch/kocevski/134119/expmap_659750401_660009601_4FGL_J0058.4+3315_daily_bin1622.fits
Exposure cube: /scratch/kocevski/134119/ltcube_659750401_660009601_4FGL_J0058.4+3315_daily_bin1622.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/134119/Model_4FGL_J0058.4+3315_daily_bin1622.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) = 2385.50712526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.737       1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.509       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.9471       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.454       1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.211       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11113E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.573       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6200       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11793E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.927       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .97859       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    560.51       1.0000         .10000E-03   10000.    
    22 'norm      '    3.5792       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12441E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .48735       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0010       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+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=   2385.501     FROM MIGRAD    STATUS=CONVERGED   1001 CALLS     3862 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.148        .15922E-02** at limit **
   2  Prefactor     .10000E-03    5.1663        .10792E-02** at limit **
   3  Prefactor     34.831        61.838        .67993E-04   -.45128E-04
   4  Prefactor     37.502        39.928        .65441E-04   -.23192E-04
   5  Prefactor     .10000E-03    39.396        .18142E-02** at limit **
   6  norm          7.9484        4.9816        .81596E-04   -.14650E-03
   7  Prefactor     .10000E-03    6.3407        .12008E-02** at limit **
   8  Prefactor     .10000E-03    7.3660        .12904E-02** at limit **
   9  Prefactor     12.400        34.269        .11351E-03   -.11433E-03
  10  Prefactor     39.206        28.387        .64009E-04   -.41099E-04
  11  Prefactor     .10000E-03    37.522        .18142E-02** at limit **
  12  Prefactor     29.724        96.214        .73675E-04    .57866E-05
  13  Prefactor     .10000E-03    75.737        .18142E-02** at limit **
  14  norm          1.6247        2.0446        .57012E-04    .19991E-03
  15  norm          .10000E-03    3.9410        .18481E-02** at limit **
  16  Prefactor     .10000E-03    93.438        .18142E-02** at limit **
  17  Prefactor     .10000E-03    6.1608        .11831E-02** at limit **
  18  Prefactor     33.927        25.763        .68797E-04   -.21995E-03
  19  Prefactor     .77731        556.67        .58092E-02    .13515E-04
  20  norm          .10000E-03    2.6368        .77367E-03** at limit **
  21  Prefactor     561.64        529.38        .86949E-04    .62368E-05
  22  norm          3.5789        3.5646        .81718E-04    .10392E-03
  23  Prefactor     .10000E-03    58.425        .18142E-02** at limit **
  24  Normalizat    .48729        .37759        .38835E-03   -.12242E-03
  25  Prefactor     1.0010        .22749        .17581E-03   -.70004E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.8315
  Prefactor  = 37.5023
  Prefactor  = 0.0001
  norm       = 7.94835
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4004
  Prefactor  = 39.2062
  Prefactor  = 0.0001
  Prefactor  = 29.7238
  Prefactor  = 0.0001
  norm       = 1.62474
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.9268
  Prefactor  = 0.777314
  norm       = 0.0001
  Prefactor  = 561.642
  norm       = 3.57891
  Prefactor  = 0.0001
  Normalizat = 0.487294
  Prefactor  = 1.00096
 **********
 **   18 **HESSE 
 **********

 FCN=   2385.501     FROM HESSE     STATUS=OK           403 CALLS     4265 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.148        .31843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.1669        .21584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.831        61.833        .13599E-04   -1.4527    
   4  Prefactor     37.502        39.927        .26176E-05   -1.4482    
   5  Prefactor     .10000E-03    39.397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.9484        4.9814        .32638E-05   -1.5144    
   7  Prefactor     .10000E-03    6.3408        .24016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.3669        .25808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.400        34.262        .45404E-05   -1.5004    
  10  Prefactor     39.206        28.385        .12802E-04   -1.4455    
  11  Prefactor     .10000E-03    37.523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.724        96.042        .29470E-05   -1.4617    
  13  Prefactor     .10000E-03    75.737        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6247        2.0360        .22805E-05   -1.5453    
  15  norm          .10000E-03    3.9470        .36962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    93.441        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.1608        .23662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     33.927        25.760        .13759E-04   -1.4542    
  19  Prefactor     .77731        513.58        .23237E-03   -1.5532    
  20  norm          .10000E-03    2.6368        .15473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     561.64        511.66        .17390E-04   -1.0923    
  22  norm          3.5789        3.5607        .32687E-05   -1.5330    
  23  Prefactor     .10000E-03    58.425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .48729        .37733        .15534E-04   -1.1301    
  25  Prefactor     1.0010        .22758        .35163E-04   -.92698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80685e-10
Minuit parameter uncertainties:
  1  1.85212e-05
  2  1.52009e-05
  3  61.9472
  4  39.9559
  5  8.98925e-05
  6  4.98169
  7  7.24288e-06
  8  1.75913e-05
  9  34.316
  10  28.395
  11  1.83601e-05
  12  96.5476
  13  0.000132333
  14  2.03607
  15  7.75422e-06
  16  5.90591e-05
  17  2.75127e-05
  18  25.7689
  19  40.3101
  20  3.06893e-06
  21  515.971
  22  3.56096
  23  0.000201918
  24  0.379334
  25  0.227795
Done.

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

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.240e+01  3.432e+01  1.000e-04  1.000e+04 ( 1.000e-13)
190        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.001e+00  2.278e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  4.873e-01  3.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 14.610 33.251
Photon Flux Upper Limit: 2.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/134119/likelihoodResults_659750401_660009601_4FGL_J0058.4+3315_daily_bin1622.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) = 2383.71394278
delta logL = 1.78687224927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2383.55749826
delta logL = 1.94331677024

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73225E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    6.5228       1.0000          .0000       10.000    
     3 'Normalizat'    .25750       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1032       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2383.557     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      352 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70729E-02    .92578E-01    .56217E-03    .14245E-02
   2  Index         6.5377        2.6888        .55991E-01    .68264E-04
   3  Normalizat    .25789        .12016        .11841        .21749E-04
   4  Prefactor     1.1033        .76775E-01    .37466E-01   -.16614E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00707288
  Index      = 6.53774
  Normalizat = 0.257889
  Prefactor  = 1.10326
 **********
 **   18 **HESSE 
 **********

 FCN=   2383.557     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      385 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70729E-02    .13477        .24341E-05   -1.5691    
   2  Index         6.5377        3.2669        .24007E-02    .31262    
   3  Normalizat    .25789        .33269        .52363E-03   -1.2544    
   4  Prefactor     1.1033        .21096        .16772E-03   -.89362    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.14307e-08
Minuit parameter uncertainties:
  1  0.0613112
  2  3.60103
  3  0.335289
  4  0.21112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/134119': 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): 102
logL (Free Index) = 2383.55748555
delta logL = 1.94332948471

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  7.073e-03  6.131e-02  1.000e-04  1.000e+04 ( 1.000e-13)
190        Index:  6.538e+00  3.601e+00  0.000e+00  1.000e+01 (-1.000e+00)
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.103e+00  2.111e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  2.579e-01  3.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.58
Ra Dec: 14.610 33.251
Photon Index (Free Index): 6.54 +/- 3.60
Photon Flux (Free Index): 2.45e-07 +/- 1.50e-07
Energy Flux (Free Index): 2.98e-05 +/- 1.92e-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/134119/cmap_HighResolution_659750401_660009601_4FGL_J0058.4+3315_daily_bin1622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.00e-02', comment='SUCCESS', energy_flux2='2.98e-05', dlogl='1.94e+00', photon_flux2='2.45e-07', job_status='DONE', time_completed='2021-12-07 11:59:29.285262', photon_index_error2='3.60', photon_index2='6.54', ts='0.16', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='2.60e-07', energy_flux_error2='1.92e-05', EG='0.49', time_epoch_completed='1638907169.29', return_code='0', job_id='134119', GAL2='1.10', EG2='0.26', return_code2='102', photon_flux_error2='1.50e-07', ts2='4.58', photon_index='2.34' WHERE bin_id='1622' AND source_name='4FGL J0058.4+3315' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 11:59:29 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 134119: <4FGL_J0058.4+3315_daily_bin1622> in cluster <slac> Done

Job <4FGL_J0058.4+3315_daily_bin1622> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 11:45:32 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 11:48:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 11:48:07 2021
Terminated at Tue Dec  7 11:59:30 2021
Results reported at Tue Dec  7 11:59:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0058.4+3315_daily_bin1622 14.6101 33.2505 659750401 660009601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0058.4+3315 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   486.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            838 sec.

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

