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


Performing analysis on: 4FGL_J0058.4+3315_daily_bin1590
RA = 14.6101, Dec = 33.2505
tmin = 651456001, tmax = 651715201
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='220101', job_status='RUN', time_executed='2021-08-27 00:02:20.209322', time_epoch_executed='1630047740.21' WHERE source_name='4FGL J0058.4+3315' and cadence='daily' and bin_id='1590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/220101

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/220101/ft1_4FGL_J0058.4+3315_daily_bin1590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/220101/ft2_4FGL_J0058.4+3315_daily_bin1590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/220101/ft1_4FGL_J0058.4+3315_daily_bin1590.fits outfile=/scratch/kocevski/220101/ft1_filteredMKT_4FGL_J0058.4+3315_daily_bin1590.fits ra=14.6101 dec=33.2505 rad=12.0 tmin=651456001.0 tmax=651715201.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 9.86
user 3.28
sys 6.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/220101/ft2_4FGL_J0058.4+3315_daily_bin1590.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/220101/ft1_filteredMKT_4FGL_J0058.4+3315_daily_bin1590.fits evtable="EVENTS" outfile="/scratch/kocevski/220101/ft1_filtered_4FGL_J0058.4+3315_daily_bin1590.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 7.80
user 0.34
sys 6.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/220101/ft1_filtered_4FGL_J0058.4+3315_daily_bin1590.fits" evtable="EVENTS" scfile=/scratch/kocevski/220101/ft2_4FGL_J0058.4+3315_daily_bin1590.fits sctable="SC_DATA" outfile=/scratch/kocevski/220101/ltcube_651456001_651715201_4FGL_J0058.4+3315_daily_bin1590.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/220101/ft2_4FGL_J0058.4+3315_daily_bin1590.fits
.....................!
real 19.27
user 11.57
sys 7.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/220101/ft1_filtered_4FGL_J0058.4+3315_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/220101/ft2_4FGL_J0058.4+3315_daily_bin1590.fits sctable="SC_DATA" expcube=/scratch/kocevski/220101/ltcube_651456001_651715201_4FGL_J0058.4+3315_daily_bin1590.fits outfile=/scratch/kocevski/220101/expmap_651456001_651715201_4FGL_J0058.4+3315_daily_bin1590.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/220101/ltcube_651456001_651715201_4FGL_J0058.4+3315_daily_bin1590.fits
.....................!
real 199.70
user 185.90
sys 12.13

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/220101/ft1_filtered_4FGL_J0058.4+3315_daily_bin1590.fits scfile=/scratch/kocevski/220101/ft2_4FGL_J0058.4+3315_daily_bin1590.fits outfile=/scratch/kocevski/220101/cmap_651456001_651715201_4FGL_J0058.4+3315_daily_bin1590.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 6.57
user 0.38
sys 6.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/220101/ft1_filtered_4FGL_J0058.4+3315_daily_bin1590.fits scfile=/scratch/kocevski/220101/ft2_4FGL_J0058.4+3315_daily_bin1590.fits outfile=/scratch/kocevski/220101/cmap_HighResolution_651456001_651715201_4FGL_J0058.4+3315_daily_bin1590.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 6.53
user 0.41
sys 5.98

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/220101/ft1_filtered_4FGL_J0058.4+3315_daily_bin1590.fits', '/scratch/kocevski/220101/ft2_4FGL_J0058.4+3315_daily_bin1590.fits', expMap='/scratch/kocevski/220101/expmap_651456001_651715201_4FGL_J0058.4+3315_daily_bin1590.fits', expCube='/scratch/kocevski/220101/ltcube_651456001_651715201_4FGL_J0058.4+3315_daily_bin1590.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/220101/Model_4FGL_J0058.4+3315_daily_bin1590.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/220101/ft1_filtered_4FGL_J0058.4+3315_daily_bin1590.fits
Spacecraft file(s): /scratch/kocevski/220101/ft2_4FGL_J0058.4+3315_daily_bin1590.fits
Exposure map: /scratch/kocevski/220101/expmap_651456001_651715201_4FGL_J0058.4+3315_daily_bin1590.fits
Exposure cube: /scratch/kocevski/220101/ltcube_651456001_651715201_4FGL_J0058.4+3315_daily_bin1590.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/220101/Model_4FGL_J0058.4+3315_daily_bin1590.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) = 8192.81204634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4838       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.457       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.649       1.0000         .10000E-03   10000.    
     6 'norm      '    3.3739       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3264       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2393       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.221       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4940       1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.465       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .38971       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0476       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .70426       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2630       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.291       1.0000         .10000E-03   10000.    
    20 'norm      '    1.8507       1.0000         .10000E-03   10000.    
    21 'Prefactor '    94.455       1.0000         .10000E-03   10000.    
    22 'norm      '    .29020       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2702       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78962       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.

 FCN=   8192.805     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2938 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4835        14.870        .84909E-06   -.94712E-05
   2  Prefactor     12.458        8.2208        .12959E-06   -.75375E-05
   3  Prefactor     .10000E-03    45.981       -.13798E-05** at limit **
   4  Prefactor     .10000E-03    20.696       -.33688E-06** at limit **
   5  Prefactor     13.602        39.792        .61289E-05   -.63340E-04
   6  norm          3.3739        2.2402        .21889E-06   -.50981E-04
   7  Prefactor     3.3267        10.432        .27908E-05   -.30567E-04
   8  Prefactor     2.2393        3.7804       -.17600E-08   -.21803E-04
   9  Prefactor     19.222        13.067        .10705E-06   -.89562E-05
  10  Prefactor     5.4952        9.0216        .11787E-05   -.46209E-04
  11  Prefactor     35.465        19.990       -.12544E-06   -.11750E-04
  12  Prefactor     .10000E-03    34.026        .94569E-06** at limit **
  13  Prefactor     .10000E-03    11.865        .14495E-06** at limit **
  14  norm          .38971        .37476       -.82282E-08   -.60647E-04
  15  norm          1.0469        1.3716       -.23727E-07   -.11966E-03
  16  Prefactor     .10000E-03    11.973       -.14552E-06** at limit **
  17  Prefactor     .70136        2.8847        .18695E-08   -.23950E-04
  18  Prefactor     2.2661        7.1261        .11206E-05    .22478E-04
  19  Prefactor     16.285        15.733        .70404E-06    .37411E-04
  20  norm          1.8507        .97752        .46426E-08    .32178E-05
  21  Prefactor     94.509        93.693       -.25206E-05    .86926E-04
  22  norm          .28902        .50226       -.36138E-06   -.22808E-02
  23  Prefactor     .10000E-03    2.9601        .19572E-09** at limit **
  24  Normalizat    1.2700        .19232       -.12364E-05    .68524E-04
  25  Prefactor     .78976        .10969        .28044E-06   -.22403E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.48353
  Prefactor  = 12.4575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6017
  norm       = 3.37392
  Prefactor  = 3.3267
  Prefactor  = 2.23926
  Prefactor  = 19.2222
  Prefactor  = 5.49522
  Prefactor  = 35.4653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.389705
  norm       = 1.04687
  Prefactor  = 0.0001
  Prefactor  = 0.701361
  Prefactor  = 2.26609
  Prefactor  = 16.2848
  norm       = 1.85068
  Prefactor  = 94.5092
  norm       = 0.289021
  Prefactor  = 0.0001
  Normalizat = 1.27001
  Prefactor  = 0.789755
 **********
 **   18 **HESSE 
 **********

 FCN=   8192.805     FROM HESSE     STATUS=OK           443 CALLS     3381 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4835        14.873        .78806E-03   -1.5199    
   2  Prefactor     12.458        8.2403        .11350E-03   -1.5002    
   3  Prefactor     .10000E-03    45.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.602        38.450        .10842E-03   -1.4970    
   6  norm          3.3739        2.2376        .53246E-03   -1.5341    
   7  Prefactor     3.3267        10.445        .11097E-02   -1.5343    
   8  Prefactor     2.2393        3.7573        .22107E-03   -1.5409    
   9  Prefactor     19.222        13.032        .91357E-04   -1.4831    
  10  Prefactor     5.4952        9.0202        .85710E-03   -1.5239    
  11  Prefactor     35.465        19.980        .67294E-04   -1.4516    
  12  Prefactor     .10000E-03    34.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .38971        .38363        .52156E-03   -1.5583    
  15  norm          1.0469        1.2979        .10652E-03   -1.5503    
  16  Prefactor     .10000E-03    11.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .70136        9.7383        .27998E-02   -1.5540    
  18  Prefactor     2.2661        6.9753        .27305E-03   -1.5407    
  19  Prefactor     16.285        15.555        .99230E-04   -1.4901    
  20  norm          1.8507        .98132        .63366E-04   -1.5436    
  21  Prefactor     94.509        89.356        .20677E-03   -1.3761    
  22  norm          .28902        .44867        .90655E-03   -1.5600    
  23  Prefactor     .10000E-03    2.9618        .15209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2700        .22377        .27286E-03   -.84466    
  25  Prefactor     .78976        .12902        .20726E-03   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33367e-08
