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


Performing analysis on: 4FGL_J0043.8+3425_daily_bin1672
RA = 10.9717, Dec = 34.4316
tmin = 672710401, tmax = 672969601
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='153785', job_status='RUN', time_executed='2022-04-30 00:09:21.057776', time_epoch_executed='1651302561.06' WHERE source_name='4FGL J0043.8+3425' and cadence='daily' and bin_id='1672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153785

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153785/ft1_4FGL_J0043.8+3425_daily_bin1672.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153785/ft2_4FGL_J0043.8+3425_daily_bin1672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153785/ft1_4FGL_J0043.8+3425_daily_bin1672.fits outfile=/scratch/kocevski/153785/ft1_filteredMKT_4FGL_J0043.8+3425_daily_bin1672.fits ra=10.9717 dec=34.4316 rad=12.0 tmin=672710401.0 tmax=672969601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.12
user 2.91
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/153785/ft2_4FGL_J0043.8+3425_daily_bin1672.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153785/ft2_4FGL_J0043.8+3425_daily_bin1672.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/153785/ft1_filteredMKT_4FGL_J0043.8+3425_daily_bin1672.fits evtable="EVENTS" outfile="/scratch/kocevski/153785/ft1_filtered_4FGL_J0043.8+3425_daily_bin1672.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 426

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153785/ft1_filtered_4FGL_J0043.8+3425_daily_bin1672.fits" evtable="EVENTS" scfile=/scratch/kocevski/153785/ft2_4FGL_J0043.8+3425_daily_bin1672.fits sctable="SC_DATA" outfile=/scratch/kocevski/153785/ltcube_672710401_672969601_4FGL_J0043.8+3425_daily_bin1672.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/153785/ft2_4FGL_J0043.8+3425_daily_bin1672.fits
.....................!
real 14.65
user 14.25
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153785/ft1_filtered_4FGL_J0043.8+3425_daily_bin1672.fits evtable="EVENTS" scfile=/scratch/kocevski/153785/ft2_4FGL_J0043.8+3425_daily_bin1672.fits sctable="SC_DATA" expcube=/scratch/kocevski/153785/ltcube_672710401_672969601_4FGL_J0043.8+3425_daily_bin1672.fits outfile=/scratch/kocevski/153785/expmap_672710401_672969601_4FGL_J0043.8+3425_daily_bin1672.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/153785/ltcube_672710401_672969601_4FGL_J0043.8+3425_daily_bin1672.fits
.....................!
real 193.60
user 188.31
sys 4.93

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

Setting source of interest to:
4FGL J0043.8+3425 @ 10.9717 34.4316

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/153785/ft1_filtered_4FGL_J0043.8+3425_daily_bin1672.fits scfile=/scratch/kocevski/153785/ft2_4FGL_J0043.8+3425_daily_bin1672.fits outfile=/scratch/kocevski/153785/cmap_672710401_672969601_4FGL_J0043.8+3425_daily_bin1672.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=10.9717 yref=34.4316 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153785/ft1_filtered_4FGL_J0043.8+3425_daily_bin1672.fits scfile=/scratch/kocevski/153785/ft2_4FGL_J0043.8+3425_daily_bin1672.fits outfile=/scratch/kocevski/153785/cmap_HighResolution_672710401_672969601_4FGL_J0043.8+3425_daily_bin1672.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=10.9717 yref=34.4316 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/153785/ft1_filtered_4FGL_J0043.8+3425_daily_bin1672.fits evtable="EVENTS" scfile=/scratch/kocevski/153785/ft2_4FGL_J0043.8+3425_daily_bin1672.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/153785/Model_4FGL_J0043.8+3425_daily_bin1672.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/153785/ft1_filtered_4FGL_J0043.8+3425_daily_bin1672.fits.....................!
real 54.77
user 53.39
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/153785/ft1_filtered_4FGL_J0043.8+3425_daily_bin1672.fits', '/scratch/kocevski/153785/ft2_4FGL_J0043.8+3425_daily_bin1672.fits', expMap='/scratch/kocevski/153785/expmap_672710401_672969601_4FGL_J0043.8+3425_daily_bin1672.fits', expCube='/scratch/kocevski/153785/ltcube_672710401_672969601_4FGL_J0043.8+3425_daily_bin1672.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/153785/Model_4FGL_J0043.8+3425_daily_bin1672.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0043.8+3425'

4FGL J0043.8+3425
   Spectrum: LogParabola
