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


Performing analysis on: 4FGL_J0958.4+5042_daily_bin1526
RA = 149.606, Dec = 50.7
tmin = 634867201, tmax = 635126401
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='637245', job_status='RUN', time_executed='2021-09-01 08:50:57.310107', time_epoch_executed='1630511457.31' WHERE source_name='4FGL J0958.4+5042' and cadence='daily' and bin_id='1526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/637245

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/637245/ft1_4FGL_J0958.4+5042_daily_bin1526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/637245/ft2_4FGL_J0958.4+5042_daily_bin1526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/637245/ft1_4FGL_J0958.4+5042_daily_bin1526.fits outfile=/scratch/kocevski/637245/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1526.fits ra=149.606 dec=50.7 rad=12.0 tmin=634867201.0 tmax=635126401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.39
user 2.80
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/637245/ft2_4FGL_J0958.4+5042_daily_bin1526.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/637245/ft2_4FGL_J0958.4+5042_daily_bin1526.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/637245/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1526.fits evtable="EVENTS" outfile="/scratch/kocevski/637245/ft1_filtered_4FGL_J0958.4+5042_daily_bin1526.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/637245/ft1_filtered_4FGL_J0958.4+5042_daily_bin1526.fits" evtable="EVENTS" scfile=/scratch/kocevski/637245/ft2_4FGL_J0958.4+5042_daily_bin1526.fits sctable="SC_DATA" outfile=/scratch/kocevski/637245/ltcube_634867201_635126401_4FGL_J0958.4+5042_daily_bin1526.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/637245/ft2_4FGL_J0958.4+5042_daily_bin1526.fits
.....................!
real 13.82
user 13.48
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/637245/ft1_filtered_4FGL_J0958.4+5042_daily_bin1526.fits evtable="EVENTS" scfile=/scratch/kocevski/637245/ft2_4FGL_J0958.4+5042_daily_bin1526.fits sctable="SC_DATA" expcube=/scratch/kocevski/637245/ltcube_634867201_635126401_4FGL_J0958.4+5042_daily_bin1526.fits outfile=/scratch/kocevski/637245/expmap_634867201_635126401_4FGL_J0958.4+5042_daily_bin1526.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/637245/ltcube_634867201_635126401_4FGL_J0958.4+5042_daily_bin1526.fits
.....................!
real 191.90
user 187.44
sys 4.06

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

