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


Performing analysis on: 4FGL_J0958.4+5042_daily_bin1283
RA = 149.606, Dec = 50.7
tmin = 571881601, tmax = 572140801
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='635925', job_status='RUN', time_executed='2021-09-01 08:51:30.685026', time_epoch_executed='1630511490.69' WHERE source_name='4FGL J0958.4+5042' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/635925

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/635925/ft1_4FGL_J0958.4+5042_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/635925/ft2_4FGL_J0958.4+5042_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/635925/ft1_4FGL_J0958.4+5042_daily_bin1283.fits outfile=/scratch/kocevski/635925/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1283.fits ra=149.606 dec=50.7 rad=12.0 tmin=571881601.0 tmax=572140801.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 2.60
user 2.39
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/635925/ft1_filtered_4FGL_J0958.4+5042_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/635925/ft2_4FGL_J0958.4+5042_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/635925/ltcube_571881601_572140801_4FGL_J0958.4+5042_daily_bin1283.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/635925/ft2_4FGL_J0958.4+5042_daily_bin1283.fits
.....................!
real 16.17
user 15.79
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/635925/ft1_filtered_4FGL_J0958.4+5042_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/635925/ft2_4FGL_J0958.4+5042_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/635925/ltcube_571881601_572140801_4FGL_J0958.4+5042_daily_bin1283.fits outfile=/scratch/kocevski/635925/expmap_571881601_572140801_4FGL_J0958.4+5042_daily_bin1283.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/635925/ltcube_571881601_572140801_4FGL_J0958.4+5042_daily_bin1283.fits
.....................!
real 192.62
user 186.92
sys 5.19

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/635925/ft1_filtered_4FGL_J0958.4+5042_daily_bin1283.fits scfile=/scratch/kocevski/635925/ft2_4FGL_J0958.4+5042_daily_bin1283.fits outfile=/scratch/kocevski/635925/cmap_571881601_572140801_4FGL_J0958.4+5042_daily_bin1283.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.63
user 0.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/635925/ft1_filtered_4FGL_J0958.4+5042_daily_bin1283.fits scfile=/scratch/kocevski/635925/ft2_4FGL_J0958.4+5042_daily_bin1283.fits outfile=/scratch/kocevski/635925/cmap_HighResolution_571881601_572140801_4FGL_J0958.4+5042_daily_bin1283.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 12.55
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/635925/ft1_filtered_4FGL_J0958.4+5042_daily_bin1283.fits', '/scratch/kocevski/635925/ft2_4FGL_J0958.4+5042_daily_bin1283.fits', expMap='/scratch/kocevski/635925/expmap_571881601_572140801_4FGL_J0958.4+5042_daily_bin1283.fits', expCube='/scratch/kocevski/635925/ltcube_571881601_572140801_4FGL_J0958.4+5042_daily_bin1283.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/635925/Model_4FGL_J0958.4+5042_daily_bin1283.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/635925/ft1_filtered_4FGL_J0958.4+5042_daily_bin1283.fits
Spacecraft file(s): /scratch/kocevski/635925/ft2_4FGL_J0958.4+5042_daily_bin1283.fits
Exposure map: /scratch/kocevski/635925/expmap_571881601_572140801_4FGL_J0958.4+5042_daily_bin1283.fits
Exposure cube: /scratch/kocevski/635925/ltcube_571881601_572140801_4FGL_J0958.4+5042_daily_bin1283.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/635925/Model_4FGL_J0958.4+5042_daily_bin1283.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) = 507.561294742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10827E-03   1.0000         .10000E-03   10000.    
     2 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     3 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25224E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15863E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10000.       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0673       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14055E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11349E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10859E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    76.960       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.335       1.0000         .10000E-03   10000.    
    22 'norm      '    2.3439       1.0000         .10000E-03   10000.    
    23 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .31835E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.5164       1.0000         .10000E-03   10000.    
    27 'Prefactor '    50.462       1.0000         .10000E-03   10000.    
    28 'norm      '    .18526E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .16184E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    5.9819       1.0000         .10000E-03   10000.    
    32 'norm      '    7.5661       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    3.8762       1.0000         .10000E-03   10000.    
    36 'Prefactor '    .14388E-03   1.0000         .10000E-03   10000.    
    37 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
    38 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
    39 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    40 'Prefactor '    1.2277       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   506.9088     FROM MIGRAD    STATUS=CONVERGED   2165 CALLS     8305 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10110E-03    1444.6        .18142E-02** at limit **
   2  norm         10000.0        2066.9        .18229E-02** at limit **
   3  norm         10000.0        1583.5        .18334E-02** at limit **
   4  Prefactor     .10000E-03    350.93        .21461E-02** at limit **
   5  Prefactor    10000.0        1927.0        .20564E-02** at limit **
   6  Prefactor     .10001E-03    640.27        .18142E-02** at limit **
   7  Prefactor     .10148E-03    1939.7        .18142E-02** at limit **
   8  norm         10000.0        1130.9        .18142E-02** at limit **
   9  Prefactor    10000.0        1813.5        .19164E-02** at limit **
  10  Prefactor     1.0677        2298.0        .23571E-02   -.20197E-06
  11  Prefactor     .10000E-03    117.70        .18142E-02** at limit **
  12  Prefactor     .10000E-03    19.760        .98204E-03** at limit **
  13  Prefactor     .10000E-03    158.01        .18142E-02** at limit **
  14  Prefactor     .10000E-03    37.253        .13525E-02** at limit **
  15  norm          .10055E-03    1724.9        .18142E-02** at limit **
  16  Prefactor     .10208E-03    1905.5        .18142E-02** at limit **
  17  Prefactor     .10000E-03    11.258        .73975E-03** at limit **
  18  Prefactor     .10000E-03    31.091        .12349E-02** at limit **
  19  norm          76.980        81.165        .22887E-03   -.12997E-03
  20  Prefactor     .10017E-03    1802.5        .18142E-02** at limit **
  21  Prefactor     22.395        298.83        .84754E-04   -.44326E-04
  22  norm          2.3429        1.9667        .27842E-04   -.77609E-04
  23  norm          .10000E-03    71.092        .18142E-02** at limit **
  24  Prefactor     .10000E-03    15.638        .87286E-03** at limit **
  25  Prefactor     .10000E-03    277.78        .21365E-02** at limit **
  26  norm          7.5182        10.708        .85353E-04    .30969E-03
  27  Prefactor     50.421        130.96        .56454E-04   -.57368E-05
  28  norm          .10000E-03    102.36        .18142E-02** at limit **
  29  Prefactor     .10000E-03    102.13        .18142E-02** at limit **
  30  Prefactor     .10000E-03    27.030        .11502E-02** at limit **
  31  norm          5.9817        5.5299        .48464E-04   -.15136E-04
  32  norm          7.5656        6.7573        .49864E-04    .12511E-03
  33  Prefactor     .10043E-03    793.10        .18142E-02** at limit **
  34  Prefactor     .10000E-03    160.86        .18142E-02** at limit **
  35  norm          3.8757        3.8875        .42936E-04    .77052E-04
  36  Prefactor     .10001E-03    87.361        .18142E-02** at limit **
  37  Prefactor     .10000E-03    40.123        .14053E-02** at limit **
  38  Prefactor     .10002E-03    203.36        .18142E-02** at limit **
  39  Normalizat    .10000E-01    .19300        .60894E-02** at limit **
  40  Prefactor     1.2271        .42516        .24783E-03    .31504E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101097
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100007
  Prefactor  = 0.000101483
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 1.06772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100546
  Prefactor  = 0.000102079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 76.9796
  Prefactor  = 0.00010017
  Prefactor  = 22.3945
  norm       = 2.34288
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.51818
  Prefactor  = 50.4207
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.98166
  norm       = 7.56562
  Prefactor  = 0.000100434
  Prefactor  = 0.0001
  norm       = 3.8757
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 0.000100017
  Normalizat = 0.01
  Prefactor  = 1.22707
 **********
 **   18 **HESSE 
 **********

 FCN=   506.9088     FROM HESSE     STATUS=OK           947 CALLS     9252 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10110E-03    1444.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        2069.0        .72914E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm         10000.0        1579.9        .36667E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    350.93        .42923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        1926.9        .41128E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    640.27        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10148E-03    1939.7        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm         10000.0        1130.2        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        1809.7        .38327E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0677        2298.0        .47141E-03   -1.5501    
  11  Prefactor     .10000E-03    117.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.760        .19641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    158.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.255        .27051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10055E-03    1724.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10208E-03    1905.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.258        .14795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.091        .24698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          76.980        81.169        .45774E-04   -1.3951    
  20  Prefactor     .10017E-03    1802.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.395        298.84        .16951E-04   -1.4761    
  22  norm          2.3429        1.9668        .11137E-05   -1.5402    
  23  norm          .10000E-03    71.092        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.638        .17457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    277.78        .42729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.5182        10.709        .17071E-04   -1.5160    
  27  Prefactor     50.421        130.95        .11291E-04   -1.4287    
  28  norm          .10000E-03    102.36        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    102.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    27.030        .23004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          5.9817        5.5296        .96928E-05   -1.5219    
  32  norm          7.5656        6.7574        .19946E-05   -1.5158    
  33  Prefactor     .10043E-03    793.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    160.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          3.8757        3.8875        .17174E-05   -1.5314    
  36  Prefactor     .10001E-03    87.363        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     .10000E-03    40.123        .28105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Prefactor     .10002E-03    203.36        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Normalizat    .10000E-01    .19300        .12179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  40  Prefactor     1.2271        .42516        .49565E-04   -.85502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81612e-09
