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


Performing analysis on: 4FGL_J0958.0+4728_daily_bin1209
RA = 149.509, Dec = 47.4675
tmin = 552700801, tmax = 552960001
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='621086', job_status='RUN', time_executed='2021-09-01 08:01:03.382907', time_epoch_executed='1630508463.38' WHERE source_name='4FGL J0958.0+4728' and cadence='daily' and bin_id='1209'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621086

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621086/ft1_4FGL_J0958.0+4728_daily_bin1209.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621086/ft2_4FGL_J0958.0+4728_daily_bin1209.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621086/ft1_4FGL_J0958.0+4728_daily_bin1209.fits outfile=/scratch/kocevski/621086/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin1209.fits ra=149.509 dec=47.4675 rad=12.0 tmin=552700801.0 tmax=552960001.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.93
user 2.76
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/621086/ft2_4FGL_J0958.0+4728_daily_bin1209.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/621086/ft2_4FGL_J0958.0+4728_daily_bin1209.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/621086/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin1209.fits evtable="EVENTS" outfile="/scratch/kocevski/621086/ft1_filtered_4FGL_J0958.0+4728_daily_bin1209.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.52
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621086/ft1_filtered_4FGL_J0958.0+4728_daily_bin1209.fits" evtable="EVENTS" scfile=/scratch/kocevski/621086/ft2_4FGL_J0958.0+4728_daily_bin1209.fits sctable="SC_DATA" outfile=/scratch/kocevski/621086/ltcube_552700801_552960001_4FGL_J0958.0+4728_daily_bin1209.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/621086/ft2_4FGL_J0958.0+4728_daily_bin1209.fits
.....................!
real 14.22
user 13.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621086/ft1_filtered_4FGL_J0958.0+4728_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/621086/ft2_4FGL_J0958.0+4728_daily_bin1209.fits sctable="SC_DATA" expcube=/scratch/kocevski/621086/ltcube_552700801_552960001_4FGL_J0958.0+4728_daily_bin1209.fits outfile=/scratch/kocevski/621086/expmap_552700801_552960001_4FGL_J0958.0+4728_daily_bin1209.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/621086/ltcube_552700801_552960001_4FGL_J0958.0+4728_daily_bin1209.fits
.....................!
real 191.39
user 186.90
sys 3.94

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