148         norm:  1.786e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
149        alpha:  1.864e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
150         beta:  5.166e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
151           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/153785/ft1_filtered_4FGL_J0043.8+3425_daily_bin1672.fits
Spacecraft file(s): /scratch/kocevski/153785/ft2_4FGL_J0043.8+3425_daily_bin1672.fits
Exposure map: /scratch/kocevski/153785/expmap_672710401_672969601_4FGL_J0043.8+3425_daily_bin1672.fits
Exposure cube: /scratch/kocevski/153785/ltcube_672710401_672969601_4FGL_J0043.8+3425_daily_bin1672.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/153785/Model_4FGL_J0043.8+3425_daily_bin1672.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) = 4740.78930023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6535       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1110       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27637E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.3259       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1433       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.234       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    60.660       1.0000         .10000E-03   10000.    
    16 'norm      '    .62826E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    104.81       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7961       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2183       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.279       1.0000         .10000E-03   10000.    
    22 'Prefactor '    41.769       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .27629E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1166       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81974       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4740.772     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2897 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.505       -.15540E-05** at limit **
   2  Prefactor     7.6424        6.4798        .71392E-06   -.73168E-04
   3  Prefactor     3.1156        8.5746        .48982E-06   -.49264E-04
   4  Prefactor     .10000E-03    1.7813       -.51564E-07** at limit **
   5  Prefactor     .10000E-03    18.548       -.61767E-06** at limit **
   6  Prefactor     .10000E-03    7.4194       -.21283E-06** at limit **
   7  Prefactor     .10000E-03    25.802        .60959E-06** at limit **
   8  norm          7.3264        3.7356        .69807E-07   -.60149E-04
   9  Prefactor     .10000E-03    7.9049        .94531E-07** at limit **
  10  Prefactor     .10000E-03    2.4443        .18859E-07** at limit **
  11  Prefactor     7.1394        17.993       -.16409E-07    .62961E-04
  12  Prefactor     19.246        17.660        .58687E-06    .33355E-04
  13  Prefactor     .10000E-03    16.805        .85100E-06** at limit **
  14  Prefactor     .10000E-03    31.135        .69039E-06** at limit **
  15  Prefactor     60.648        108.77       -.29215E-05   -.14482E-04
  16  norm          .10002E-03    1.4428       -.80416E-06** at limit **
  17  Prefactor     104.84        84.196        .47975E-05    .13295E-03
  18  Prefactor     .10000E-03    5.5595        .28057E-06** at limit **
  19  Prefactor     3.7896        13.031        .91200E-05   -.27464E-03
  20  norm          2.2185        2.2045       -.40555E-07    .24203E-04
  21  Prefactor     32.277        34.519       -.29161E-06   -.19001E-04
  22  Prefactor     41.735        37.885       -.47029E-05   -.31571E-03
  23  Prefactor     .10004E-03    4.9125       -.19054E-06** at limit **
  24  Normalizat    1.1164        .25192       -.12334E-05    .13236E-03
  25  Prefactor     .81961        .13592        .10748E-05   -.11940E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 7.64238
  Prefactor  = 3.11555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.32641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.13939
  Prefactor  = 19.2458
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.6479
  norm       = 0.000100024
  Prefactor  = 104.843
  Prefactor  = 0.0001
  Prefactor  = 3.78962
  norm       = 2.21852
  Prefactor  = 32.2775
  Prefactor  = 41.7352
  Prefactor  = 0.000100044
  Normalizat = 1.1164
  Prefactor  = 0.819612
 **********
 **   18 **HESSE 
 **********

 FCN=   4740.772     FROM HESSE     STATUS=OK           427 CALLS     3324 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.6424        6.3787        .14495E-03   -1.5155    
   3  Prefactor     3.1156        8.5702        .22989E-03   -1.5355    
   4  Prefactor     .10000E-03    10.286        .17679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.4229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.3264        3.7344        .45634E-03   -1.5167    
   9  Prefactor     .10000E-03    7.9077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.4499        .10512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.1394        17.763        .15009E-03   -1.5174    
  12  Prefactor     19.246        17.691        .91324E-04   -1.4830    
  13  Prefactor     .10000E-03    16.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     60.648        108.87        .51516E-04   -1.4149    
  16  norm          .10002E-03    9.1498        .15381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     104.84        85.370        .19639E-03   -1.3657    
  18  Prefactor     .10000E-03    5.5601        .15845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.7896        13.642        .10359E-02   -1.5319    
  20  norm          2.2185        2.2132        .99393E-04   -1.5410    
  21  Prefactor     32.277        34.564        .70527E-04   -1.4571    
  22  Prefactor     41.735        39.183        .31013E-03   -1.4415    
  23  Prefactor     .10004E-03    22.264        .28195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1164        .30075        .29066E-03   -.89227    
  25  Prefactor     .81961        .16186        .19168E-03   -.99009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74267e-09