Setting source of interest to:
4FGL J0958.4+5042 @ 149.606 50.7

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/637245/ft1_filtered_4FGL_J0958.4+5042_daily_bin1526.fits scfile=/scratch/kocevski/637245/ft2_4FGL_J0958.4+5042_daily_bin1526.fits outfile=/scratch/kocevski/637245/cmap_634867201_635126401_4FGL_J0958.4+5042_daily_bin1526.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.606 yref=50.7 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/637245/ft1_filtered_4FGL_J0958.4+5042_daily_bin1526.fits scfile=/scratch/kocevski/637245/ft2_4FGL_J0958.4+5042_daily_bin1526.fits outfile=/scratch/kocevski/637245/cmap_HighResolution_634867201_635126401_4FGL_J0958.4+5042_daily_bin1526.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.606 yref=50.7 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/637245/ft1_filtered_4FGL_J0958.4+5042_daily_bin1526.fits evtable="EVENTS" scfile=/scratch/kocevski/637245/ft2_4FGL_J0958.4+5042_daily_bin1526.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/637245/Model_4FGL_J0958.4+5042_daily_bin1526.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/637245/ft1_filtered_4FGL_J0958.4+5042_daily_bin1526.fits.......................!
real 15.96
user 14.64
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/637245/ft1_filtered_4FGL_J0958.4+5042_daily_bin1526.fits', '/scratch/kocevski/637245/ft2_4FGL_J0958.4+5042_daily_bin1526.fits', expMap='/scratch/kocevski/637245/expmap_634867201_635126401_4FGL_J0958.4+5042_daily_bin1526.fits', expCube='/scratch/kocevski/637245/ltcube_634867201_635126401_4FGL_J0958.4+5042_daily_bin1526.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/637245/Model_4FGL_J0958.4+5042_daily_bin1526.xml', optimizer='MINUIT')

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

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  1.235e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  2.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/637245/ft1_filtered_4FGL_J0958.4+5042_daily_bin1526.fits
Spacecraft file(s): /scratch/kocevski/637245/ft2_4FGL_J0958.4+5042_daily_bin1526.fits
Exposure map: /scratch/kocevski/637245/expmap_634867201_635126401_4FGL_J0958.4+5042_daily_bin1526.fits
Exposure cube: /scratch/kocevski/637245/ltcube_634867201_635126401_4FGL_J0958.4+5042_daily_bin1526.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/637245/Model_4FGL_J0958.4+5042_daily_bin1526.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) = 256.354910922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.485       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.174       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    50.863       1.0000         .10000E-03   10000.    
    15 'norm      '    9997.6       1.0000         .10000E-03   10000.    
    16 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10000.       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9988.9       1.0000         .10000E-03   10000.    
    26 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    28 'norm      '    .46505E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .22692E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .17850E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    37 'Prefactor '    37.600       1.0000         .10000E-03   10000.    
    38 'Prefactor '    .47839E-03   1.0000         .10000E-03   10000.    
    39 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    40 'Prefactor '    .10709E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   255.6615     FROM MIGRAD    STATUS=CONVERGED   1160 CALLS     7353 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0608       -.42233E-08** at limit **
   2  norm          .10000E-03    8.8250       -.16531E-05** at limit **
   3  norm          .10000E-03    7.2104        .29272E-07** at limit **
   4  Prefactor     .10000E-03    9.7412        .42598E-06** at limit **
   5  Prefactor     10.483        13.531        .37612E-06    .45758E-04
   6  Prefactor     23.159        65.698       -.58531E-05   -.30057E-06
   7  Prefactor     .10000E-03    138.83       -.23510E-04** at limit **
   8  norm          .10000E-03    8.1425       -.17265E-06** at limit **
   9  Prefactor     .10000E-03    44.302       -.29396E-04** at limit **
  10  Prefactor     .10000E-03    165.33        .63288E-04** at limit **
  11  Prefactor     .10000E-03    78.349        .32224E-04** at limit **
  12  Prefactor     .10000E-03    55.951       -.12507E-04** at limit **
  13  Prefactor     .10000E-03    486.72        .13003E-03** at limit **
  14  Prefactor     50.866        34.420       -.80046E-06   -.84609E-05
  15  norm         10000.0        5004.6        .30561E-01** at limit **
  16  Prefactor    10000.0        8185.6        .32290E-02** at limit **
  17  Prefactor     .10000E-03    10.790       -.13295E-06** at limit **
  18  Prefactor     .10000E-03    119.34       -.58640E-04** at limit **
  19  norm          .10000E-03    41.259        .26061E-04** at limit **
  20  Prefactor    10000.0        7732.5        .59624E-03** at limit **
  21  Prefactor     .10000E-03    530.63        .62877E-04** at limit **
  22  norm          .10000E-03    8.6590        .17511E-05** at limit **
  23  norm         10000.0        7368.6        .16289E-02** at limit **
  24  Prefactor     10000.        1466.0        .90331E-03** at limit **
  25  Prefactor    10000.0        7634.6        .66625E-01** at limit **
  26  norm          10000.        1571.0        .17995E-03** at limit **
  27  Prefactor     10000.        1826.8        .10840E-02** at limit **
  28  norm          .10000E-03    9974.0       -.12918E-02** at limit **
  29  Prefactor     .10000E-03    78.368        .32066E-04** at limit **
  30  Prefactor     .10000E-03    555.83        .24817E-04** at limit **
  31  norm          .10000E-03    12.553       -.31406E-07** at limit **
  32  norm          .10000E-03    30.090       -.64434E-06** at limit **
  33  Prefactor     .10000E-03    1003.8       -.54816E-03** at limit **
  34  Prefactor     .10000E-03    393.96        .25570E-03** at limit **
  35  norm          .10000E-03    4.5895       -.41298E-08** at limit **
  36  Prefactor     .10000E-03    122.22       -.56209E-04** at limit **
  37  Prefactor     37.610        62.479        .23887E-05   -.14097E-04
  38  Prefactor     .10000E-03    561.48        .46067E-04** at limit **
  39  Normalizat    .10000E-01    .84747E-01    .11093E-06** at limit **
  40  Prefactor     .39191E-11    .18348        .19014E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4828
  Prefactor  = 23.1587
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.8664
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.6101
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 3.91909e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   255.6615     FROM HESSE     STATUS=OK           947 CALLS     8300 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0613        .41537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.8254        .46430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.2130        .41974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.7415        .48790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.483        13.425        .64832E-04   -1.5060    
   6  Prefactor     23.159        64.779        .83208E-04   -1.4745    
   7  Prefactor     .10000E-03    138.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.1449        .44549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.302        .10410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    165.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    78.350        .13852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    55.988        .11692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    486.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     50.866        34.360        .56232E-04   -1.4280    
  15  norm         10000.0        5004.9        .13337E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        8185.6        .18317E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.801        .51308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    119.34        .17109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    41.261        .10047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        7732.4        .20760E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    530.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.6626        .45999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm         10000.0        7368.7        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10000.        1466.0        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor    10000.0        7373.8        .60188E-03    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          10000.        1571.5        .20977E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10000.        1826.8        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    9974.0        .19301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    78.368        .13855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    555.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    12.553        .55386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    30.089        .85754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    1003.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    393.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          .10000E-03    4.5896        .33476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .10000E-03    122.22        .17314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     37.610        62.269        .65361E-04   -1.4481    
  38  Prefactor     .10000E-03    561.54        .21179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Normalizat    .10000E-01    .84956E-01    .14389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  40  Prefactor     .39191E-11    .18682        .41556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9519e-10
