aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
User defined signal 2
Repository/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 57 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 = 7657
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0358.6+0634_daily_bin1670
RA = 59.6656, Dec = 6.5759
tmin = 672192001, tmax = 672451201
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='862734', job_status='RUN', time_executed='2022-04-24 00:15:31.925453', time_epoch_executed='1650784531.93' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='1670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/862734

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/862734/ft1_4FGL_J0358.6+0634_daily_bin1670.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/862734/ft2_4FGL_J0358.6+0634_daily_bin1670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/862734/ft1_4FGL_J0358.6+0634_daily_bin1670.fits outfile=/scratch/kocevski/862734/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin1670.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=672192001.0 tmax=672451201.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 5.34
user 4.83
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/862734/ft2_4FGL_J0358.6+0634_daily_bin1670.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/862734/ft2_4FGL_J0358.6+0634_daily_bin1670.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/862734/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin1670.fits evtable="EVENTS" outfile="/scratch/kocevski/862734/ft1_filtered_4FGL_J0358.6+0634_daily_bin1670.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.56
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 848

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/862734/ft1_filtered_4FGL_J0358.6+0634_daily_bin1670.fits" evtable="EVENTS" scfile=/scratch/kocevski/862734/ft2_4FGL_J0358.6+0634_daily_bin1670.fits sctable="SC_DATA" outfile=/scratch/kocevski/862734/ltcube_672192001_672451201_4FGL_J0358.6+0634_daily_bin1670.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/862734/ft2_4FGL_J0358.6+0634_daily_bin1670.fits
.....................!
real 12.22
user 11.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/862734/ft1_filtered_4FGL_J0358.6+0634_daily_bin1670.fits evtable="EVENTS" scfile=/scratch/kocevski/862734/ft2_4FGL_J0358.6+0634_daily_bin1670.fits sctable="SC_DATA" expcube=/scratch/kocevski/862734/ltcube_672192001_672451201_4FGL_J0358.6+0634_daily_bin1670.fits outfile=/scratch/kocevski/862734/expmap_672192001_672451201_4FGL_J0358.6+0634_daily_bin1670.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/862734/ltcube_672192001_672451201_4FGL_J0358.6+0634_daily_bin1670.fits
.....................!
real 191.53
user 185.08
sys 5.98

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

