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


Performing analysis on: 4FGL_J0958.0+4728_daily_bin1215
RA = 149.509, Dec = 47.4675
tmin = 554256001, tmax = 554515201
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='621097', job_status='RUN', time_executed='2021-09-01 08:03:56.912482', time_epoch_executed='1630508636.91' WHERE source_name='4FGL J0958.0+4728' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621097

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621097/ft1_4FGL_J0958.0+4728_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621097/ft2_4FGL_J0958.0+4728_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621097/ft1_4FGL_J0958.0+4728_daily_bin1215.fits outfile=/scratch/kocevski/621097/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin1215.fits ra=149.509 dec=47.4675 rad=12.0 tmin=554256001.0 tmax=554515201.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.06
user 3.82
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/621097/ft2_4FGL_J0958.0+4728_daily_bin1215.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/621097/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin1215.fits evtable="EVENTS" outfile="/scratch/kocevski/621097/ft1_filtered_4FGL_J0958.0+4728_daily_bin1215.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.55
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621097/ft1_filtered_4FGL_J0958.0+4728_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/621097/ft2_4FGL_J0958.0+4728_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/621097/ltcube_554256001_554515201_4FGL_J0958.0+4728_daily_bin1215.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/621097/ft2_4FGL_J0958.0+4728_daily_bin1215.fits
.....................!
real 14.55
user 14.12
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621097/ft1_filtered_4FGL_J0958.0+4728_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/621097/ft2_4FGL_J0958.0+4728_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/621097/ltcube_554256001_554515201_4FGL_J0958.0+4728_daily_bin1215.fits outfile=/scratch/kocevski/621097/expmap_554256001_554515201_4FGL_J0958.0+4728_daily_bin1215.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/621097/ltcube_554256001_554515201_4FGL_J0958.0+4728_daily_bin1215.fits
.....................!
real 194.46
user 189.10
sys 3.72

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/621097/ft1_filtered_4FGL_J0958.0+4728_daily_bin1215.fits scfile=/scratch/kocevski/621097/ft2_4FGL_J0958.0+4728_daily_bin1215.fits outfile=/scratch/kocevski/621097/cmap_554256001_554515201_4FGL_J0958.0+4728_daily_bin1215.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621097/ft1_filtered_4FGL_J0958.0+4728_daily_bin1215.fits scfile=/scratch/kocevski/621097/ft2_4FGL_J0958.0+4728_daily_bin1215.fits outfile=/scratch/kocevski/621097/cmap_HighResolution_554256001_554515201_4FGL_J0958.0+4728_daily_bin1215.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.98
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/621097/ft1_filtered_4FGL_J0958.0+4728_daily_bin1215.fits', '/scratch/kocevski/621097/ft2_4FGL_J0958.0+4728_daily_bin1215.fits', expMap='/scratch/kocevski/621097/expmap_554256001_554515201_4FGL_J0958.0+4728_daily_bin1215.fits', expCube='/scratch/kocevski/621097/ltcube_554256001_554515201_4FGL_J0958.0+4728_daily_bin1215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/621097/Model_4FGL_J0958.0+4728_daily_bin1215.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/621097/ft1_filtered_4FGL_J0958.0+4728_daily_bin1215.fits
Spacecraft file(s): /scratch/kocevski/621097/ft2_4FGL_J0958.0+4728_daily_bin1215.fits
Exposure map: /scratch/kocevski/621097/expmap_554256001_554515201_4FGL_J0958.0+4728_daily_bin1215.fits
Exposure cube: /scratch/kocevski/621097/ltcube_554256001_554515201_4FGL_J0958.0+4728_daily_bin1215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/621097/Model_4FGL_J0958.0+4728_daily_bin1215.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 136.711476732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 135.66462666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0040       1.0000         .10000E-03   10000.    
     2 'norm      '    6.3329       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0053       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8972       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1636       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .74117E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8660       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1236       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1658       1.0000         .10000E-03   10000.    
    10 'norm      '    .10242       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41118E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6322       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .55345E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1600       1.0000         .10000E-03   10000.    
    15 'norm      '    497.81       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.198       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .38913       1.0000         .10000E-03   10000.    
    18 'norm      '    .45276E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.225       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.7490       1.0000         .10000E-03   10000.    
    21 'norm      '    .12133E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.1013       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .43656E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.9239       1.0000         .10000E-03   10000.    
    25 'norm      '    1.6739       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.9156       1.0000         .10000E-03   10000.    
    27 'norm      '    .40715E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .56902E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .84887E-02   1.0000         .10000E-03   10000.    
    30 'norm      '    .10599       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .42877E-01   1.0000         .10000E-03   10000.    
    32 'Prefactor '    9.3905       1.0000         .10000E-03   10000.    
    33 'Prefactor '    6.3295       1.0000         .10000E-03   10000.    
    34 'Prefactor '    8.8574       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .92103       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.3721       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   135.6451     FROM MIGRAD    STATUS=CONVERGED    357 CALLS      591 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0040        1.0035         .0000         .0000    
   2  norm          6.3329        1.0031         .0000         .0000    
   3  Prefactor     1.0053        1.3475         .0000         .0000    
   4  Prefactor     1.8972        1.0398         .0000         .0000    
   5  Prefactor     4.1636        1.0074         .0000         .0000    
   6  Prefactor     .10000E-03    .22029       -.87914E-05** at limit **
   7  Prefactor     .10073E-03    .90089E-01   -.13742E-04** at limit **
   8  norm          1.1236        1.1721         .0000         .0000    
   9  Prefactor     1.1658        1.1493         .0000         .0000    
  10  norm          .10000E-03    .22671       -.29830E-05** at limit **
  11  Prefactor     .10000E-03    .28225       -.13564E-04** at limit **
  12  Prefactor     5.6322        1.0040         .0000         .0000    
  13  Prefactor     .10047E-03    .21604       -.91907E-05** at limit **
  14  Prefactor     .11287        .16590       -.18456E-04    .38965E-03
  15  norm          524.85        1.0253        .29830E-05   -.22427E-01
  16  Prefactor     .10615        .62538E-01   -.61103E-04    .32676E-02
  17  Prefactor     .10222E-03    .29211       -.24443E-04** at limit **
  18  norm          .10967E-03    .23368       -.30934E-04** at limit **
  19  Prefactor     .12279        .67234E-01   -.80080E-04   -.46766E-02
  20  Prefactor     .16315E-01    .45858E-01   -.16436E-03   -.21032E-02
  21  norm          .10000E-03    .20571       -.11508E-05** at limit **
  22  norm          .74764E-01    .11103       -.11705E-03    .28487E-02
  23  Prefactor     .10001E-03    .23483       -.13401E-05** at limit **
  24  Prefactor     25.407        1.7927        .81066E-04   -.46587E-02
  25  norm          .10000E-03    .16580       -.10121E-04** at limit **
  26  Prefactor     .14338E-02    .42593E-01   -.50734E-04** at limit **
  27  norm          .10000E-03    .21273       -.10740E-05** at limit **
  28  Prefactor     .10003E-03    .27804       -.34462E-04** at limit **
  29  Prefactor     2.6810        1.5040        .60824E-04    .69235E-04
  30  norm          .10000E-03    .22752        .11569E-04** at limit **
  31  Prefactor     .10000E-03    .21322       -.27049E-05** at limit **
  32  Prefactor     .85453E-01    .95519E-01   -.45303E-04   -.14489E-02
  33  Prefactor     .70864E-01    .10610       -.55479E-04   -.14846E-02
  34  Prefactor     .95261E-01    .10386       -.63901E-04   -.22573E-02
  35  Normalizat    .88189        1.2307        .14112E-03   -.41407E-04
  36  Prefactor     1.3827        1.0681       -.13554E-03   -.48371E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.00399
  norm       = 6.33292
  Prefactor  = 1.00528
  Prefactor  = 1.89722
  Prefactor  = 4.1636
  Prefactor  = 0.000100002
  Prefactor  = 0.000100726
  norm       = 1.12355
  Prefactor  = 1.16584
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 5.63222
  Prefactor  = 0.000100467
  Prefactor  = 0.112868
  norm       = 524.845
  Prefactor  = 0.106146
  Prefactor  = 0.000102218
  norm       = 0.00010967
  Prefactor  = 0.122795
  Prefactor  = 0.0163149
  norm       = 0.0001
  norm       = 0.0747637
  Prefactor  = 0.000100005
  Prefactor  = 25.407
  norm       = 0.000100003
  Prefactor  = 0.00143381
  norm       = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 2.68103
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0854534
  Prefactor  = 0.0708636
  Prefactor  = 0.0952609
  Normalizat = 0.881886
  Prefactor  = 1.38268
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   135.6451     FROM HESSE     STATUS=FAILED        11 CALLS      602 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          521.94        515.89         .0000       -1.5218    
   2  norm          6.3329        1.0031         .0000       -1.5205    
   3  Prefactor     1.0053        1.3475         .0000       -1.5507    
   4  Prefactor     1.8972        1.0398         .0000       -1.5432    
   5  Prefactor     4.1636        1.0074         .0000       -1.5300    
   6  Prefactor     .10000E-03    .22029       -.87914E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10073E-03    .90089E-01   -.13742E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1236        1.1721         .0000       -1.5496    
   9  Prefactor     1.1658        1.1493         .0000       -1.5492    
  10  norm          .10000E-03    .22671       -.29830E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .28225       -.13564E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.6322        1.0040         .0000       -1.5233    
  13  Prefactor     .10047E-03    .21604       -.91907E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .11287        .16590       -.18456E-04   -1.5641    
  15  norm          524.85        1.0253        .29830E-05   -1.1085    
  16  Prefactor     .10615        .62538E-01   -.61103E-04   -1.5643    
  17  Prefactor     .10222E-03    .29211       -.24443E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10967E-03    .23368       -.30934E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .12279        .67234E-01   -.80080E-04   -1.5778    
  20  Prefactor     .16315E-01    .45858E-01   -.16436E-03   -1.5733    
  21  norm          .10000E-03    .20571       -.11508E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .74764E-01    .11103       -.11705E-03   -1.5653    
  23  Prefactor     .10001E-03    .23483       -.13401E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.407        1.7927        .81066E-04   -1.4699    
  25  norm          .10000E-03    .16580       -.10121E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .14338E-02    .42593E-01   -.50734E-04   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .21273       -.10740E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10003E-03    .27804       -.34462E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.6810        1.5040        .60824E-04   -1.5380    
  30  norm          .10000E-03    .22752        .11569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    .21322       -.27049E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .85453E-01    .95519E-01   -.45303E-04   -1.5766    
  33  Prefactor     .70864E-01    .10610       -.55479E-04   -1.5761    
  34  Prefactor     .95261E-01    .10386       -.63901E-04   -1.5770    
  35  Normalizat    .88189        1.2307        .14112E-03   -.97100    
  36  Prefactor     1.3827        1.0681       -.13554E-03   -.80881    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.82457e-09
