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


Performing analysis on: 4FGL_J0958.4+5042_daily_bin1474
RA = 149.606, Dec = 50.7
tmin = 621388801, tmax = 621648001
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='636199', job_status='RUN', time_executed='2021-09-01 08:50:59.667696', time_epoch_executed='1630511459.67' WHERE source_name='4FGL J0958.4+5042' and cadence='daily' and bin_id='1474'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636199

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636199/ft1_4FGL_J0958.4+5042_daily_bin1474.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636199/ft2_4FGL_J0958.4+5042_daily_bin1474.fits


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

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

Done.
real 3.36
user 3.06
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/636199/ft2_4FGL_J0958.4+5042_daily_bin1474.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/636199/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1474.fits evtable="EVENTS" outfile="/scratch/kocevski/636199/ft1_filtered_4FGL_J0958.4+5042_daily_bin1474.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.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636199/ft1_filtered_4FGL_J0958.4+5042_daily_bin1474.fits evtable="EVENTS" scfile=/scratch/kocevski/636199/ft2_4FGL_J0958.4+5042_daily_bin1474.fits sctable="SC_DATA" expcube=/scratch/kocevski/636199/ltcube_621388801_621648001_4FGL_J0958.4+5042_daily_bin1474.fits outfile=/scratch/kocevski/636199/expmap_621388801_621648001_4FGL_J0958.4+5042_daily_bin1474.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/636199/ltcube_621388801_621648001_4FGL_J0958.4+5042_daily_bin1474.fits
.....................!
real 191.45
user 185.68
sys 5.10

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/636199/ft1_filtered_4FGL_J0958.4+5042_daily_bin1474.fits scfile=/scratch/kocevski/636199/ft2_4FGL_J0958.4+5042_daily_bin1474.fits outfile=/scratch/kocevski/636199/cmap_621388801_621648001_4FGL_J0958.4+5042_daily_bin1474.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/636199/ft1_filtered_4FGL_J0958.4+5042_daily_bin1474.fits scfile=/scratch/kocevski/636199/ft2_4FGL_J0958.4+5042_daily_bin1474.fits outfile=/scratch/kocevski/636199/cmap_HighResolution_621388801_621648001_4FGL_J0958.4+5042_daily_bin1474.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.1622       1.0000         .10000E-03   10000.    
     4 'Prefactor '    52.507       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4380       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17144       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .31619E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10893E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .94079       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0098       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7823       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .33607E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.181       1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13949E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.775       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.186       1.0000         .10000E-03   10000.    
    19 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .35617E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.927       1.0000         .10000E-03   10000.    
    22 'norm      '    .36436E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    54.944       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.4699       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .23623E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    13.099       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .15283E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .52974E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .41688E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.2649       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    6.1579       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .16807E-01   1.0000         .10000E-03   10000.    
    34 'Prefactor '    217.66       1.0000         .10000E-03   10000.    
    35 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    .16893E-02   1.0000         .10000E-03   10000.    
    37 'Prefactor '    3.6502       1.0000         .10000E-03   10000.    
    38 'Prefactor '    170.58       1.0000         .10000E-03   10000.    
    39 'Normalizat'    .82124       1.0000         .10000E-01   10.000    
    40 'Prefactor '    .48684       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1716.881     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     4802 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4671       -.10745E-05** at limit **
   2  norm          .10000E-03    5.1640       -.56996E-06** at limit **
   3  norm          9.1718        7.0770        .71424E-06   -.62779E-04
   4  Prefactor     53.262        23.500       -.11070E-05    .70866E-03
   5  Prefactor     1.4424        2.2561        .21603E-06    .59153E-05
   6  Prefactor     .10001E-03    1087.0        .33962E-04** at limit **
   7  Prefactor     .10010E-03    49.707        .38874E-06** at limit **
   8  norm          .10000E-03    5.4219        .10740E-05** at limit **
   9  Prefactor     .95077        5.1810        .94660E-06    .38968E-05
  10  Prefactor     .10000E-03    2.5770        .21721E-06** at limit **
  11  Prefactor     .92022        66.350       -.14954E-04   -.26252E-03
  12  Prefactor     6.8541        8.2579        .12999E-05    .64062E-04
  13  Prefactor     .10000E-03    132.81       -.19559E-04** at limit **
  14  Prefactor     16.165        29.377        .25145E-05   -.54632E-03
  15  norm          .10000E-03    12.194       -.11382E-05** at limit **
  16  Prefactor     .10000E-03    28.322        .13150E-05** at limit **
  17  Prefactor     15.826        16.760        .20013E-05   -.10182E-02
  18  Prefactor     11.047        11.936        .12936E-05    .46889E-03
  19  norm          .10000E-03    9.2500        .45837E-06** at limit **
  20  Prefactor     .10000E-03    32.333        .54435E-05** at limit **
  21  Prefactor     32.948        79.178        .92093E-06    .43446E-04
  22  norm          .10126E-03    11.597        .15895E-05** at limit **
  23  norm          56.164        43.442       -.10143E-06   -.89927E-04
  24  Prefactor     9.3880        14.377        .28040E-06   -.91523E-03
  25  Prefactor     .10000E-03    28.598       -.64522E-05** at limit **
  26  norm          13.169        12.803        .11912E-05   -.39573E-03
  27  Prefactor     .10000E-03    65.838       -.23326E-05** at limit **
  28  norm          .10000E-03    25.317        .22463E-05** at limit **
  29  Prefactor     .10000E-03    22.519        .14090E-05** at limit **
  30  Prefactor     1.2498        19.353        .76036E-05   -.33472E-04
  31  norm          .10000E-03    2.9172        .23704E-06** at limit **
  32  norm          6.1473        4.6477        .10562E-06   -.40833E-04
  33  Prefactor     .10006E-03    104.34       -.84499E-05** at limit **
  34  Prefactor     195.52        209.19       -.97298E-05    .71402E-03
  35  norm          .10000E-03    2.3859       -.30541E-06** at limit **
  36  Prefactor     .10001E-03    72.039        .10469E-04** at limit **
  37  Prefactor     6.2403        55.701       -.34629E-05    .23022E-04
  38  Prefactor     167.93        25.799       -.11718E-05   -.54009E-02
  39  Normalizat    .81954        .34705        .28740E-05    .15822E-04
  40  Prefactor     .48637        .35279        .31810E-05    .93799E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.17177
  Prefactor  = 53.2622
  Prefactor  = 1.44236
  Prefactor  = 0.000100013
  Prefactor  = 0.000100105
  norm       = 0.0001
  Prefactor  = 0.950774
  Prefactor  = 0.0001
  Prefactor  = 0.920218
  Prefactor  = 6.85411
  Prefactor  = 0.000100004
  Prefactor  = 16.1651
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 15.8261
  Prefactor  = 11.0469
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.9475
  norm       = 0.000101257
  norm       = 56.164
  Prefactor  = 9.38804
  Prefactor  = 0.0001
  norm       = 13.1688
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.24979
  norm       = 0.0001
  norm       = 6.14734
  Prefactor  = 0.000100058
  Prefactor  = 195.522
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 6.24033
  Prefactor  = 167.933
  Normalizat = 0.819538
  Prefactor  = 0.486365
 **********
 **   18 **HESSE 
 **********

 FCN=   1716.881     FROM HESSE     STATUS=OK          1083 CALLS     5885 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3676        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.9903        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.1718        7.2382        .33102E-02   -1.5102    
   4  Prefactor     53.262        23.744        .13837E-02   -1.4247    
   5  Prefactor     1.4424        2.2974        .89971E-02   -1.5468    
   6  Prefactor     .10001E-03    41.871        .98465E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10010E-03    52.365        .98853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.9576        .12541E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .95077        10.696        .12955E-01   -1.5513    
  10  Prefactor     .10000E-03    2.5320        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .92022        19.371        .92595E-01   -1.5516    
  12  Prefactor     6.8541        8.4029        .38517E-02   -1.5184    
  13  Prefactor     .10000E-03    132.85        .91898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.165        29.679        .24892E-02   -1.4904    
  15  norm          .10000E-03    12.191        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.324        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.826        16.848        .25210E-02   -1.4912    
  18  Prefactor     11.047        12.035        .29946E-02   -1.5043    
  19  norm          .10000E-03    9.2575        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    32.362        .10658E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.948        79.181        .17199E-02   -1.4559    
  22  norm          .10126E-03    1.3603        .29240E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          56.164        43.457        .13529E-02   -1.4208    
  24  Prefactor     9.3880        14.767        .32557E-02   -1.5095    
  25  Prefactor     .10000E-03    28.617        .10037E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          13.169        12.845        .27668E-02   -1.4982    
  27  Prefactor     .10000E-03    65.618        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    25.353        .95608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    22.280        .97213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.2498        19.279        .99037E-02   -1.5484    
  31  norm          .10000E-03    2.8176        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          6.1473        4.6419        .40445E-02   -1.5212    
  33  Prefactor     .10006E-03    106.30        .91068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     195.52        210.75        .68531E-03   -1.2902    
  35  norm          .10000E-03    2.3917        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .10001E-03    72.290        .10187E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     6.2403        56.195        .52859E-02   -1.5208    
  38  Prefactor     167.93        211.86        .77228E-03   -1.3109    
  39  Normalizat    .81954        .30795        .43887E-01   -.99348    
  40  Prefactor     .48637        .30915        .69628E-01   -1.1261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21855e-07