Setting source of interest to:
4FGL J0358.6+0634 @ 59.6656 6.5759

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/862734/ft1_filtered_4FGL_J0358.6+0634_daily_bin1670.fits scfile=/scratch/kocevski/862734/ft2_4FGL_J0358.6+0634_daily_bin1670.fits outfile=/scratch/kocevski/862734/cmap_672192001_672451201_4FGL_J0358.6+0634_daily_bin1670.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=59.6656 yref=6.5759 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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/862734/ft1_filtered_4FGL_J0358.6+0634_daily_bin1670.fits scfile=/scratch/kocevski/862734/ft2_4FGL_J0358.6+0634_daily_bin1670.fits outfile=/scratch/kocevski/862734/cmap_HighResolution_672192001_672451201_4FGL_J0358.6+0634_daily_bin1670.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=59.6656 yref=6.5759 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/862734/ft1_filtered_4FGL_J0358.6+0634_daily_bin1670.fits evtable="EVENTS" scfile=/scratch/kocevski/862734/ft2_4FGL_J0358.6+0634_daily_bin1670.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/862734/Model_4FGL_J0358.6+0634_daily_bin1670.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/862734/ft1_filtered_4FGL_J0358.6+0634_daily_bin1670.fits.....................!
real 120.27
user 118.66
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/862734/ft1_filtered_4FGL_J0358.6+0634_daily_bin1670.fits', '/scratch/kocevski/862734/ft2_4FGL_J0358.6+0634_daily_bin1670.fits', expMap='/scratch/kocevski/862734/expmap_672192001_672451201_4FGL_J0358.6+0634_daily_bin1670.fits', expCube='/scratch/kocevski/862734/ltcube_672192001_672451201_4FGL_J0358.6+0634_daily_bin1670.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/862734/Model_4FGL_J0358.6+0634_daily_bin1670.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0358.6+0634'

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  8.019e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.567e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  7.663e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/862734/ft1_filtered_4FGL_J0358.6+0634_daily_bin1670.fits
Spacecraft file(s): /scratch/kocevski/862734/ft2_4FGL_J0358.6+0634_daily_bin1670.fits
Exposure map: /scratch/kocevski/862734/expmap_672192001_672451201_4FGL_J0358.6+0634_daily_bin1670.fits
Exposure cube: /scratch/kocevski/862734/ltcube_672192001_672451201_4FGL_J0358.6+0634_daily_bin1670.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/862734/Model_4FGL_J0358.6+0634_daily_bin1670.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) = 9002.98119957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.7867       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .36188E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.101       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3213       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12126E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.739       1.0000         .10000E-03   10000.    
    12 'norm      '    .89285       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9401       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.474       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8548       1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.335       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1477       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97868       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9002.892     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     1790 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7806        .26886E-07** at limit **
   2  Prefactor     .10000E-03    5.3048        .44545E-07** at limit **
   3  norm          .10000E-03    3.3007        .17565E-07** at limit **
   4  norm          2.7867        2.3433        .20024E-06   -.20937E-04
   5  Prefactor     .10000E-03    137.71       -.37594E-05** at limit **
   6  Prefactor     17.104        17.558       -.32616E-06    .62466E-05
   7  norm          .10000E-03    8.2242       -.13457E-07** at limit **
   8  Prefactor     .10000E-03    10.935       -.84643E-07** at limit **
   9  norm          1.3218        4.1956        .91434E-06   -.78554E-04
  10  Prefactor     .10000E-03    62.593        .13788E-05** at limit **
  11  norm          10.720        26.981       -.16345E-06   -.22966E-04
  12  norm          .89230        1.2523        .10101E-05   -.17866E-03
  13  Prefactor     1.9402        1.7753       -.14572E-06   -.10009E-03
  14  Prefactor     15.457        32.225        .45742E-06   -.33695E-04
  15  Prefactor     .10000E-03    41.948       -.62363E-06** at limit **
  16  norm          2.8578        3.8673        .29300E-06   -.19899E-04
  17  Prefactor     70.330        45.257        .23220E-06   -.14334E-04
  18  Prefactor     .10000E-03    2.8664       -.23939E-08** at limit **
  19  Normalizat    1.1477        .26967       -.16038E-05    .34586E-05
  20  Prefactor     .97868        .73449E-01    .28274E-07   -.75660E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.78673
  Prefactor  = 0.000100005
  Prefactor  = 17.1036
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32177
  Prefactor  = 0.000100001
  norm       = 10.7198
  norm       = 0.892299
  Prefactor  = 1.94017
  Prefactor  = 15.4574
  Prefactor  = 0.0001
  norm       = 2.85782
  Prefactor  = 70.3303
  Prefactor  = 0.0001
  Normalizat = 1.14769
  Prefactor  = 0.978682
 **********
 **   18 **HESSE 
 **********

 FCN=   9002.892     FROM HESSE     STATUS=OK           291 CALLS     2081 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7863        .12365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.3132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.3094        .16835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.7867        2.3488        .12426E-03   -1.5374    
   5  Prefactor     .10000E-03    139.77        .19616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.104        17.552        .96851E-04   -1.4881    
   7  norm          .10000E-03    8.2289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3218        4.1131        .32542E-03   -1.5478    
  10  Prefactor     .10000E-03    63.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.720        26.890        .12226E-03   -1.5053    
  12  norm          .89230        1.2457        .25563E-03   -1.5519    
  13  Prefactor     1.9402        1.7588        .11309E-03   -1.5429    
  14  Prefactor     15.457        31.648        .10182E-03   -1.4921    
  15  Prefactor     .10000E-03    42.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8578        3.7849        .17062E-03   -1.5370    
  17  Prefactor     70.330        45.252        .47865E-04   -1.4029    
  18  Prefactor     .10000E-03    2.8785        .15685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1477        .29397        .46691E-03   -.88235    
  20  Prefactor     .97868        .80779E-01    .14531E-03   -.93444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98711e-11