Setting source of interest to:
4FGL J0958.0+4728 @ 149.509 47.4675

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/621086/ft1_filtered_4FGL_J0958.0+4728_daily_bin1209.fits scfile=/scratch/kocevski/621086/ft2_4FGL_J0958.0+4728_daily_bin1209.fits outfile=/scratch/kocevski/621086/cmap_552700801_552960001_4FGL_J0958.0+4728_daily_bin1209.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=149.509 yref=47.4675 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621086/ft1_filtered_4FGL_J0958.0+4728_daily_bin1209.fits scfile=/scratch/kocevski/621086/ft2_4FGL_J0958.0+4728_daily_bin1209.fits outfile=/scratch/kocevski/621086/cmap_HighResolution_552700801_552960001_4FGL_J0958.0+4728_daily_bin1209.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=149.509 yref=47.4675 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/621086/ft1_filtered_4FGL_J0958.0+4728_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/621086/ft2_4FGL_J0958.0+4728_daily_bin1209.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/621086/Model_4FGL_J0958.0+4728_daily_bin1209.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/621086/ft1_filtered_4FGL_J0958.0+4728_daily_bin1209.fits......................!
real 26.50
user 25.20
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/621086/ft1_filtered_4FGL_J0958.0+4728_daily_bin1209.fits', '/scratch/kocevski/621086/ft2_4FGL_J0958.0+4728_daily_bin1209.fits', expMap='/scratch/kocevski/621086/expmap_552700801_552960001_4FGL_J0958.0+4728_daily_bin1209.fits', expCube='/scratch/kocevski/621086/ltcube_552700801_552960001_4FGL_J0958.0+4728_daily_bin1209.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/621086/Model_4FGL_J0958.0+4728_daily_bin1209.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0958.0+4728'

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  6.827e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  2.365e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  2.538e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  4.863e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/621086/ft1_filtered_4FGL_J0958.0+4728_daily_bin1209.fits
Spacecraft file(s): /scratch/kocevski/621086/ft2_4FGL_J0958.0+4728_daily_bin1209.fits
Exposure map: /scratch/kocevski/621086/expmap_552700801_552960001_4FGL_J0958.0+4728_daily_bin1209.fits
Exposure cube: /scratch/kocevski/621086/ltcube_552700801_552960001_4FGL_J0958.0+4728_daily_bin1209.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/621086/Model_4FGL_J0958.0+4728_daily_bin1209.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) = 1868.13890384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10000.       1.0000         .10000E-03   10000.    
     2 'norm      '    10000.       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    978.25       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .31511E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .61530       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    232.19       1.0000         .10000E-03   10000.    
    21 'norm      '    1.1827       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    12.429       1.0000         .10000E-03   10000.    
    26 'Prefactor '    31.000       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    16.816       1.0000         .10000E-03   10000.    
    30 'norm      '    2.8664       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    53.482       1.0000         .10000E-03   10000.    
    34 'Prefactor '    97.266       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .15610       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.5144       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7010E+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=   1867.908     FROM MIGRAD    STATUS=CONVERGED   1792 CALLS     6906 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        410.42        .18142E-02** at limit **
   2  norm         10000.0        475.58        .18142E-02** at limit **
   3  Prefactor     .10000E-03    12.543        .14953E-02** at limit **
   4  Prefactor     978.71        7433.5        .67322E-04   -.17985E-05
   5  Prefactor     .10002E-03    1248.2        .21369E-02** at limit **
   6  Prefactor     .10000E-03    4.4419        .88959E-03** at limit **
   7  Prefactor     .10000E-03    47.785        .18142E-02** at limit **
   8  norm          .10000E-03    1.0276        .73506E-03** at limit **
   9  Prefactor     .10000E-03    2.8509        .71226E-03** at limit **
  10  norm          .10000E-03    12.420        .14868E-02** at limit **
  11  Prefactor     .61536        6.2371        .20841E-03   -.40272E-03
  12  Prefactor     .10000E-03    14.488        .16071E-02** at limit **
  13  Prefactor     .10000E-03    6.0482        .10382E-02** at limit **
  14  Prefactor     .10000E-03    13.978        .15786E-02** at limit **
  15  norm          .10000E-03    11.508        .14323E-02** at limit **
  16  Prefactor     .10000E-03    14.808        .16247E-02** at limit **
  17  Prefactor     .10000E-03    6.4167        .10693E-02** at limit **
  18  norm          .10000E-03    36.772        .18142E-02** at limit **
  19  Prefactor     .10000E-03    17.829        .17828E-02** at limit **
  20  Prefactor     232.17        277.84        .13280E-03    .83295E-05
  21  norm          1.1826        1.1215        .41623E-04   -.98260E-04
  22  norm          .10000E-03    9.3623        .12913E-02** at limit **
  23  Prefactor     .10000E-03    3.2724        .76347E-03** at limit **
  24  Prefactor     .10000E-03    22.368        .18142E-02** at limit **
  25  norm          12.428        5.9211        .69931E-04   -.91275E-04
  26  Prefactor     31.025        69.603        .71963E-04   -.33958E-04
  27  norm          .10000E-03    8.8419        .12505E-02** at limit **
  28  Prefactor     .10000E-03    29.668        .18142E-02** at limit **
  29  Prefactor     16.814        8.5500        .81864E-04   -.16325E-03
  30  norm          2.8662        2.2557        .55792E-04   -.10071E-03
  31  Prefactor     .10000E-03    22.883        .18142E-02** at limit **
  32  Prefactor     .10000E-03    30.356        .18142E-02** at limit **
  33  Prefactor     53.466        133.23        .54845E-04   -.10986E-05
  34  Prefactor     97.259        78.053        .40758E-04   -.15104E-04
  35  Normalizat    .15624        .37307        .50300E-03   -.90690E-05
  36  Prefactor     1.5143        .47627        .23482E-03   -.73342E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 978.71
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.615361
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 232.166
  norm       = 1.18265
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4282
  Prefactor  = 31.0254
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8141
  norm       = 2.86624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.4658
  Prefactor  = 97.2591
  Normalizat = 0.156236
  Prefactor  = 1.51426
 **********
 **   18 **HESSE 
 **********

 FCN=   1867.908     FROM HESSE     STATUS=OK           775 CALLS     7681 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        410.41        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        475.56        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.543        .29906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     978.71        7432.5        .13464E-04   -.93443    
   5  Prefactor     .10002E-03    1248.2        .42738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.4419        .17792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    47.786        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.0283        .14701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8509        .14245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    12.421        .29736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .61536        6.2361        .83363E-05   -1.5551    
  12  Prefactor     .10000E-03    14.488        .32142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.0482        .20764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.978        .31572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.508        .28645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.808        .32493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.4167        .21386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    36.772        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.829        .35657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     232.17        277.82        .26561E-04   -1.2649    
  21  norm          1.1826        1.1215        .16649E-05   -1.5490    
  22  norm          .10000E-03    9.3625        .25827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.2724        .15269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.368        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          12.428        5.9210        .13986E-04   -1.5003    
  26  Prefactor     31.025        69.594        .14393E-04   -1.4593    
  27  norm          .10000E-03    8.8431        .25010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    29.669        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     16.814        8.5482        .32745E-05   -1.4888    
  30  norm          2.8662        2.2557        .22317E-05   -1.5369    
  31  Prefactor     .10000E-03    22.884        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    30.357        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     53.466        133.19        .10969E-04   -1.4244    
  34  Prefactor     97.259        78.038        .81515E-05   -1.3732    
  35  Normalizat    .15624        .37197        .20120E-04   -1.3282    
  36  Prefactor     1.5143        .47508        .46963E-04   -.77141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.27171e-10