Minuit parameter uncertainties:
  1  14.8811
  2  8.24106
  3  0.00010721
  4  1.0252e-06
  5  38.5198
  6  2.23767
  7  10.4508
  8  3.7577
  9  13.0336
  10  9.02242
  11  19.9835
  12  6.97796e-05
  13  7.13464e-06
  14  0.383632
  15  1.29794
  16  4.74173e-06
  17  5.22753
  18  6.9778
  19  15.5588
  20  0.981331
  21  89.4833
  22  0.448674
  23  4.26283e-07
  24  0.223938
  25  0.129069
Done.

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

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.922e+01  1.303e+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:  7.898e-01  1.291e-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:  1.270e+00  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.20
Ra Dec: 14.610 33.251
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 5.81e-08 +/- 3.94e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.40e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8192.69008842
delta logL = 0.114996078619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8192.67649789
delta logL = 0.12858660219

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.429       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7103       1.0000          .0000       10.000    
     3 'Normalizat'    1.2429       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80145       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8192.676     FROM MIGRAD    STATUS=FAILED       103 CALLS      295 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.418        26.403        .56812E-03   -.13407E-04
   2  Index         2.7100        1.2556        .57004E-02    .80696E-03
   3  Normalizat    1.2427        .22261        .27532E-03   -.94146E-05
   4  Prefactor     .80160        .13299        .20589E-03   -.64053E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8192.676     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      367 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.418        26.403        .19569E-03   -1.5003    
   2  Index         2.7100        1.2556        .73052E-03   -.47574    
   3  Normalizat    1.2427        .22261        .24450E-03   -.85293    
   4  Prefactor     .80160        .13299        .17948E-03   -.99669    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8192.676     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      396 TOTAL
                     EDM=   .31E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.418        17.134        .22725E-04   -.16609E-04
   2  Index         2.7100        .81986        .11401E-02   -.61826E-05
   3  Normalizat    1.2427        .21503        .11013E-04   -.94972E-05
   4  Prefactor     .80160        .12954        .82355E-05   -.66261E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4182
  Index      = 2.71
  Normalizat = 1.2427
  Prefactor  = 0.801597
 **********
 **   18 **HESSE 
 **********

 FCN=   8192.676     FROM HESSE     STATUS=OK            23 CALLS      419 TOTAL
                     EDM=   .53E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.418        16.301        .45450E-05   -1.5003    
   2  Index         2.7100        .78004        .45603E-04   -.47574    
   3  Normalizat    1.2427        .21405        .22026E-05   -.85293    
   4  Prefactor     .80160        .12902        .16471E-05   -.99669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29757e-13