Minuit parameter uncertainties:
  1  1.00351
  2  1.00315
  3  1.3475
  4  1.0398
  5  1.0074
  6  4.06957e-05
  7  0.000511313
  8  1.17211
  9  1.14936
  10  1.5554e-05
  11  6.67583e-05
  12  1.00399
  13  0.000635139
  14  0.1659
  15  1.02534
  16  0.0625382
  17  0.00160977
  18  0.00300645
  19  0.0672342
  20  0.045858
  21  6.66309e-06
  22  0.111033
  23  6.93828e-05
  24  1.79266
  25  4.75436e-05
  26  0.0150747
  27  7.9007e-06
  28  0.000174528
  29  1.504
  30  4.43246e-05
  31  1.05562e-05
  32  0.0955189
  33  0.106103
  34  0.103864
  35  1.27359
  36  1.08591
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 135.645118434

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  7.476e-02  1.110e-01  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.383e+00  1.086e+00  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:  8.819e-01  1.274e+00  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -1.0425317715

TS (Fixed Index): -0.00
Ra Dec: 149.509 47.468
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -3.00e+02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/621097/likelihoodResults_554256001_554515201_4FGL_J0958.0+4728_daily_bin1215.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) = 135.645227419
delta logL = -0.000108984218969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 135.645227407
delta logL = -0.000108972369361

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'alpha     '    2.3600       1.0000          .0000       5.0000    
 **********
 **   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.

 FCN=   135.6452     FROM MIGRAD    STATUS=CONVERGED     21 CALLS       74 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    alpha       1.7414        3.0779       -.25086        .33528E-06
                               ERR DEF=  .500    
