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


Performing analysis on: 4FGL_J0958.0+4728_daily_bin710
RA = 149.509, Dec = 47.4675
tmin = 423360001, tmax = 423619201
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='617910', job_status='RUN', time_executed='2021-09-01 07:50:50.137848', time_epoch_executed='1630507850.14' WHERE source_name='4FGL J0958.0+4728' and cadence='daily' and bin_id='710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/617910

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/617910/ft1_4FGL_J0958.0+4728_daily_bin710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/617910/ft2_4FGL_J0958.0+4728_daily_bin710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/617910/ft1_4FGL_J0958.0+4728_daily_bin710.fits outfile=/scratch/kocevski/617910/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin710.fits ra=149.509 dec=47.4675 rad=12.0 tmin=423360001.0 tmax=423619201.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 5.90
user 5.48
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/617910/ft2_4FGL_J0958.0+4728_daily_bin710.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/617910/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin710.fits evtable="EVENTS" outfile="/scratch/kocevski/617910/ft1_filtered_4FGL_J0958.0+4728_daily_bin710.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/617910/ft1_filtered_4FGL_J0958.0+4728_daily_bin710.fits" evtable="EVENTS" scfile=/scratch/kocevski/617910/ft2_4FGL_J0958.0+4728_daily_bin710.fits sctable="SC_DATA" outfile=/scratch/kocevski/617910/ltcube_423360001_423619201_4FGL_J0958.0+4728_daily_bin710.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/617910/ft2_4FGL_J0958.0+4728_daily_bin710.fits
.....................!
real 12.84
user 12.35
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/617910/ft1_filtered_4FGL_J0958.0+4728_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/617910/ft2_4FGL_J0958.0+4728_daily_bin710.fits sctable="SC_DATA" expcube=/scratch/kocevski/617910/ltcube_423360001_423619201_4FGL_J0958.0+4728_daily_bin710.fits outfile=/scratch/kocevski/617910/expmap_423360001_423619201_4FGL_J0958.0+4728_daily_bin710.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/617910/ltcube_423360001_423619201_4FGL_J0958.0+4728_daily_bin710.fits
.....................!
real 191.92
user 185.43
sys 5.89

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/617910/ft1_filtered_4FGL_J0958.0+4728_daily_bin710.fits scfile=/scratch/kocevski/617910/ft2_4FGL_J0958.0+4728_daily_bin710.fits outfile=/scratch/kocevski/617910/cmap_423360001_423619201_4FGL_J0958.0+4728_daily_bin710.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/617910/ft1_filtered_4FGL_J0958.0+4728_daily_bin710.fits scfile=/scratch/kocevski/617910/ft2_4FGL_J0958.0+4728_daily_bin710.fits outfile=/scratch/kocevski/617910/cmap_HighResolution_423360001_423619201_4FGL_J0958.0+4728_daily_bin710.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/617910/ft1_filtered_4FGL_J0958.0+4728_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/617910/ft2_4FGL_J0958.0+4728_daily_bin710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/617910/Model_4FGL_J0958.0+4728_daily_bin710.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/617910/ft1_filtered_4FGL_J0958.0+4728_daily_bin710.fits.....................!
real 44.12
user 42.67
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7057       1.0000         .10000E-03   10000.    
     2 'norm      '    .18000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5922       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1058       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32402       1.0000         .10000E-03   10000.    
    10 'norm      '    14.226       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2466       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3542       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    54.560       1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.610       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .35492E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.418       1.0000         .10000E-03   10000.    
    21 'norm      '    .79447       1.0000         .10000E-03   10000.    
    22 'norm      '    13.588       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.571       1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.158       1.0000         .10000E-03   10000.    
    25 'norm      '    7.3691       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11355E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    18.193       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.9429       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.6404       1.0000         .10000E-03   10000.    
    30 'norm      '    3.6784       1.0000         .10000E-03   10000.    
    31 'Prefactor '    11.265       1.0000         .10000E-03   10000.    
    32 'Prefactor '    54.848       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .27246E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .82245       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.0759       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=   4643.998     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     4520 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7064        5.5803        .49940E-05    .16770E-02
   2  norm          .10005E-03    14.105       -.53313E-05** at limit **
   3  Prefactor     3.5917        2.9519        .38813E-07    .26600E-05
   4  Prefactor     .10053E-03    13.768        .45071E-05** at limit **
   5  Prefactor     .10050E-03    13.466       -.58353E-06** at limit **
   6  Prefactor     2.1072        4.1217       -.13082E-05   -.42423E-03
   7  Prefactor     .10006E-03    13.143        .55159E-06** at limit **
   8  norm          .10000E-03    .40878       -.15844E-06** at limit **
   9  Prefactor     .32176        4.1526       -.85141E-07    .16087E-04
  10  norm          14.226        1.0259       -.11221E-07   -.31399E-04
  11  Prefactor     4.2450        3.5246        .83831E-06    .67660E-03
  12  Prefactor     6.3525        1.0241       -.91617E-07   -.63252E-04
  13  Prefactor     .10000E-03    1.9183        .28417E-06** at limit **
  14  Prefactor     .10022E-03    10.638        .27470E-05** at limit **
  15  norm          54.562        1.0810        .76224E-07   -.89884E-03
  16  Prefactor     31.608        1.1081       -.13173E-06    .79726E-03
  17  Prefactor     .10018E-03    4.9840       -.39192E-06** at limit **
  18  norm          .10000E-03    4.5915       -.42917E-06** at limit **
  19  Prefactor     .10000E-03    11.562       -.18217E-05** at limit **
  20  Prefactor     27.425        1.9153        .42253E-06   -.23081E-02
  21  norm          .79459        .47877        .29046E-07    .96812E-04
  22  norm          13.588        1.0063        .64762E-07   -.74090E-04
  23  Prefactor     10.570        2.0292        .96857E-06   -.10184E-03
  24  Prefactor     25.158        1.0020       -.23160E-07    .26975E-04
  25  norm          7.3696        3.6912        .28927E-05    .35289E-02
  26  Prefactor     .10007E-03    67.975       -.80708E-05** at limit **
  27  norm          18.193        1.0039       -.17541E-07   -.16103E-04
  28  Prefactor     8.9431        1.0019        .81984E-08   -.54021E-04
  29  Prefactor     7.6407        1.5405       -.53846E-07    .11606E-02
  30  norm          3.6784        1.8518        .67743E-09    .37739E-04
  31  Prefactor     11.262        1.2709       -.35347E-06    .78166E-03
  32  Prefactor     54.842        1.9798       -.36299E-06    .41896E-02
  33  Prefactor     .10022E-03    13.332        .40586E-05** at limit **
  34  Prefactor     .11397E-03    3.6394       -.47762E-05** at limit **
  35  Normalizat    .82256        .22690       -.35054E-06   -.39367E-04
  36  Prefactor     1.0756        .29182       -.23018E-05   -.28039E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.70642
  norm       = 0.000100046
  Prefactor  = 3.5917
  Prefactor  = 0.000100531
  Prefactor  = 0.000100496
  Prefactor  = 2.10722
  Prefactor  = 0.000100061
  norm       = 0.0001
  Prefactor  = 0.321758
  norm       = 14.226
  Prefactor  = 4.24496
  Prefactor  = 6.35253
  Prefactor  = 0.0001
  Prefactor  = 0.000100219
  norm       = 54.5625
  Prefactor  = 31.6084
  Prefactor  = 0.000100183
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 27.4254
  norm       = 0.794593
  norm       = 13.588
  Prefactor  = 10.5701
  Prefactor  = 25.1581
  norm       = 7.3696
  Prefactor  = 0.000100069
  norm       = 18.1928
  Prefactor  = 8.94307
  Prefactor  = 7.64073
  norm       = 3.67844
  Prefactor  = 11.2618
  Prefactor  = 54.8417
  Prefactor  = 0.000100223
  Prefactor  = 0.000113965
  Normalizat = 0.822556
  Prefactor  = 1.07561
 **********
 **   18 **HESSE 
 **********

 FCN=   4643.998     FROM HESSE     STATUS=OK           913 CALLS     5433 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7064        6.2768        .80493E-02   -1.5447    
   2  norm          .10005E-03    6.3725        .59356E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5917        2.9896        .53301E-02   -1.5329    
   4  Prefactor     .10053E-03    43.328        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10050E-03    35.311        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1072        4.2440        .71085E-02   -1.5418    
   7  Prefactor     .10006E-03    14.478        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .31765        .17331E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .32176        2.9588        .31745E-01   -1.5595    
  10  norm          14.226        10.475        .26548E-02   -1.4953    
  11  Prefactor     4.2450        3.6850        .48882E-02   -1.5296    
  12  Prefactor     6.3525        8.3544        .39808E-02   -1.5204    
  13  Prefactor     .10000E-03    1.8765        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10022E-03    18.584        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          54.562        31.719        .13576E-02   -1.4229    
  16  Prefactor     31.608        40.355        .17817E-02   -1.4583    
  17  Prefactor     .10018E-03    3.4242        .67886E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.5885        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.649        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.425        33.410        .19127E-02   -1.4660    
  21  norm          .79459        .48551        .80109E-02   -1.5530    
  22  norm          13.588        13.629        .27165E-02   -1.4971    
  23  Prefactor     10.570        6.6755        .30807E-02   -1.5058    
  24  Prefactor     25.158        39.598        .19966E-02   -1.4704    
  25  norm          7.3696        3.8223        .36937E-02   -1.5165    
  26  Prefactor     .10007E-03    73.955        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          18.193        12.447        .23475E-02   -1.4855    
  28  Prefactor     8.9431        93.408        .33507E-02   -1.5110    
  29  Prefactor     7.6407        5.0331        .36270E-02   -1.5155    
  30  norm          3.6784        1.8514        .52649E-02   -1.5324    
  31  Prefactor     11.262        41.997        .29841E-02   -1.5037    
  32  Prefactor     54.842        74.948        .13540E-02   -1.4226    
  33  Prefactor     .10022E-03    42.590        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .11397E-03    243.91        .10715E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .82256        .20357        .43903E-01   -.99237    
  36  Prefactor     1.0756        .24833        .64792E-01   -.90250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90219e-07