Minuit parameter uncertainties:
  1  0.00342345
  2  0.00534998
  3  1.10089e-05
  4  7062.24
  5  0.00969891
  6  1.95864e-06
  7  0.000249534
  8  4.47604e-07
  9  1.37383e-06
  10  5.16057e-06
  11  3.91809
  12  3.83879e-05
  13  5.94014e-06
  14  5.31143e-05
  15  6.02123e-05
  16  2.58207e-05
  17  7.43518e-06
  18  0.000403248
  19  0.00014743
  20  279.42
  21  1.1215
  22  4.33327e-05
  23  4.92076e-06
  24  4.36586e-05
  25  5.92129
  26  69.7773
  27  1.57791e-05
  28  0.000108835
  29  8.54883
  30  2.25579
  31  6.56775e-05
  32  5.25094e-05
  33  133.943
  34  78.121
  35  0.378206
  36  0.47648
Done.

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

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  1.000e-04  4.333e-05  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  2.365e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  2.538e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  4.863e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  1.514e+00  4.765e-01  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  1.562e-01  3.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 149.509 47.468
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/621086/likelihoodResults_552700801_552960001_4FGL_J0958.0+4728_daily_bin1209.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1867.90883399
delta logL = -0.000397735197339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1867.90843661
delta logL = -3.57001226803e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3563       1.0000          .0000       5.0000    
     3 'Normalizat'    .15595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5146       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7010E+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=   1867.908     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      240 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    231.85        .12976E-01** at limit **
   2  alpha         1.7019        3.0925        .50000       -.14779E-07
   3  Normalizat    .15623        .30027E-01    .50300E-03    .30721E-04
   4  Prefactor     1.5143        .41615E-01    .23482E-03    .71994E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.7019
  Normalizat = 0.156234
  Prefactor  = 1.51426
 **********
 **   18 **HESSE 
 **********

 FCN=   1867.908     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      267 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6222.9        .14120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7019        3.0176        .20000       -.32493    
   3  Normalizat    .15623        .23816        .20120E-04   -1.3282    
   4  Prefactor     1.5143        .33179        .46963E-04   -.77141    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.13477e-11
Minuit parameter uncertainties:
  1  0.000958445
  2  7001.15
  3  0.239754
  4  0.332269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621086': 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) = 1867.90843537
delta logL = 8.77979800862e-07

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  1.000e-04  9.584e-04  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  1.702e+00  7.001e+03  0.000e+00  5.000e+00 ( 1.000e+00)
355         beta:  2.538e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  4.863e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  1.514e+00  3.323e-01  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  1.562e-01  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 149.509 47.468

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/621086/cmap_HighResolution_552700801_552960001_4FGL_J0958.0+4728_daily_bin1209.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-05', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-01 08:12:51.010620', job_id='621086', GAL2='1.51', fit_tolerance='1e-08', EG2='0.16', EG='0.16', time_epoch_completed='1630509171.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.51', dlogl='8.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1209' AND source_name='4FGL J0958.0+4728' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 08:12:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 621086: <4FGL_J0958.0+4728_daily_bin1209> in cluster <slac> Done

Job <4FGL_J0958.0+4728_daily_bin1209> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 08:00:34 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 08:00:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 08:00:41 2021
Terminated at Wed Sep  1 08:12:51 2021
Results reported at Wed Sep  1 08:12:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.0+4728_daily_bin1209 149.509 47.4675 552700801 552960001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0958.0+4728 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   677.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            737 sec.

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

