aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 168 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7294
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0958.4+5042_daily_bin1760
RA = 149.606, Dec = 50.7
tmin = 695520001, tmax = 695779201
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='733557', job_status='RUN', time_executed='2023-01-19 00:45:42.225399', time_epoch_executed='1674117942.23' WHERE source_name='4FGL J0958.4+5042' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733557

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733557/ft1_4FGL_J0958.4+5042_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733557/ft2_4FGL_J0958.4+5042_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733557/ft1_4FGL_J0958.4+5042_daily_bin1760.fits outfile=/scratch/kocevski/733557/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1760.fits ra=149.606 dec=50.7 rad=12.0 tmin=695520001.0 tmax=695779201.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.44
user 2.22
sys 0.20

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

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

Number of photons that the gtmktime cut: 195

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733557/ft1_filtered_4FGL_J0958.4+5042_daily_bin1760.fits" evtable="EVENTS" scfile=/scratch/kocevski/733557/ft2_4FGL_J0958.4+5042_daily_bin1760.fits sctable="SC_DATA" outfile=/scratch/kocevski/733557/ltcube_695520001_695779201_4FGL_J0958.4+5042_daily_bin1760.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/733557/ft2_4FGL_J0958.4+5042_daily_bin1760.fits
.....................!
real 16.48
user 15.89
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733557/ft1_filtered_4FGL_J0958.4+5042_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/733557/ft2_4FGL_J0958.4+5042_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/733557/ltcube_695520001_695779201_4FGL_J0958.4+5042_daily_bin1760.fits outfile=/scratch/kocevski/733557/expmap_695520001_695779201_4FGL_J0958.4+5042_daily_bin1760.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/733557/ltcube_695520001_695779201_4FGL_J0958.4+5042_daily_bin1760.fits
.....................!
real 193.43
user 188.00
sys 4.66

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/733557/ft1_filtered_4FGL_J0958.4+5042_daily_bin1760.fits scfile=/scratch/kocevski/733557/ft2_4FGL_J0958.4+5042_daily_bin1760.fits outfile=/scratch/kocevski/733557/cmap_695520001_695779201_4FGL_J0958.4+5042_daily_bin1760.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733557/ft1_filtered_4FGL_J0958.4+5042_daily_bin1760.fits scfile=/scratch/kocevski/733557/ft2_4FGL_J0958.4+5042_daily_bin1760.fits outfile=/scratch/kocevski/733557/cmap_HighResolution_695520001_695779201_4FGL_J0958.4+5042_daily_bin1760.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.58
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/733557/ft1_filtered_4FGL_J0958.4+5042_daily_bin1760.fits', '/scratch/kocevski/733557/ft2_4FGL_J0958.4+5042_daily_bin1760.fits', expMap='/scratch/kocevski/733557/expmap_695520001_695779201_4FGL_J0958.4+5042_daily_bin1760.fits', expCube='/scratch/kocevski/733557/ltcube_695520001_695779201_4FGL_J0958.4+5042_daily_bin1760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/733557/Model_4FGL_J0958.4+5042_daily_bin1760.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  0.000e+00  1.000e+06 ( 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/733557/ft1_filtered_4FGL_J0958.4+5042_daily_bin1760.fits
Spacecraft file(s): /scratch/kocevski/733557/ft2_4FGL_J0958.4+5042_daily_bin1760.fits
Exposure map: /scratch/kocevski/733557/expmap_695520001_695779201_4FGL_J0958.4+5042_daily_bin1760.fits
Exposure cube: /scratch/kocevski/733557/ltcube_695520001_695779201_4FGL_J0958.4+5042_daily_bin1760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/733557/Model_4FGL_J0958.4+5042_daily_bin1760.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) = 2251.34525563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72907E-04   1.0000          .0000       .10000E+07
     2 'norm      '    57.634       1.0000          .0000       .10000E+07
     3 'norm      '    7.5572       1.0000          .0000       .10000E+07
     4 'Prefactor '    .64870E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .12673E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .14433E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .11638E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .40784E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    25.560       1.0000          .0000       .10000E+07
    10 'Prefactor '    8.5496       1.0000          .0000       .10000E+07
    11 'Prefactor '    48.381       1.0000          .0000       .10000E+07
    12 'norm      '    .87541E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .99240E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .61307E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    40.797       1.0000          .0000       .10000E+07
    16 'norm      '    .11213E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .93075E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    75.265       1.0000          .0000       .10000E+07
    19 'norm      '    1.5942       1.0000          .0000       .10000E+07
    20 'norm      '    .28060E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .63388E-04   1.0000          .0000       .10000E+07
    22 'norm      '    8.2850       1.0000          .0000       .10000E+07
    23 'Prefactor '    63.675       1.0000          .0000       .10000E+07
    24 'norm      '    7.5261       1.0000          .0000       .10000E+07
    25 'Prefactor '    .18714E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    4.4048       1.0000          .0000       .10000E+07
    27 'norm      '    1.4094       1.0000          .0000       .10000E+07
    28 'norm      '    .19503       1.0000          .0000       .10000E+07
    29 'Prefactor '    .16428E-02   1.0000          .0000       .10000E+07
    30 'norm      '    .14833E-06   1.0000          .0000       .10000E+07
    31 'Prefactor '    .10335E-01   1.0000          .0000       .10000E+07
    32 'Prefactor '    .24050E-04   1.0000          .0000       .10000E+07
    33 'Prefactor '    159.52       1.0000          .0000       .10000E+07
    34 'Normalizat'    1.3269       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .77792       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=   2251.328     FROM MIGRAD    STATUS=CONVERGED    316 CALLS     4898 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        16.523       -.14556E-06** at limit **
   2  norm          59.179        34.742        .79919E-05    .19149E-01
   3  norm          7.0840        12.753       -.11362E-04   -.11913E-01
   4  Prefactor     .55511E-10    16.488        .39770E-06** at limit **
   5  Prefactor     .72164E-08    34.468        .18077E-05** at limit **
   6  norm           .0000        .71918        .15396E-07** at limit **
   7  Prefactor      .0000        8.2289        .42644E-07** at limit **
   8  Prefactor     .29419E-05    63.010       -.21540E-04** at limit **
   9  Prefactor     25.628        25.966        .36051E-05    .92822E-02
  10  Prefactor     8.4284        15.189        .42376E-05    .57044E-02
  11  Prefactor     48.035        5.6727       -.16467E-05   -.22272E-01
  12  norm          .34284E-04    34.989        .12996E-04** at limit **
  13  Prefactor     .38727E-04    37.281        .13128E-04** at limit **
  14  Prefactor     .55511E-10    16.263        .11315E-06** at limit **
  15  Prefactor     41.146        30.767       -.92278E-05   -.28391E-01
  16  norm           .0000        9.6254        .40748E-07** at limit **
  17  Prefactor     .85746E-04    85.832       -.27081E-04** at limit **
  18  Prefactor     74.466        74.934        .19351E-04   -.11542    
  19  norm          1.5904        1.0288       -.14306E-06    .34263E-02
  20  norm           .0000        15.057        .86664E-07** at limit **
  21  Prefactor     .55511E-10    8.2351        .50254E-07** at limit **
  22  norm          8.2738        6.0428        .19413E-06    .14249E-02
  23  Prefactor     66.161        73.654       -.54226E-06   -.76103E-01
  24  norm          7.4583        22.842        .53631E-08   -.73043E-03
  25  Prefactor     .17754E-05    63.563        .16229E-04** at limit **
  26  Prefactor     4.4709        10.412       -.17708E-07    .14050E-03
  27  norm          1.4070        3.1936       -.25717E-06   -.35977E-03
  28  norm          .19063        4.8514       -.14235E-06** at limit **
  29  Prefactor     .84341E-04    118.75        .40587E-05** at limit **
  30  norm           .0000        .96238        .38828E-07** at limit **
  31  Prefactor     .16084E-04    34.758        .31024E-05** at limit **
  32  Prefactor     .14988E-08    38.981       -.12116E-05** at limit **
  33  Prefactor     153.71        302.57       -.26888E-04    .19992E-01
  34  Normalizat    1.3256        .40227       -.36087E-06    .17639E-03
  35  Prefactor     .77863        .44319        .11115E-04    .98687E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 59.1791
  norm       = 7.084
  Prefactor  = 5.55112e-11
  Prefactor  = 7.21645e-09
  norm       = 0
  Prefactor  = 0
  Prefactor  = 2.94192e-06
  Prefactor  = 25.6285
  Prefactor  = 8.42841
  Prefactor  = 48.0346
  norm       = 3.4284e-05
  Prefactor  = 3.87269e-05
  Prefactor  = 5.55112e-11
  Prefactor  = 41.1458
  norm       = 0
  Prefactor  = 8.57456e-05
  Prefactor  = 74.4663
  norm       = 1.59038
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 8.27383
  Prefactor  = 66.1611
  norm       = 7.45833
  Prefactor  = 1.77541e-06
  Prefactor  = 4.47094
  norm       = 1.40704
  norm       = 0.190628
  Prefactor  = 8.43415e-05
  norm       = 0
  Prefactor  = 1.6084e-05
  Prefactor  = 1.4988e-09
  Prefactor  = 153.705
  Normalizat = 1.32558
  Prefactor  = 0.778629
 **********
 **   18 **HESSE 
 **********

 FCN=   2251.328     FROM HESSE     STATUS=OK           836 CALLS     5734 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        16.535        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          59.179        65.087        .13173E-03   -1.5554    
   3  norm          7.0840        44.755        .36457E-03   -1.5655    
   4  Prefactor     .55511E-10    16.503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .72164E-08    34.515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .72304        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        8.2193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .29419E-05    62.898        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.628        26.472        .19784E-03   -1.5607    
  10  Prefactor     8.4284        15.306        .34259E-03   -1.5650    
  11  Prefactor     48.035        49.649        .14378E-03   -1.5569    
  12  norm          .34284E-04    133.13        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .38727E-04    131.05        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    16.233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.146        31.714        .15658E-03   -1.5580    
  16  norm           .0000        9.6475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .85746E-04    116.14        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     74.466        91.802        .11527E-03   -1.5535    
  19  norm          1.5904        1.0403        .83728E-03   -1.5683    
  20  norm           .0000        15.051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .55511E-10    8.2272        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.2738        6.0391        .34806E-03   -1.5650    
  23  Prefactor     66.161        79.452        .12533E-03   -1.5545    
  24  norm          7.4583        22.894        .36533E-03   -1.5653    
  25  Prefactor     .17754E-05    63.904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.4709        10.475        .47961E-03   -1.5666    
  27  norm          1.4070        3.2419        .91236E-03   -1.5684    
  28  norm          .19063        2.6237        .26681E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .84341E-04    158.42        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm           .0000        .96601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .16084E-04    125.14        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .14988E-08    38.916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     153.71        306.25        .79182E-04   -1.5460    
  34  Normalizat    1.3256        .34296        .56908E-01   -.82806    
  35  Prefactor     .77863        .38292        .84380E-01   -1.0052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08893e-06