Final values: 
  alpha      = 1.74137
 **********
 **   18 **HESSE 
 **********

 FCN=   135.6452     FROM HESSE     STATUS=OK             9 CALLS       83 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       1.7414        3.6403        .16493       -.30831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69196e-09
Minuit parameter uncertainties:
  1  431.758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621097': 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) = 135.645226348
delta logL = -0.000107913635532

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  7.295e-02  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
354        alpha:  1.741e+00  4.318e+02  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.385e+00  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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:  8.796e-01  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/621097/cmap_HighResolution_554256001_554515201_4FGL_J0958.0+4728_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-3.00e+02', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-01 08:09:45.888522', job_id='621097', GAL2='1.39', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630508985.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.38', dlogl='-1.08e-04', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1215' AND source_name='4FGL J0958.0+4728' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 08:09:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 621097: <4FGL_J0958.0+4728_daily_bin1215> in cluster <slac> Done

Job <4FGL_J0958.0+4728_daily_bin1215> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 08:00:35 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 08:00:44 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:44 2021
Terminated at Wed Sep  1 08:09:47 2021
Results reported at Wed Sep  1 08:09:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.0+4728_daily_bin1215 149.509 47.4675 554256001 554515201 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 :                                   341.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   542 sec.
    Turnaround time :                            552 sec.

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