Minuit parameter uncertainties:
  1  16.3071
  2  0.784099
  3  0.214199
  4  0.129069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/220101': 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) = 8192.6764946
delta logL = 0.12858989212

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.242e+01  1.631e+01  1.000e-04  1.000e+04 ( 1.000e-13)
190        Index:  2.710e+00  7.841e-01  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:  8.016e-01  1.291e-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:  1.243e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.48
Ra Dec: 14.610 33.251
Photon Index (Free Index): 2.71 +/- 0.78
Photon Flux (Free Index): 7.56e-08 +/- 5.51e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/220101/cmap_HighResolution_651456001_651715201_4FGL_J0058.4+3315_daily_bin1590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.81e-08', energy_flux2='1.80e-05', photon_flux_error='3.94e-08', dlogl='1.29e-01', energy_flux='2.06e-05', photon_flux2='7.56e-08', job_status='DONE', time_completed='2021-08-27 00:16:20.469526', photon_index_error2='0.78', photon_index2='2.71', ts='4.20', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='1.27', time_epoch_completed='1630048580.47', return_code='0', job_id='220101', GAL2='0.80', EG2='1.24', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='5.51e-08', ts2='4.48', photon_index='2.34' WHERE bin_id='1590' AND source_name='4FGL J0058.4+3315' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 00:16:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0015>
Subject: Job 220101: <4FGL_J0058.4+3315_daily_bin1590> in cluster <slac> Done

Job <4FGL_J0058.4+3315_daily_bin1590> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 27 00:00:28 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 00:00:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 00:00:31 2021
Terminated at Fri Aug 27 00:16:22 2021
Results reported at Fri Aug 27 00:16:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0058.4+3315_daily_bin1590 14.6101 33.2505 651456001 651715201 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 :                                   930.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            954 sec.

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