Minuit parameter uncertainties:
  1  6.27924
  2  0.0010797
  3  2.98977
  4  0.00959645
  5  0.00837373
  6  4.24462
  7  0.00187246
  8  1.94904e-06
  9  1.95125
  10  10.4763
  11  3.68519
  12  8.35597
  13  3.0539e-06
  14  0.00403566
  15  31.729
  16  40.3894
  17  0.00158443
  18  1.48212e-05
  19  0.000422786
  20  33.4326
  21  0.485512
  22  13.6318
  23  6.67595
  24  39.6394
  25  3.82246
  26  0.00451127
  27  12.4491
  28  57.921
  29  5.03333
  30  1.85146
  31  42.1075
  32  75.0774
  33  0.00616291
  34  0.117206
  35  0.203762
  36  0.248596
Done.

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

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  1.359e+01  1.363e+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.076e+00  2.486e-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:  8.226e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.56
Ra Dec: 149.509 47.468
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 3.14e-08
Energy Flux (Fixed Index): 9.42e-06 +/- 9.45e-06

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

Saving results to:
/scratch/kocevski/617910/likelihoodResults_423360001_423619201_4FGL_J0958.0+4728_daily_bin710.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) = 4643.98095515
delta logL = 0.0174436748048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4643.97993255
delta logL = 0.0184662770525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.589       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1015       1.0000          .0000       5.0000    
     3 'Normalizat'    .83224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0666       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.

 FCN=   4643.980     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      198 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.675        24.976        .27164E-02   -.43535E-03
   2  alpha         2.1029        1.7903        .41832       -.83058E-04
   3  Normalizat    .83216        .19634        .44030E-01   -.17564E-03
   4  Prefactor     1.0666        .25128        .65024E-01   -.11447E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.6745
  alpha      = 2.10294
  Normalizat = 0.832158
  Prefactor  = 1.06655
 **********
 **   18 **HESSE 
 **********

 FCN=   4643.980     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.675        13.920        .10866E-03   -1.4968    
   2  alpha         2.1029        1.2679        .28997E-01   -.15950    
   3  Normalizat    .83216        .22818        .24931E-03   -.98887    
   4  Prefactor     1.0666        .29188        .28762E-03   -.90543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00782e-09
