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


Performing analysis on: 4FGL_J0958.0+4728_daily_bin1402
RA = 149.509, Dec = 47.4675
tmin = 602726401, tmax = 602985601
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='622580', job_status='RUN', time_executed='2021-09-01 08:08:17.787762', time_epoch_executed='1630508897.79' WHERE source_name='4FGL J0958.0+4728' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/622580

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/622580/ft1_4FGL_J0958.0+4728_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/622580/ft2_4FGL_J0958.0+4728_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/622580/ft1_4FGL_J0958.0+4728_daily_bin1402.fits outfile=/scratch/kocevski/622580/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin1402.fits ra=149.509 dec=47.4675 rad=12.0 tmin=602726401.0 tmax=602985601.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 3.10
user 2.88
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/622580/ft2_4FGL_J0958.0+4728_daily_bin1402.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/622580/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin1402.fits evtable="EVENTS" outfile="/scratch/kocevski/622580/ft1_filtered_4FGL_J0958.0+4728_daily_bin1402.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/622580/ft1_filtered_4FGL_J0958.0+4728_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/622580/ft2_4FGL_J0958.0+4728_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/622580/ltcube_602726401_602985601_4FGL_J0958.0+4728_daily_bin1402.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/622580/ft2_4FGL_J0958.0+4728_daily_bin1402.fits
.....................!
real 13.41
user 13.00
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/622580/ft1_filtered_4FGL_J0958.0+4728_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/622580/ft2_4FGL_J0958.0+4728_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/622580/ltcube_602726401_602985601_4FGL_J0958.0+4728_daily_bin1402.fits outfile=/scratch/kocevski/622580/expmap_602726401_602985601_4FGL_J0958.0+4728_daily_bin1402.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/622580/ltcube_602726401_602985601_4FGL_J0958.0+4728_daily_bin1402.fits
.....................!
real 193.34
user 187.19
sys 5.20

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/622580/ft1_filtered_4FGL_J0958.0+4728_daily_bin1402.fits scfile=/scratch/kocevski/622580/ft2_4FGL_J0958.0+4728_daily_bin1402.fits outfile=/scratch/kocevski/622580/cmap_602726401_602985601_4FGL_J0958.0+4728_daily_bin1402.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/622580/ft1_filtered_4FGL_J0958.0+4728_daily_bin1402.fits scfile=/scratch/kocevski/622580/ft2_4FGL_J0958.0+4728_daily_bin1402.fits outfile=/scratch/kocevski/622580/cmap_HighResolution_602726401_602985601_4FGL_J0958.0+4728_daily_bin1402.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.59
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/622580/ft1_filtered_4FGL_J0958.0+4728_daily_bin1402.fits', '/scratch/kocevski/622580/ft2_4FGL_J0958.0+4728_daily_bin1402.fits', expMap='/scratch/kocevski/622580/expmap_602726401_602985601_4FGL_J0958.0+4728_daily_bin1402.fits', expCube='/scratch/kocevski/622580/ltcube_602726401_602985601_4FGL_J0958.0+4728_daily_bin1402.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/622580/Model_4FGL_J0958.0+4728_daily_bin1402.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/622580/ft1_filtered_4FGL_J0958.0+4728_daily_bin1402.fits
Spacecraft file(s): /scratch/kocevski/622580/ft2_4FGL_J0958.0+4728_daily_bin1402.fits
Exposure map: /scratch/kocevski/622580/expmap_602726401_602985601_4FGL_J0958.0+4728_daily_bin1402.fits
Exposure cube: /scratch/kocevski/622580/ltcube_602726401_602985601_4FGL_J0958.0+4728_daily_bin1402.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/622580/Model_4FGL_J0958.0+4728_daily_bin1402.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) = 124.414148002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66415E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    13.139       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10582E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .44515       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .62483       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27257       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6956       1.0000         .10000E-03   10000.    
     8 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19082E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    2.8694       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16059       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27724       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30400E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2735       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0177       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8099       1.0000         .10000E-03   10000.    
    17 'Prefactor '    257.64       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1921       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .74606E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.2954       1.0000         .10000E-03   10000.    
    23 'Prefactor '    226.99       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.8976       1.0000         .10000E-03   10000.    
    25 'norm      '    9.0430       1.0000         .10000E-03   10000.    
    26 'Prefactor '    29.814       1.0000         .10000E-03   10000.    
    27 'norm      '    9.9316       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.9817       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.2240       1.0000         .10000E-03   10000.    
    30 'norm      '    9999.8       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .19596E-02   1.0000         .10000E-03   10000.    
    32 'Prefactor '    10.771       1.0000         .10000E-03   10000.    
    33 'Prefactor '    2.3123       1.0000         .10000E-03   10000.    
    34 'Prefactor '    4.8057       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    36 'Prefactor '    .56496       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   112.4336     FROM MIGRAD    STATUS=CONVERGED    697 CALLS     1162 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.291        .33761E-07** at limit **
   2  norm          14.097        22.777       -.86702E-06   -.18327E-04
   3  Prefactor     .10000E-03    29.960       -.29914E-05** at limit **
   4  Prefactor     .10000E-03    297.44        .45093E-04** at limit **
   5  Prefactor     .10000E-03    213.94        .86096E-06** at limit **
   6  Prefactor     .10000E-03    136.19        .21077E-05** at limit **
   7  Prefactor     .10109E-03    6825.3       -.27096E-04** at limit **
   8  norm          .10000E-03    10.998       -.54842E-07** at limit **
   9  Prefactor     .10000E-03    82.223       -.13279E-05** at limit **
  10  norm          .19415        9999.9        .22952E-03    .90562E-03
  11  Prefactor     .10009E-03    588.99        .44665E-04** at limit **
  12  Prefactor     .10000E-03    94.191       -.49567E-06** at limit **
  13  Prefactor     .10000E-03    45.440       -.50378E-06** at limit **
  14  Prefactor     .10003E-03    2149.5       -.14726E-03** at limit **
  15  norm          9787.4        9462.4       -.27284E-03    .33159E-02
  16  Prefactor     3808.0        6693.7       -.25441E-03   -.81427E-02
  17  Prefactor     171.96        220.41        .19812E-04    .44930E-03
  18  norm          .10000E-03    25.528       -.14486E-07** at limit **
  19  Prefactor     7.1921        1.0024         .0000         .0000    
  20  Prefactor     .10000E-03    77.982       -.34645E-06** at limit **
  21  norm          .10000E-03    3.6315       -.29438E-07** at limit **
  22  norm          9999.7        9784.7       -.27942E-03    .34889E-03
  23  Prefactor     4847.3        7370.2        .38755E-03   -.35544E-02
  24  Prefactor     5.8976        1.0036         .0000         .0000    
  25  norm          9999.7        9845.7       -.23419E-03   -.43133E-03
  26  Prefactor     .49657E-02    7170.6        .72269E-04   -.69944E-03
  27  norm          179.74        237.73       -.33332E-05   -.18363E-02
  28  Prefactor     .56325E-01    8784.8       -.42669E-04   -.10900E-02
  29  Prefactor     .11114E-03    7576.5        .25282E-04** at limit **
  30  norm         10000.0        2243.5       -.72968E-04** at limit **
  31  Prefactor     .10000E-03    6194.4        .47840E-06** at limit **
  32  Prefactor     9999.7        9925.1       -.11458E-04    .13589E-02
  33  Prefactor     .10000E-03    1402.0       -.49565E-06** at limit **
  34  Prefactor     .10007E-03    1646.1       -.89432E-05** at limit **
  35  Normalizat    .10000E-01    .26112        .14741E-06** at limit **
  36  Prefactor     .41439        .40463        .55643E-05   -.58763E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 14.0973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000101093
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.194149
  Prefactor  = 0.000100092
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100033
  norm       = 9787.39
  Prefactor  = 3808.03
  Prefactor  = 171.959
  norm       = 0.0001
  Prefactor  = 7.19212
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9999.7
  Prefactor  = 4847.35
  Prefactor  = 5.89762
  norm       = 9999.67
  Prefactor  = 0.00496566
  norm       = 179.742
  Prefactor  = 0.0563248
  Prefactor  = 0.000111136
  norm       = 10000
  Prefactor  = 0.000100001
  Prefactor  = 9999.67
  Prefactor  = 0.0001
  Prefactor  = 0.000100075
  Normalizat = 0.01
  Prefactor  = 0.414387
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   112.4336     FROM HESSE     STATUS=FAILED        83 CALLS     1245 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.290        .10505E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.097        21.961        .27626E-02   -1.4957    
   3  Prefactor     .10000E-03    28.947        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    304.53        .11045E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    210.60        .11770E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    142.03        .10304E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10109E-03    6753.0        .46426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.296        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    88.517        .10135E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .19415        9998.7        .59991E-02   -1.5620    
  11  Prefactor     .10009E-03    592.57        .97963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    86.962        .10325E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.438        .10692E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    2108.3        .48723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9787.4        9848.9        .72844E-02    1.8635    
  16  Prefactor     3808.0        4086.1        .60666E-02   -.24071    
  17  Prefactor     171.96        209.47        .63119E-03   -1.3078    
  18  norm          .10000E-03    25.420        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     511.68        504.46         .0000       -1.5172    
  20  Prefactor     .10000E-03    .21611       -.34645E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .20571       -.29438E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9999.7        .20502       -.27942E-03    1.5818    
  23  Prefactor     4847.3        3.3554        .38755E-03   -.30535E-01
  24  Prefactor     5.8976        1.0036         .0000       -1.5222    
  25  norm          9999.7        .19201       -.23419E-03    1.5593    
  26  Prefactor     .49657E-02    .12796E-01    .72269E-04   -1.5722    
  27  norm          179.74        4.2232       -.33332E-05   -1.3019    
  28  Prefactor     .56325E-01    .90003E-01   -.42669E-04   -1.5755    
  29  Prefactor     .11114E-03    .11878        .25282E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm         10000.0        .25540       -.72968E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    .25621        .47840E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     9999.7        .17423       -.11458E-04    1.5822    
  33  Prefactor     .10000E-03    .11374       -.49565E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10007E-03    .52623E-01   -.89432E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .10000E-01    .25505        .14741E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .41439        .78664        .55643E-05   -1.1608    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.98958e-09