Minuit parameter uncertainties:
  1  8.94373e-07
  2  2.76804e-06
  3  8.03791e-07
  4  2.34891
  5  0.00166612
  6  17.5574
  7  1.79377e-06
  8  5.38611e-07
  9  4.11401
  10  0.00058814
  11  26.9207
  12  1.24578
  13  1.7588
  14  31.682
  15  0.000213406
  16  3.78524
  17  45.2745
  18  4.85275e-08
  19  0.294389
  20  0.080789
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  1.666e-03  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.567e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  7.663e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  9.787e-01  8.079e-02  0.000e+00  1.000e+01 ( 1.000e+00)
461        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
462        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
459   Normalization:  1.148e+00  2.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 59.666 6.576
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/862734/likelihoodResults_672192001_672451201_4FGL_J0358.6+0634_daily_bin1670.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) = 9002.89208226
delta logL = -3.39580965374e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9002.89204838
delta logL = -7.58773239795e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5292       1.0000          .0000       10.000    
     3 'Normalizat'    1.1477       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97868       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4630E+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=   9002.892     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      294 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    265.43        .36285E-03** at limit **
   2  Index         2.6410        6.3203        .50000       -.94233E-05
   3  Normalizat    1.1477        .27121        .46691E-03    .13587E-04
   4  Prefactor     .97868        .79460E-01    .14531E-03   -.48509E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100025
  Index      = 2.64096
  Normalizat = 1.14769
  Prefactor  = 0.978682
 **********
 **   18 **HESSE 
 **********

 FCN=   9002.892     FROM HESSE     STATUS=OK            29 CALLS      323 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    224.72        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6410        6.3133        .50000       -.49134    
   3  Normalizat    1.1477        .27134        .18676E-04   -.88235    
   4  Prefactor     .97868        .79497E-01    .58122E-05   -.93444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69247e-10
Minuit parameter uncertainties:
  1  0.00478091
  2  4.42481
  3  0.271672
  4  0.0795069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/862734': 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) = 9002.89204815
delta logL = 1.53355358634e-07

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  4.781e-03  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.641e+00  4.425e+00  0.000e+00  1.000e+01 (-1.000e+00)
234        Scale:  7.663e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  9.787e-01  7.951e-02  0.000e+00  1.000e+01 ( 1.000e+00)
461        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
462        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
459   Normalization:  1.148e+00  2.717e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 59.666 6.576

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/862734/cmap_HighResolution_672192001_672451201_4FGL_J0358.6+0634_daily_bin1670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.85e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2022-04-24 00:26:57.624466', job_id='862734', GAL2='0.98', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1650785217.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1670' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr 24 00:26:57 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 862734: <4FGL_J0358.6+0634_daily_bin1670> in cluster <slac> Done

Job <4FGL_J0358.6+0634_daily_bin1670> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr 24 00:08:44 2022
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:14:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:14:26 2022
Terminated at Sun Apr 24 00:26:58 2022
Results reported at Sun Apr 24 00:26:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin1670 59.6656 6.5759 672192001 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0358.6+0634 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   687.15 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             344.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            1094 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 862794: <4FGL_J0358.6+0634_daily_bin1670> in cluster <slac> Exited

Job <4FGL_J0358.6+0634_daily_bin1670> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Apr 24 00:08:46 2022
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:14:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:14:51 2022
Terminated at Sun Apr 24 08:41:09 2022
Results reported at Sun Apr 24 08:41:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin1670 59.6656 6.5759 672192001 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0358.6+0634 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

TERM_RUNLIMIT: job killed after reaching LSF run time limit.
Exited with exit code 140.

Resource usage summary:

    CPU time :                                   10.25 sec.
    Max Memory :                                 3 MB
    Average Memory :                             3.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              3
    Max Threads :                                4
    Run time :                                   30377 sec.
    Turnaround time :                            30743 sec.

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

