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


Performing analysis on: 4FGL_J0958.4+5042_daily_bin1514
RA = 149.606, Dec = 50.7
tmin = 631756801, tmax = 632016001
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='637227', job_status='RUN', time_executed='2021-09-01 08:50:57.744003', time_epoch_executed='1630511457.74' WHERE source_name='4FGL J0958.4+5042' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/637227

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/637227/ft1_4FGL_J0958.4+5042_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/637227/ft2_4FGL_J0958.4+5042_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/637227/ft1_4FGL_J0958.4+5042_daily_bin1514.fits outfile=/scratch/kocevski/637227/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1514.fits ra=149.606 dec=50.7 rad=12.0 tmin=631756801.0 tmax=632016001.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.42
user 2.20
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/637227/ft1_filtered_4FGL_J0958.4+5042_daily_bin1514.fits" evtable="EVENTS" scfile=/scratch/kocevski/637227/ft2_4FGL_J0958.4+5042_daily_bin1514.fits sctable="SC_DATA" outfile=/scratch/kocevski/637227/ltcube_631756801_632016001_4FGL_J0958.4+5042_daily_bin1514.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/637227/ft2_4FGL_J0958.4+5042_daily_bin1514.fits
.....................!
real 12.79
user 12.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/637227/ft1_filtered_4FGL_J0958.4+5042_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/637227/ft2_4FGL_J0958.4+5042_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/637227/ltcube_631756801_632016001_4FGL_J0958.4+5042_daily_bin1514.fits outfile=/scratch/kocevski/637227/expmap_631756801_632016001_4FGL_J0958.4+5042_daily_bin1514.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/637227/ltcube_631756801_632016001_4FGL_J0958.4+5042_daily_bin1514.fits
.....................!
real 191.84
user 186.27
sys 4.87

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/637227/ft1_filtered_4FGL_J0958.4+5042_daily_bin1514.fits scfile=/scratch/kocevski/637227/ft2_4FGL_J0958.4+5042_daily_bin1514.fits outfile=/scratch/kocevski/637227/cmap_631756801_632016001_4FGL_J0958.4+5042_daily_bin1514.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.83
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/637227/ft1_filtered_4FGL_J0958.4+5042_daily_bin1514.fits scfile=/scratch/kocevski/637227/ft2_4FGL_J0958.4+5042_daily_bin1514.fits outfile=/scratch/kocevski/637227/cmap_HighResolution_631756801_632016001_4FGL_J0958.4+5042_daily_bin1514.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.71
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.317       1.0000         .10000E-03   10000.    
     2 'norm      '    22.595       1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.315       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    91.917       1.0000         .10000E-03   10000.    
     8 'norm      '    2.7022       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0060       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6864       1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.736       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.730       1.0000         .10000E-03   10000.    
    22 'norm      '    1.9500       1.0000         .10000E-03   10000.    
    23 'norm      '    4.7114       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.7419       1.0000         .10000E-03   10000.    
    27 'Prefactor '    62.553       1.0000         .10000E-03   10000.    
    28 'norm      '    4.6030       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.4355       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    3.3025       1.0000         .10000E-03   10000.    
    32 'norm      '    1.7987       1.0000         .10000E-03   10000.    
    33 'Prefactor '    30.826       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .12029E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    2.9725       1.0000         .10000E-03   10000.    
    36 'Prefactor '    87.452       1.0000         .10000E-03   10000.    
    37 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    38 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    39 'Normalizat'    1.2842       1.0000         .10000E-01   10.000    
    40 'Prefactor '    .71407       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=   3053.853     FROM MIGRAD    STATUS=CONVERGED   1177 CALLS     7290 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.307        37.195        .19429E-06    .26337E-05
   2  norm          22.580        31.955        .10792E-05    .54669E-05
   3  norm          .10000E-03    10.090       -.39687E-07** at limit **
   4  Prefactor     39.306        33.817        .12266E-06    .29996E-05
   5  Prefactor     .10000E-03    10.698       -.17417E-06** at limit **
   6  Prefactor     .10000E-03    62.583       -.68129E-06** at limit **
   7  Prefactor     92.081        240.78       -.99025E-05   -.34266E-05
   8  norm          2.7022        1.3943        .15530E-07    .31384E-04
   9  Prefactor     .10000E-03    4.0377        .99237E-08** at limit **
  10  Prefactor     6.0064        7.6021        .28643E-06    .34139E-04
  11  Prefactor     .10000E-03    10.031        .23718E-07** at limit **
  12  Prefactor     6.6900        10.206        .25753E-06   -.16627E-04
  13  Prefactor     38.757        41.906       -.92243E-06   -.12861E-04
  14  Prefactor     .10000E-03    8.4977        .67764E-06** at limit **
  15  norm          .10000E-03    20.242       -.13910E-06** at limit **
  16  Prefactor     .10000E-03    26.482       -.74778E-06** at limit **
  17  Prefactor     .10000E-03    5.6932       -.10052E-06** at limit **
  18  Prefactor     .10000E-03    12.490        .50788E-06** at limit **
  19  norm          .10000E-03    7.9710       -.54217E-06** at limit **
  20  Prefactor     .10000E-03    37.463        .14378E-05** at limit **
  21  Prefactor     15.723        61.181        .16602E-05   -.14634E-05
  22  norm          1.9502        1.0243       -.41271E-07   -.37423E-04
  23  norm          4.7228        36.747       -.28407E-06   -.24944E-05
  24  Prefactor     .10000E-03    5.9283       -.50947E-07** at limit **
  25  Prefactor     .10000E-03    77.048       -.23533E-05** at limit **
  26  norm          4.7423        3.8511        .88781E-08    .16735E-05
  27  Prefactor     62.550        68.372        .99094E-06   -.81183E-05
  28  norm          4.6034        16.064        .11804E-06    .25210E-05
  29  Prefactor     2.4418        196.85        .67530E-05    .13107E-04
  30  Prefactor     .10000E-03    2.7916       -.70582E-07** at limit **
  31  norm          3.3021        5.7394       -.50368E-06   -.55741E-05
  32  norm          1.7990        1.7107        .97447E-08   -.39526E-04
  33  Prefactor     30.990        134.72       -.16906E-04   -.12723E-04
  34  Prefactor     .10000E-03    108.19        .28562E-05** at limit **
  35  norm          2.9731        2.5687        .22704E-07   -.24343E-04
  36  Prefactor     87.476        96.898        .19183E-06   -.14123E-04
  37  Prefactor     .10000E-03    48.441        .77023E-06** at limit **
  38  Prefactor     .10000E-03    58.510       -.84447E-06** at limit **
  39  Normalizat    1.2832        .31448       -.30731E-05    .70352E-04
  40  Prefactor     .71511        .34127        .67722E-05   -.22956E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.3074
  norm       = 22.5804
  norm       = 0.0001
  Prefactor  = 39.3062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 92.0811
  norm       = 2.70225
  Prefactor  = 0.0001
  Prefactor  = 6.00638
  Prefactor  = 0.0001
  Prefactor  = 6.68999
  Prefactor  = 38.7574
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7233
  norm       = 1.95016
  norm       = 4.72283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.74232
  Prefactor  = 62.5496
  norm       = 4.60336
  Prefactor  = 2.4418
  Prefactor  = 0.0001
  norm       = 3.30207
  norm       = 1.79903
  Prefactor  = 30.9902
  Prefactor  = 0.0001
  norm       = 2.97308
  Prefactor  = 87.4762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.28324
  Prefactor  = 0.715106
 **********
 **   18 **HESSE 
 **********

 FCN=   3053.853     FROM HESSE     STATUS=OK           977 CALLS     8267 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.307        37.197        .50431E-04   -1.4115    
   2  norm          22.580        31.954        .84266E-04   -1.4757    
   3  norm          .10000E-03    10.089        .17142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     39.306        33.820        .63925E-04   -1.4453    
   5  Prefactor     .10000E-03    10.877        .17615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    62.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     92.081        240.71        .20958E-03   -1.3786    
   8  norm          2.7022        1.3942        .44967E-04   -1.5379    
   9  Prefactor     .10000E-03    4.0474        .10836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.0064        7.5941        .81920E-03   -1.5218    
  11  Prefactor     .10000E-03    10.032        .17092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6900        10.169        .15518E-03   -1.5191    
  13  Prefactor     38.757        41.870        .64399E-04   -1.4462    
  14  Prefactor     .10000E-03    8.5005        .15728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    20.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.7079        .12878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.9841        .15245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    37.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.723        61.236        .10098E-03   -1.4915    
  22  norm          1.9502        1.0206        .37475E-04   -1.5429    
  23  norm          4.7228        36.715        .18539E-03   -1.5273    
  24  Prefactor     .10000E-03    5.9615        .13136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    77.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.7423        3.8517        .94514E-04   -1.5272    
  27  Prefactor     62.550        68.684        .50736E-04   -1.4125    
  28  norm          4.6034        16.074        .18761E-03   -1.5279    
  29  Prefactor     2.4418        219.24        .13110E-02   -1.5395    
  30  Prefactor     .10000E-03    2.7971        .90167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          3.3021        6.0500        .88022E-04   -1.5345    
  32  norm          1.7990        1.7177        .68092E-04   -1.5440    
  33  Prefactor     30.990        138.47        .36083E-03   -1.4594    
  34  Prefactor     .10000E-03    108.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          2.9731        2.5671        .79398E-04   -1.5363    
  36  Prefactor     87.476        98.081        .42962E-04   -1.3835    
  37  Prefactor     .10000E-03    48.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Prefactor     .10000E-03    58.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Normalizat    1.2832        .35771        .24527E-03   -.84068    
  40  Prefactor     .71511        .37613        .37783E-03   -1.0294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62299e-10