Minuit parameter uncertainties:
  1  13.9233
  2  1.33159
  3  0.228443
  4  0.292312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/617910': 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) = 4643.97991382
delta logL = 0.0184850093192

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  1.367e+01  1.392e+01  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  2.103e+00  1.332e+00  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.067e+00  2.923e-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:  8.322e-01  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 149.509 47.468
Photon Index (Free Index): 2.10 +/- 1.33
Photon Flux (Free Index): 2.61e-08 +/- 3.69e-08
Energy Flux (Free Index): 9.62e-06 +/- 9.85e-06

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/617910/cmap_HighResolution_423360001_423619201_4FGL_J0958.0+4728_daily_bin710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-05', comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='9.62e-06', photon_flux_error='3.14e-08', dlogl='1.85e-02', energy_flux='9.42e-06', photon_flux2='2.61e-08', job_status='DONE', time_completed='2021-09-01 08:06:42.601778', photon_index_error2='1.33', photon_index2='2.10', ts='1.56', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='9.85e-06', EG='0.82', time_epoch_completed='1630508802.6', return_code='0', job_id='617910', GAL2='1.07', EG2='0.83', return_code2='0', energy_flux_error='9.45e-06', photon_flux_error2='3.69e-08', ts2='1.59', photon_index='2.37' WHERE bin_id='710' AND source_name='4FGL J0958.0+4728' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 08:06:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 617910: <4FGL_J0958.0+4728_daily_bin710> in cluster <slac> Done

Job <4FGL_J0958.0+4728_daily_bin710> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 07:50:24 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:50:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 07:50:29 2021
Terminated at Wed Sep  1 08:06:43 2021
Results reported at Wed Sep  1 08:06:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.0+4728_daily_bin710 149.509 47.4675 423360001 423619201 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 :                                   949.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            979 sec.

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

