/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 52 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 = 7393
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0958.0+4728_daily_bin75
RA = 149.509, Dec = 47.4675
tmin = 258768001, tmax = 259027201
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='613532', job_status='RUN', time_executed='2021-09-01 07:37:52.004097', time_epoch_executed='1630507072.0' WHERE source_name='4FGL J0958.0+4728' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/613532

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/613532/ft1_4FGL_J0958.0+4728_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/613532/ft2_4FGL_J0958.0+4728_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/613532/ft1_4FGL_J0958.0+4728_daily_bin75.fits outfile=/scratch/kocevski/613532/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin75.fits ra=149.509 dec=47.4675 rad=12.0 tmin=258768001.0 tmax=259027201.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 1.13
user 0.94
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/613532/ft2_4FGL_J0958.0+4728_daily_bin75.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/613532/ft1_filteredMKT_4FGL_J0958.0+4728_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/613532/ft1_filtered_4FGL_J0958.0+4728_daily_bin75.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.71
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/613532/ft1_filtered_4FGL_J0958.0+4728_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/613532/ft2_4FGL_J0958.0+4728_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/613532/ltcube_258768001_259027201_4FGL_J0958.0+4728_daily_bin75.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/613532/ft2_4FGL_J0958.0+4728_daily_bin75.fits
.....................!
real 8.89
user 8.52
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/613532/ft1_filtered_4FGL_J0958.0+4728_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/613532/ft2_4FGL_J0958.0+4728_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/613532/ltcube_258768001_259027201_4FGL_J0958.0+4728_daily_bin75.fits outfile=/scratch/kocevski/613532/expmap_258768001_259027201_4FGL_J0958.0+4728_daily_bin75.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/613532/ltcube_258768001_259027201_4FGL_J0958.0+4728_daily_bin75.fits
.....................!
real 190.55
user 186.29
sys 3.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/613532/ft1_filtered_4FGL_J0958.0+4728_daily_bin75.fits scfile=/scratch/kocevski/613532/ft2_4FGL_J0958.0+4728_daily_bin75.fits outfile=/scratch/kocevski/613532/cmap_258768001_259027201_4FGL_J0958.0+4728_daily_bin75.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.59
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/613532/ft1_filtered_4FGL_J0958.0+4728_daily_bin75.fits scfile=/scratch/kocevski/613532/ft2_4FGL_J0958.0+4728_daily_bin75.fits outfile=/scratch/kocevski/613532/cmap_HighResolution_258768001_259027201_4FGL_J0958.0+4728_daily_bin75.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.57
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.633       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22757E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.430       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6712       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.469       1.0000         .10000E-03   10000.    
    10 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6445       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21450E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8873       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    18.079       1.0000         .10000E-03   10000.    
    19 'Prefactor '    64.780       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .46721E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3639       1.0000         .10000E-03   10000.    
    22 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.6925       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.7341       1.0000         .10000E-03   10000.    
    25 'norm      '    5.0296       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .29786E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    38.261       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.8026       1.0000         .10000E-03   10000.    
    30 'norm      '    3.9027       1.0000         .10000E-03   10000.    
    31 'Prefactor '    16.153       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .63589E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.0548       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .80034       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=   3020.105     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     4450 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.636        1.0397        .53058E-07   -.14657E-03
   2  norm          .10002E-03    5.6453       -.25394E-05** at limit **
   3  Prefactor     .44735E-03    38.805       -.38522E-04** at limit **
   4  Prefactor     19.456        4.9619        .11465E-05    .86360E-03
   5  Prefactor     .10058E-03    30.368       -.12481E-04** at limit **
   6  Prefactor     .10000E-03    8.4737        .74694E-05** at limit **
   7  Prefactor     3.6728        1.1399        .21185E-06    .15327E-03
   8  norm          .10000E-03    2.3780        .20107E-06** at limit **
   9  Prefactor     13.470        3.2920       -.32443E-05   -.97897E-02
  10  norm          .10000E-03    4.8290        .31759E-05** at limit **
  11  Prefactor     2.6447        3.2466        .73492E-06    .60046E-03
  12  Prefactor     .10008E-03    36.317        .37690E-04** at limit **
  13  Prefactor     .10000E-03    2.1126        .12063E-06** at limit **
  14  Prefactor     2.9655        17.375       -.10465E-04    .26888E-02
  15  norm          .10000E-03    8.4042       -.78126E-05** at limit **
  16  Prefactor     .10044E-03    15.539       -.23520E-04** at limit **
  17  Prefactor     .10000E-03    5.9711        .29858E-06** at limit **
  18  norm          18.104        2.2884       -.76568E-06   -.17533E-03
  19  Prefactor     64.801        4.8856        .19579E-05   -.30681E-02
  20  Prefactor     .10002E-03    173.59       -.46594E-04** at limit **
  21  norm          1.3637        .77310       -.14101E-07   -.21248E-03
  22  norm          .10055E-03    15.004        .24497E-04** at limit **
  23  Prefactor     7.6971        3.0303       -.49750E-05   -.17411E-02
  24  Prefactor     5.7215        2.5375       -.14406E-05    .11642E-03
  25  norm          5.0286        4.4440        .32574E-07   -.19688E-03
  26  Prefactor     .16267E-03    89.993       -.47482E-04** at limit **
  27  norm          .10000E-03    4.8789       -.17951E-05** at limit **
  28  Prefactor     38.264        1.1978        .45026E-06   -.47161E-03
  29  Prefactor     4.8034        1.2664        .10781E-05    .12573E-02
  30  norm          3.9019        3.2521       -.21358E-06   -.94966E-04
  31  Prefactor     16.127        5.7414       -.41969E-05    .17992E-02
  32  Prefactor     .10021E-03    23.292        .89954E-05** at limit **
  33  Prefactor     .11041E-03    23.589       -.52721E-05** at limit **
  34  Prefactor     .10005E-03    15.745       -.14154E-04** at limit **
  35  Normalizat    1.0546        .29143        .70530E-05    .19002E-03
  36  Prefactor     .80079        .34913       -.49666E-05    .82465E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 32.6358
  norm       = 0.000100024
  Prefactor  = 0.000447347
  Prefactor  = 19.4562
  Prefactor  = 0.000100584
  Prefactor  = 0.000100001
  Prefactor  = 3.67276
  norm       = 0.0001
  Prefactor  = 13.4705
  norm       = 0.000100003
  Prefactor  = 2.64465
  Prefactor  = 0.000100076
  Prefactor  = 0.0001
  Prefactor  = 2.96552
  norm       = 0.0001
  Prefactor  = 0.000100444
  Prefactor  = 0.000100004
  norm       = 18.1039
  Prefactor  = 64.8007
  Prefactor  = 0.000100016
  norm       = 1.36371
  norm       = 0.000100545
  Prefactor  = 7.69708
  Prefactor  = 5.72149
  norm       = 5.02861
  Prefactor  = 0.000162674
  norm       = 0.0001
  Prefactor  = 38.2636
  Prefactor  = 4.80344
  norm       = 3.90187
  Prefactor  = 16.1272
  Prefactor  = 0.000100207
  Prefactor  = 0.000110406
  Prefactor  = 0.000100049
  Normalizat = 1.05456
  Prefactor  = 0.800786
 **********
 **   18 **HESSE 
 **********

 FCN=   3020.105     FROM HESSE     STATUS=OK           909 CALLS     5359 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.636        15.099        .17536E-02   -1.4565    
   2  norm          .10002E-03    6.4782        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44735E-03    2.3755        .70002E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.456        37.801        .22716E-02   -1.4825    
   5  Prefactor     .10058E-03    45.408        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2271        .34918E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6728        37.184        .52702E-02   -1.5325    
   8  norm          .10000E-03    1.1183        .15308E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.470        6.5325        .27285E-02   -1.4974    
  10  norm          .10000E-03    4.8985        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.6447        3.3828        .62677E-02   -1.5383    
  12  Prefactor     .10008E-03    12.887        .10083       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1012        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9655        86.630        .59793E-02   -1.5364    
  15  norm          .10000E-03    8.7536        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10044E-03    19.453        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.1464        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          18.104        15.778        .23549E-02   -1.4857    
  19  Prefactor     64.801        50.145        .12465E-02   -1.4096    
  20  Prefactor     .10002E-03    347.20        .96472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3637        .77424        .79922E-02   -1.5474    
  22  norm          .10055E-03    19.872        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.6971        11.218        .36146E-02   -1.5153    
  24  Prefactor     5.7215        98.145        .41934E-02   -1.5230    
  25  norm          5.0286        4.5073        .44825E-02   -1.5259    
  26  Prefactor     .16267E-03    475.39        .99181E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.8803        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     38.264        37.947        .16199E-02   -1.4470    
  29  Prefactor     4.8034        6.5397        .45895E-02   -1.5270    
  30  norm          3.9019        3.2607        .51058E-02   -1.5313    
  31  Prefactor     16.127        56.292        .24913E-02   -1.4905    
  32  Prefactor     .10021E-03    35.821        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .11041E-03    307.69        .10516E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10005E-03    38.456        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    1.0546        .27303        .40245E-01   -.91224    
  36  Prefactor     .80079        .30436        .73115E-01   -.99699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55064e-07