Minuit parameter uncertainties:
  1  3.05035e-07
  2  1.74376e-06
  3  1.23202e-07
  4  1.02481e-06
  5  13.4284
  6  64.9763
  7  3.1258e-05
  8  4.33108e-06
  9  5.85234e-06
  10  1.78513e-07
  11  7.30965e-05
  12  0.000197778
  13  0.000115875
  14  34.3736
  15  0.294225
  16  0.000820538
  17  1.31165e-05
  18  1.30211e-05
  19  2.81432e-06
  20  0.00158727
  21  6.95267e-07
  22  2.41144e-06
  23  0.0380074
  24  9.16081e-06
  25  3.78503
  26  3.42563e-05
  27  5.45074e-05
  28  0.00133943
  29  7.39946e-06
  30  1.92516e-05
  31  5.0484e-06
  32  3.82071e-05
  33  0.000168011
  34  1.18212e-05
  35  6.1325e-06
  36  1.10683e-05
  37  62.3768
  38  9.01181e-05
  39  1.02876e-07
  40  1.71666e-06
Done.

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

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  1.000e+04  9.161e-06  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  2.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  3.919e-12  1.717e-06  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  1.000e-02  1.029e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.43
Ra Dec: 149.606 50.700
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 6.33e-05 +/- 5.79e-14
Energy Flux (Fixed Index): 1.57e-02 +/- 1.44e-11

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) = 252.98185013
delta logL = 2.67963920174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 252.981640578
delta logL = 2.67984875377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6414       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .23856E-06   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   252.9816     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      174 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        7438.6        .19555E-02** at limit **
   2  Index         3.6416        .31327        .47327E-06    .12495E-03
   3  Normalizat    .10000E-01    .66527E-01   -.23164E-06** at limit **
   4  Prefactor     .61062E-14    .12538       -.67615E-07** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Index      = 3.64162
  Normalizat = 0.01
  Prefactor  = 6.10623e-15
 **********
 **   18 **HESSE 
 **********

 FCN=   252.9816     FROM HESSE     STATUS=OK            23 CALLS      197 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        7441.3        .18143E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.6416        .31363        .10128E-03   -.27513    
   3  Normalizat    .10000E-01    .66731E-01    .12701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .61062E-14    .12949        .34884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.93655e-11
Minuit parameter uncertainties:
  1  0.0196121
  2  0.313851
  3  9.59296e-09
  4  5.5176e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/637245': 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) = 252.981638669
delta logL = 2.67985066239

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  1.000e+04  1.961e-02  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  3.642e+00  3.139e-01  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  6.106e-15  5.518e-08  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  1.000e-02  9.593e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.79
Ra Dec: 149.606 50.700
Photon Index (Free Index): 3.64 +/- 0.31
Photon Flux (Free Index): 2.21e-04 +/- 9.47e-05
Energy Flux (Free Index): 3.55e-02 +/- 1.27e-02

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/637245/cmap_HighResolution_634867201_635126401_4FGL_J0958.4+5042_daily_bin1526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.33e-05', energy_flux2='3.55e-02', photon_flux_error='5.79e-14', dlogl='2.68e+00', energy_flux='1.57e-02', photon_flux2='2.21e-04', job_status='DONE', time_completed='2021-09-01 08:58:10.204394', photon_index_error2='0.31', photon_index2='3.64', ts='12.43', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', energy_flux_error2='1.27e-02', EG='0.01', time_epoch_completed='1630511890.2', return_code='0', job_id='637245', GAL2='0.00', EG2='0.01', return_code2='0', energy_flux_error='1.44e-11', photon_flux_error2='9.47e-05', ts2='17.79', photon_index='2.66' WHERE bin_id='1526' AND source_name='4FGL J0958.4+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 08:58:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 637245: <4FGL_J0958.4+5042_daily_bin1526> in cluster <slac> Done

Job <4FGL_J0958.4+5042_daily_bin1526> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Sep  1 08:50:28 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 08: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 08:50:29 2021
Terminated at Wed Sep  1 08:58:11 2021
Results reported at Wed Sep  1 08:58:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.4+5042_daily_bin1526 149.606 50.7 634867201 635126401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0958.4+5042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   385.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   461 sec.
    Turnaround time :                            463 sec.

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