Minuit parameter uncertainties:
  1  2.13435e-07
  2  21.9738
  3  0.00020833
  4  0.000409576
  5  0.00073184
  6  0.000314698
  7  0.132518
  8  1.80756e-06
  9  0.000893683
  10  137.397
  11  0.0149521
  12  6.63035e-05
  13  0.000897163
  14  0.017315
  15  13744.1
  16  4855.84
  17  210.391
  18  1.70545e-06
  19  1.00244
  20  4.80639e-06
  21  2.38046e-07
  22  0.20502
  23  3.35545
  24  1.00364
  25  0.192011
  26  0.0127959
  27  4.22326
  28  0.0900036
  29  0.00230023
  30  0.000219621
  31  2.46367e-05
  32  0.174235
  33  8.83853e-06
  34  0.000125263
  35  5.18777e-08
  36  0.808649
Done.

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

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  1.000e+04  2.050e-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:  4.144e-01  8.086e-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.000e-02  5.188e-08  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 1.92623949147e-06

TS (Fixed Index): 0.13
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/622580/likelihoodResults_602726401_602985601_4FGL_J0958.0+4728_daily_bin1402.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) = 112.341716125
delta logL = 0.0918928498887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 112.340725766
delta logL = 0.0928832088536

Fit tolerance = 1e-08

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

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

 FCN=   112.3407     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       65 TOTAL
                     EDM=   .42E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    alpha       5.0000        4.8807        .46357    ** at limit **
                               ERR DEF=  .500    