Minuit parameter uncertainties:
  1  15.1003
  2  0.000781313
  3  0.0574521
  4  37.8479
  5  0.0103109
  6  0.000125651
  7  23.391
  8  1.05026e-05
  9  6.53288
  10  0.000236696
  11  3.38302
  12  0.00198318
  13  1.89079e-05
  14  32.1071
  15  0.00010547
  16  0.00588039
  17  0.000311299
  18  15.7817
  19  50.1774
  20  0.00474764
  21  0.774241
  22  0.00658483
  23  11.2212
  24  47.4847
  25  4.50758
  26  0.34802
  27  4.53891e-05
  28  37.971
  29  6.54068
  30  3.26085
  31  56.4779
  32  0.00544762
  33  0.113754
  34  0.00274949
  35  0.273395
  36  0.305004
Done.

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

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  1.005e-04  6.585e-03  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:  8.008e-01  3.050e-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.055e+00  2.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/613532/likelihoodResults_258768001_259027201_4FGL_J0958.0+4728_daily_bin75.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) = 3020.10478703
delta logL = -0.000238779347001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3020.10455026
delta logL = -2.001600933e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15691E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3282       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80074       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=   3020.105     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      193 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    30.594        .90712E-02** at limit **
   2  alpha         2.3862        3.6324        .41275       -.16572E-04
   3  Normalizat    1.0546        .24125        .40254E-01    .95344E-05
   4  Prefactor     .80079        .29624        .73115E-01    .90999E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  alpha      = 2.3862
  Normalizat = 1.05456
  Prefactor  = 0.800788
 **********
 **   18 **HESSE 
 **********

 FCN=   3020.105     FROM HESSE     STATUS=OK            29 CALLS      222 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    21.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3862        3.5266        .16510       -.45535E-01
   3  Normalizat    1.0546        .28004        .23349E-03   -.91224    
   4  Prefactor     .80079        .34329        .32357E-03   -.99699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55576e-10
Minuit parameter uncertainties:
  1  0.000766336
  2  2.50563
  3  0.280433
  4  0.344212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/613532': 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) = 3020.1045481
delta logL = 1.51230779011e-07

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  1.000e-04  7.663e-04  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  2.386e+00  2.506e+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:  8.008e-01  3.442e-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.055e+00  2.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/613532/cmap_HighResolution_258768001_259027201_4FGL_J0958.0+4728_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.46e-05', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-01 07:49:35.517785', job_id='613532', GAL2='0.80', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630507775.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='75' AND source_name='4FGL J0958.0+4728' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 07:49:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 613532: <4FGL_J0958.0+4728_daily_bin75> in cluster <slac> Done

Job <4FGL_J0958.0+4728_daily_bin75> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep  1 07:36:31 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 07:36:33 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:36:33 2021
Terminated at Wed Sep  1 07:49:36 2021
Results reported at Wed Sep  1 07:49:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.0+4728_daily_bin75 149.509 47.4675 258768001 259027201 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 :                                   696.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             345.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            785 sec.

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