Minuit parameter uncertainties:
  1  2.05441e-06
  2  65.0873
  3  35.6118
  4  4.47072e-05
  5  0.00099962
  6  7.31818e-07
  7  2.46344e-05
  8  0.0272062
  9  26.4717
  10  15.3056
  11  49.6499
  12  0.135122
  13  0.142485
  14  4.71951e-05
  15  31.7137
  16  2.01888e-05
  17  0.199591
  18  91.8042
  19  1.04031
  20  4.06367e-06
  21  3.21791e-05
  22  6.03906
  23  79.4534
  24  22.8938
  25  0.0213036
  26  10.4746
  27  3.24191
  28  1.41443
  29  0.231188
  30  6.8544e-06
  31  0.0897287
  32  0.000486133
  33  306.283
  34  0.343547
  35  0.384231
Done.

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

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  5.551e-11  3.218e-05  0.000e+00  1.000e+06 ( 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.786e-01  3.842e-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.326e+00  3.435e-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.95e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.53e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733557/likelihoodResults_695520001_695779201_4FGL_J0958.4+5042_daily_bin1760.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) = 2251.32835242
delta logL = -0.000331002564963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2250.89662234
delta logL = 0.431399073765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25231E-03   1.0000          .0000       .10000E+07
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    1.2423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84722       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.

 FCN=   2250.897     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      456 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25222E-03    .34118E-03    .23352E-04** at limit **
   2  Index        10.0000        1.9029        .50000    ** at limit **
   3  Normalizat    1.2419        .32991        .58280E-01   -.23170E-04
   4  Prefactor     .84747        .38085        .81277E-01   -.36252E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000252223
  Index      = 10
  Normalizat = 1.24192
  Prefactor  = 0.847467
 **********
 **   18 **HESSE 
 **********

 FCN=   2250.897     FROM HESSE     STATUS=OK            37 CALLS      493 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25222E-03    .37136E-03    .95709E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.3763        .39973        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2419        .38719        .25773E-03   -.85317    
   4  Prefactor     .84747        .44967        .35983E-03   -.98002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52065e-10