Minuit parameter uncertainties:
  1  3.85065e-06
  2  1.41181e-06
  3  7.23892
  4  23.7486
  5  2.29754
  6  0.00147619
  7  0.0046871
  8  2.94937e-06
  9  6.37889
  10  3.90612e-07
  11  8.44672
  12  8.40438
  13  0.00152892
  14  29.7062
  15  2.03765e-05
  16  0.00067892
  17  16.8527
  18  12.0372
  19  2.99864e-06
  20  1.79262e-06
  21  79.435
  22  0.00261521
  23  43.4812
  24  14.7725
  25  0.000147272
  26  12.8475
  27  0.000200591
  28  0.000182384
  29  6.79741e-05
  30  9.82071
  31  1.12909e-06
  32  4.64219
  33  0.0049899
  34  211.568
  35  2.91605e-07
  36  0.00142521
  37  37.4993
  38  212.835
  39  0.308608
  40  0.310227
Done.

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

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  9.388e+00  1.477e+01  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:  4.864e-01  3.102e-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:  8.195e-01  3.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/636199/likelihoodResults_621388801_621648001_4FGL_J0958.4+5042_daily_bin1474.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) = 1716.87989739
delta logL = 0.00117919137392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1716.87956663
delta logL = 0.00150995140757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7677       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5795       1.0000          .0000       10.000    
     3 'Normalizat'    .82192       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48428       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=   1716.880     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      261 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7734        16.729        .12822E-03    .21125E-04
   2  Index         2.5795        1.4969        .10204E-01    .40997E-05
   3  Normalizat    .82170        .30527        .21247E-03    .87654E-04
   4  Prefactor     .48465        .34363        .30874E-03   -.33066E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.77339
  Index      = 2.57954
  Normalizat = 0.821698
  Prefactor  = 0.484654
 **********
 **   18 **HESSE 
 **********

 FCN=   1716.880     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7734        16.438        .51287E-05   -1.5083    
   2  Index         2.5795        1.4708        .40817E-03   -.50532    
   3  Normalizat    .82170        .30535        .42495E-04   -.99269    
   4  Prefactor     .48465        .34376        .12350E-04   -1.1269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12338e-10
Minuit parameter uncertainties:
  1  16.4454
  2  1.49999
  3  0.305993
  4  0.345245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636199': 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) = 1716.87956581
delta logL = 0.00151077034138

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  9.773e+00  1.645e+01  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  2.580e+00  1.500e+00  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:  4.847e-01  3.452e-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:  8.217e-01  3.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.74
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/636199/cmap_HighResolution_621388801_621648001_4FGL_J0958.4+5042_daily_bin1474.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-02', job_status='DONE', photon_flux_upper_limit='3.43e-07', time_completed='2021-09-01 09:01:48.161241', job_id='636199', GAL2='0.48', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630512108.16', return_code2='0', ts='0.74', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='1.51e-03', ts2='0.74', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1474' AND source_name='4FGL J0958.4+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 09:01:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 636199: <4FGL_J0958.4+5042_daily_bin1474> in cluster <slac> Done

Job <4FGL_J0958.4+5042_daily_bin1474> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep  1 08:46:32 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 08:46:48 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:48 2021
Terminated at Wed Sep  1 09:01:48 2021
Results reported at Wed Sep  1 09:01:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.4+5042_daily_bin1474 149.606 50.7 621388801 621648001 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 :                                   601.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             215.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            916 sec.

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