Minuit parameter uncertainties:
  1  37.2102
  2  31.9782
  3  4.90727e-06
  4  33.8367
  5  2.06829e-05
  6  0.000147876
  7  243.329
  8  1.3942
  9  1.3488e-06
  10  7.59534
  11  8.87514e-06
  12  10.1712
  13  41.902
  14  3.28905e-06
  15  1.10077e-05
  16  1.63319e-05
  17  1.08507e-05
  18  2.07662e-06
  19  1.4567e-05
  20  9.44984e-06
  21  61.482
  22  1.02062
  23  26.3583
  24  9.07685e-07
  25  9.63934e-05
  26  3.85187
  27  68.7709
  28  16.0888
  29  46.45
  30  1.96211e-06
  31  6.05113
  32  1.71779
  33  131.526
  34  7.21466e-05
  35  2.56715
  36  98.2633
  37  2.38757e-06
  38  3.47741e-06
  39  0.3584
  40  0.377482
Done.

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

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  9.077e-07  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:  7.151e-01  3.775e-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.283e+00  3.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/637227/likelihoodResults_631756801_632016001_4FGL_J0958.4+5042_daily_bin1514.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) = 3053.85348566
delta logL = -0.000793871687165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3053.85269176
delta logL = 3.29250724462e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6468       1.0000          .0000       10.000    
     3 'Normalizat'    1.2832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71513       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=   3053.853     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      262 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.031        .13282E-01** at limit **
   2  Index         2.0196        8.2074        .50000       -.98078E-07
   3  Normalizat    1.2832        .19580E-01    .24528E-03   -.22822E-03
   4  Prefactor     .71511        .23280E-01    .37782E-03   -.14330E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01962
  Normalizat = 1.28324
  Prefactor  = 0.715108
 **********
 **   18 **HESSE 
 **********

 FCN=   3053.853     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    543.46        .14935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0196        8.0171        .50000       -.63860    
   3  Normalizat    1.2832        .62382E-01    .49055E-04   -.84068    
   4  Prefactor     .71511        .74165E-01    .15113E-04   -1.0294    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.79798e-10
Minuit parameter uncertainties:
  1  9.1249e-05
  2  1003.79
  3  0.0623861
  4  0.0741753
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/637227': 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) = 3053.85268986
delta logL = 1.9301305656e-06

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  9.125e-05  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  2.020e+00  1.004e+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:  7.151e-01  7.418e-02  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.283e+00  6.239e-02  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/637227/cmap_HighResolution_631756801_632016001_4FGL_J0958.4+5042_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-01 09:06:39.144638', job_id='637227', GAL2='0.72', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1630512399.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.93e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1514' AND source_name='4FGL J0958.4+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 09:06:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 637227: <4FGL_J0958.4+5042_daily_bin1514> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.4+5042_daily_bin1514 149.606 50.7 631756801 632016001 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 :                                   897.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