Final values: 
  alpha      = 5
 **********
 **   18 **HESSE 
 **********

 FCN=   112.3407     FROM HESSE     STATUS=OK             7 CALLS       72 TOTAL
                     EDM=   .38E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       5.0000        4.8211        .28021E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84713e-18
Minuit parameter uncertainties:
  1  3.31574e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/622580': 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) = 112.340725683
delta logL = 0.0928832915229

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
354        alpha:  5.000e+00  3.316e-08  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:  4.143e-01  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:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 0.13
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/622580/cmap_HighResolution_602726401_602985601_4FGL_J0958.0+4728_daily_bin1402.png

Cleaning up...

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

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:14:12.083791', job_id='622580', GAL2='0.41', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630509252.08', return_code2='0', ts='0.13', comment='SUCCESS', return_code='101', GAL='0.41', dlogl='9.29e-02', ts2='0.32', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1402' AND source_name='4FGL J0958.0+4728' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 08:14:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 622580: <4FGL_J0958.0+4728_daily_bin1402> in cluster <slac> Done

Job <4FGL_J0958.0+4728_daily_bin1402> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 08:05:18 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 08:05:42 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:05:42 2021
Terminated at Wed Sep  1 08:14:12 2021
Results reported at Wed Sep  1 08:14:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.0+4728_daily_bin1402 149.509 47.4675 602726401 602985601 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 :                                   338.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   510 sec.
    Turnaround time :                            534 sec.

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