Minuit parameter uncertainties:
  1  0.000371363
  2  0.00030824
  3  0.388095
  4  0.451643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733557': 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) = 2250.8966209
delta logL = 0.431400518132

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  2.522e-04  3.714e-04  0.000e+00  1.000e+06 ( 1.000e-12)
370        Index:  1.000e+01  3.082e-04  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:  8.475e-01  4.516e-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.242e+00  3.881e-01  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/733557/cmap_HighResolution_695520001_695779201_4FGL_J0958.4+5042_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e-02', job_status='DONE', photon_flux_upper_limit='1.95e-07', time_completed='2023-01-19 00:56:06.489531', job_id='733557', GAL2='0.85', fit_tolerance='1e-08', EG2='1.24', EG='1.33', time_epoch_completed='1674118566.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='4.31e-01', ts2='0.90', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1760' AND source_name='4FGL J0958.4+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 00:56:06 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 733557: <4FGL_J0958.4+5042_daily_bin1760> in cluster <slac> Done

Job <4FGL_J0958.4+5042_daily_bin1760> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Jan 19 00:40:25 2023
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 00:42:44 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 00:42:44 2023
Terminated at Thu Jan 19 00:56:06 2023
Results reported at Thu Jan 19 00:56:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.4+5042_daily_bin1760 149.606 50.7 695520001 695779201 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 :                                   626.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            941 sec.

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