Minuit parameter uncertainties:
  1  2.62064e-05
  2  6.3793
  3  8.57358
  4  2.39561e-05
  5  4.07105e-05
  6  1.03372e-05
  7  2.87975e-05
  8  3.73451
  9  9.60425e-08
  10  1.60675e-06
  11  17.7762
  12  17.6955
  13  3.33917e-05
  14  1.19491e-05
  15  109.231
  16  0.000933523
  17  85.4707
  18  4.15714e-05
  19  13.6533
  20  2.21326
  21  34.5855
  22  39.2071
  23  0.0019853
  24  0.301217
  25  0.161952
Done.

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

Extracting fit parameters...

4FGL J0043.8+3425
   Spectrum: LogParabola
148         norm:  7.326e+00  3.735e+00  1.000e-04  1.000e+04 ( 1.000e-12)
149        alpha:  1.864e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
150         beta:  5.166e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
151           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  8.196e-01  1.620e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.116e+00  3.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.38
Ra Dec: 10.972 34.432
Photon Index (Fixed Index): 1.86 +/- 0.00
Photon Flux (Fixed Index): 7.50e-08 +/- 3.82e-08
Energy Flux (Fixed Index): 6.59e-05 +/- 3.36e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4740.17191519
delta logL = 0.599656901505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4740.16690554
delta logL = 0.604666559973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1021       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4171       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0282       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84677       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4740.167     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      238 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0997        40.550        .40632E-02    .30152E-03
   2  alpha         2.4178        3.7034        .19643        .80549E-04
   3  Normalizat    1.0286        .17653        .67982E-01    .57925E-04
   4  Prefactor     .84645        .62334E-01    .44323E-01    .18190E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.09968
  alpha      = 2.41778
  Normalizat = 1.02862
  Prefactor  = 0.846448
 **********
 **   18 **HESSE 
 **********

 FCN=   4740.167     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0997        3.7522        .68177E-04   -1.5214    
   2  alpha         2.4178        .50842        .76205E-02   -.32895E-01
   3  Normalizat    1.0286        .29096        .30075E-03   -.92078    
   4  Prefactor     .84645        .16194        .18870E-03   -.98038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11899e-11
Minuit parameter uncertainties:
  1  3.75235
  2  0.511997
  3  0.291414
  4  0.162031
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153785': 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) = 4740.16690172
delta logL = 0.604670374004

Extracting fit parameters...

4FGL J0043.8+3425
   Spectrum: LogParabola
148         norm:  6.100e+00  3.752e+00  1.000e-04  1.000e+04 ( 1.000e-12)
149        alpha:  2.418e+00  5.120e-01  0.000e+00  5.000e+00 ( 1.000e+00)
150         beta:  5.166e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
151           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  8.464e-01  1.620e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.029e+00  2.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.57
Ra Dec: 10.972 34.432
Photon Index (Free Index): 2.42 +/- 0.51
Photon Flux (Free Index): 1.46e-07 +/- 8.85e-08
Energy Flux (Free Index): 4.88e-05 +/- 2.21e-05

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/153785/cmap_HighResolution_672710401_672969601_4FGL_J0043.8+3425_daily_bin1672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.50e-08', energy_flux2='4.88e-05', photon_flux_error='3.82e-08', dlogl='6.05e-01', energy_flux='6.59e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2022-04-30 00:18:33.581687', photon_index_error2='0.51', photon_index2='2.42', ts='11.38', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.21e-05', EG='1.12', time_epoch_completed='1651303113.58', return_code='0', job_id='153785', GAL2='0.85', EG2='1.03', return_code2='0', energy_flux_error='3.36e-05', photon_flux_error2='8.85e-08', ts2='12.57', photon_index='1.86' WHERE bin_id='1672' AND source_name='4FGL J0043.8+3425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr 30 00:18:33 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 153774: <4FGL_J0043.8+3425_daily_bin1672> in cluster <slac> Done

Job <4FGL_J0043.8+3425_daily_bin1672> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Apr 30 00:05:38 2022
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr 30 00:07:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr 30 00:07:15 2022
Terminated at Sat Apr 30 00:18:26 2022
Results reported at Sat Apr 30 00:18:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0043.8+3425_daily_bin1672 10.9717 34.4316 672710401 672969601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0043.8+3425 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   548.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            768 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 153785: <4FGL_J0043.8+3425_daily_bin1672> in cluster <slac> Done

Job <4FGL_J0043.8+3425_daily_bin1672> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Apr 30 00:05:39 2022
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr 30 00:07:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr 30 00:07:23 2022
Terminated at Sat Apr 30 00:18:34 2022
Results reported at Sat Apr 30 00:18:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0043.8+3425_daily_bin1672 10.9717 34.4316 672710401 672969601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0043.8+3425 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   555.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            775 sec.

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