Minuit parameter uncertainties:
  1  0.0816611
  2  0.856938
  3  0.130389
  4  0.000479671
  5  0.0412691
  6  0.00433292
  7  0.111095
  8  0.0463332
  9  0.170398
  10  103.32
  11  0.000279169
  12  8.00962e-06
  13  1.25693e-05
  14  0.000381284
  15  0.0632784
  16  0.130266
  17  8.14725e-06
  18  7.4381e-05
  19  81.2866
  20  0.0361719
  21  164.629
  22  1.96681
  23  0.000589164
  24  3.16727e-05
  25  0.000990079
  26  10.7113
  27  131.711
  28  8.01234e-05
  29  0.000130551
  30  8.73227e-06
  31  5.53005
  32  6.75808
  33  0.0376334
  34  0.000157753
  35  3.88779
  36  0.0013748
  37  0.000359805
  38  0.00371428
  39  4.73361e-07
  40  0.426358
Done.

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

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  3.167e-05  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:  1.227e+00  4.264e-01  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  4.734e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 149.606 50.700
Photon Flux Upper Limit: 5.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.59e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/635925/likelihoodResults_571881601_572140801_4FGL_J0958.4+5042_daily_bin1283.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): 102
logL (Free Index) = 506.909123543
delta logL = -0.000295974801872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 506.908832831
delta logL = -5.26295644931e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10526E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6492       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2259       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   506.9088     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      250 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10397E-03    108.37        .88016E-02** at limit **
   2  Index         2.4705        6.0914        .50000        .59367E-05
   3  Normalizat    .10000E-01    .26540E-02    .60894E-02** at limit **
   4  Prefactor     1.2271        .41477E-01    .24782E-03   -.40181E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103968
  Index      = 2.4705
  Normalizat = 0.01
  Prefactor  = 1.22707
 **********
 **   18 **HESSE 
 **********

 FCN=   506.9088     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10397E-03    855.68        .91896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4705        8.2086        .50000       -.53043    
   3  Normalizat    .10000E-01    .23604E-01    .12179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2271        .12370        .49565E-04   -.85502    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.21199e-08
Minuit parameter uncertainties:
  1  0.11827
  2  2399.83
  3  6.5161e-07
  4  0.123729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/635925': 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): 102
logL (Free Index) = 506.908827371
delta logL = 1.96953180875e-07

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  1.040e-04  1.183e-01  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  2.471e+00  2.400e+03  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:  1.227e+00  1.237e-01  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  6.516e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 149.606 50.700

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/635925/cmap_HighResolution_571881601_572140801_4FGL_J0958.4+5042_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-02', job_status='DONE', photon_flux_upper_limit='5.84e-07', time_completed='2021-09-01 08:59:34.672117', job_id='635925', GAL2='1.23', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630511974.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1283' AND source_name='4FGL J0958.4+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 08:59:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 635925: <4FGL_J0958.4+5042_daily_bin1283> in cluster <slac> Done

Job <4FGL_J0958.4+5042_daily_bin1283> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep  1 08:46:13 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 08:46:14 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:46:14 2021
Terminated at Wed Sep  1 08:59:35 2021
Results reported at Wed Sep  1 08:59:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.4+5042_daily_bin1283 149.606 50.7 571881601 572140801 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 :                                   449.25 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             226.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

