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


Performing analysis on: 4FGL_J0047.9+2233_weekly_bin762
RA = 11.9981, Dec = 22.5632
tmin = 699840001, tmax = 700444801
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='958586', job_status='RUN', time_executed='2023-03-14 00:42:25.668654', time_epoch_executed='1678779745.67' WHERE source_name='4FGL J0047.9+2233' and cadence='weekly' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958586

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958586/ft1_4FGL_J0047.9+2233_weekly_bin762.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958586/ft2_4FGL_J0047.9+2233_weekly_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958586/ft1_4FGL_J0047.9+2233_weekly_bin762.fits outfile=/scratch/kocevski/958586/ft1_filteredMKT_4FGL_J0047.9+2233_weekly_bin762.fits ra=11.9981 dec=22.5632 rad=12.0 tmin=699840001.0 tmax=700444801.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 8.08
user 7.76
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/958586/ft2_4FGL_J0047.9+2233_weekly_bin762.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/958586/ft2_4FGL_J0047.9+2233_weekly_bin762.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/958586/ft1_filteredMKT_4FGL_J0047.9+2233_weekly_bin762.fits evtable="EVENTS" outfile="/scratch/kocevski/958586/ft1_filtered_4FGL_J0047.9+2233_weekly_bin762.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.54
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 1586

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958586/ft1_filtered_4FGL_J0047.9+2233_weekly_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/958586/ft2_4FGL_J0047.9+2233_weekly_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/958586/ltcube_699840001_700444801_4FGL_J0047.9+2233_weekly_bin762.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/958586/ft2_4FGL_J0047.9+2233_weekly_bin762.fits
.....................!
real 26.39
user 26.03
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958586/ft1_filtered_4FGL_J0047.9+2233_weekly_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/958586/ft2_4FGL_J0047.9+2233_weekly_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/958586/ltcube_699840001_700444801_4FGL_J0047.9+2233_weekly_bin762.fits outfile=/scratch/kocevski/958586/expmap_699840001_700444801_4FGL_J0047.9+2233_weekly_bin762.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/958586/ltcube_699840001_700444801_4FGL_J0047.9+2233_weekly_bin762.fits
.....................!
real 192.02
user 187.07
sys 4.63

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

Setting source of interest to:
4FGL J0047.9+2233 @ 11.9981 22.5632

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/958586/ft1_filtered_4FGL_J0047.9+2233_weekly_bin762.fits scfile=/scratch/kocevski/958586/ft2_4FGL_J0047.9+2233_weekly_bin762.fits outfile=/scratch/kocevski/958586/cmap_699840001_700444801_4FGL_J0047.9+2233_weekly_bin762.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=11.9981 yref=22.5632 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.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958586/ft1_filtered_4FGL_J0047.9+2233_weekly_bin762.fits scfile=/scratch/kocevski/958586/ft2_4FGL_J0047.9+2233_weekly_bin762.fits outfile=/scratch/kocevski/958586/cmap_HighResolution_699840001_700444801_4FGL_J0047.9+2233_weekly_bin762.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=11.9981 yref=22.5632 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.60
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/958586/ft1_filtered_4FGL_J0047.9+2233_weekly_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/958586/ft2_4FGL_J0047.9+2233_weekly_bin762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/958586/Model_4FGL_J0047.9+2233_weekly_bin762.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/958586/ft1_filtered_4FGL_J0047.9+2233_weekly_bin762.fits.....................!
real 157.54
user 156.09
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/958586/ft1_filtered_4FGL_J0047.9+2233_weekly_bin762.fits', '/scratch/kocevski/958586/ft2_4FGL_J0047.9+2233_weekly_bin762.fits', expMap='/scratch/kocevski/958586/expmap_699840001_700444801_4FGL_J0047.9+2233_weekly_bin762.fits', expCube='/scratch/kocevski/958586/ltcube_699840001_700444801_4FGL_J0047.9+2233_weekly_bin762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/958586/Model_4FGL_J0047.9+2233_weekly_bin762.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0047.9+2233'

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  3.900e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
178        Index:  2.509e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
179        Scale:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/958586/ft1_filtered_4FGL_J0047.9+2233_weekly_bin762.fits
Spacecraft file(s): /scratch/kocevski/958586/ft2_4FGL_J0047.9+2233_weekly_bin762.fits
Exposure map: /scratch/kocevski/958586/expmap_699840001_700444801_4FGL_J0047.9+2233_weekly_bin762.fits
Exposure cube: /scratch/kocevski/958586/ltcube_699840001_700444801_4FGL_J0047.9+2233_weekly_bin762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/958586/Model_4FGL_J0047.9+2233_weekly_bin762.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) = 17001.4456437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .38247E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    19.320       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.4111       1.0000          .0000       .10000E+07
     4 'Prefactor '    13.265       1.0000          .0000       .10000E+07
     5 'norm      '    .20364E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.8868       1.0000          .0000       .10000E+07
     7 'Prefactor '    .37470E-07   1.0000          .0000       .10000E+07
     8 'norm      '    5.3489       1.0000          .0000       .10000E+07
     9 'norm      '    6.3056       1.0000          .0000       .10000E+07
    10 'Prefactor '    .22204E-08   1.0000          .0000       .10000E+07
    11 'Prefactor '    23.169       1.0000          .0000       .10000E+07
    12 'Prefactor '    .12157E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    21.362       1.0000          .0000       .10000E+07
    14 'norm      '    2.3174       1.0000          .0000       .10000E+07
    15 'norm      '    3.6057       1.0000          .0000       .10000E+07
    16 'Prefactor '    12.992       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.9456       1.0000          .0000       .10000E+07
    18 'Prefactor '    .70277E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    12.110       1.0000          .0000       .10000E+07
    20 'Prefactor '    .83361E-06   1.0000          .0000       .10000E+07
    21 'Normalizat'    .88254       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0527       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16999.84     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     1032 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.7527        .12107E-07** at limit **
   2  Prefactor     19.307        6.7616       -.96383E-06    .56898E-02
   3  Prefactor     3.4337        4.3991        .29772E-06   -.20695E-02
   4  Prefactor     13.264        3.0703        .41105E-07   -.16519E-01
   5  norm          .27756E-09    3.7207       -.21334E-06** at limit **
   6  Prefactor     2.8936        2.4959       -.85727E-06   -.12358E-01
   7  Prefactor     .55511E-10    2.8430       -.71303E-07** at limit **
   8  norm          5.3489        1.9305       -.33668E-07    .27823E-01
   9  norm          6.3019        3.8787       -.86170E-08    .50978E-02
  10  Prefactor      .0000        1.4939        .18916E-06** at limit **
  11  Prefactor     23.245        1.3566       -.10877E-06    .25862E-01
  12  Prefactor     .55511E-10    1.4960       -.82320E-07** at limit **
  13  Prefactor     21.224        7.6973       -.33243E-06    .57308E-01
  14  norm          2.3166        .49534       -.48322E-09    .19593E-01
  15  norm          3.6056        .95551       -.12417E-07   -.47698E-02
  16  Prefactor     12.946        1.3535       -.34443E-07    .12826E-01
  17  Prefactor     7.3109        21.664        .64838E-06    .11770E-01
  18  Prefactor      .0000        1.0089        .16569E-07** at limit **
  19  Prefactor     12.136        3.6570       -.65300E-06   -.10998E-01
  20  Prefactor     .23315E-08    7.8148       -.14807E-06** at limit **
  21  Normalizat    .88224        .14346        .52913E-05    .81556E-03
  22  Prefactor     1.0526        .97704E-01   -.91151E-06    .13561E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 19.3072
  Prefactor  = 3.4337
  Prefactor  = 13.2636
  norm       = 2.77556e-10
  Prefactor  = 2.89358
  Prefactor  = 5.55112e-11
  norm       = 5.3489
  norm       = 6.3019
  Prefactor  = 0
  Prefactor  = 23.2451
  Prefactor  = 5.55112e-11
  Prefactor  = 21.2242
  norm       = 2.31657
  norm       = 3.6056
  Prefactor  = 12.9457
  Prefactor  = 7.31087
  Prefactor  = 0
  Prefactor  = 12.1359
  Prefactor  = 2.33147e-09
  Normalizat = 0.882243
  Prefactor  = 1.05261
 **********
 **   18 **HESSE 
 **********

 FCN=   16999.84     FROM HESSE     STATUS=OK           394 CALLS     1426 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.7121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.307        7.9889        .22759E-03   -1.5620    
   3  Prefactor     3.4337        4.4734        .54749E-03   -1.5671    
   4  Prefactor     13.264        3.0905        .27476E-03   -1.5635    
   5  norm          .27756E-09    3.7181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8936        7.0005        .59789E-03   -1.5674    
   7  Prefactor     .55511E-10    2.8483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.3489        1.9320        .43430E-03   -1.5662    
   9  norm          6.3019        3.9130        .39950E-03   -1.5658    
  10  Prefactor      .0000        1.4876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.245        9.1565        .20780E-03   -1.5612    
  12  Prefactor     .55511E-10    1.4970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.224        24.709        .21642E-03   -1.5616    
  14  norm          2.3166        .49810        .67359E-03   -1.5678    
  15  norm          3.6056        .95738        .53187E-03   -1.5670    
  16  Prefactor     12.946        9.1732        .27764E-03   -1.5636    
  17  Prefactor     7.3109        22.825        .38043E-03   -1.5654    
  18  Prefactor      .0000        1.0064        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.136        7.4046        .28760E-03   -1.5638    
  20  Prefactor     .23315E-08    7.8134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .88224        .12756        .71459E-01   -.97087    
  22  Prefactor     1.0526        .84991E-01    .39756E-01   -.90996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36457e-07
Minuit parameter uncertainties:
  1  1.04707e-05
  2  7.98895
  3  4.47336
  4  3.09053
  5  6.13179e-05
  6  7.0005
  7  2.56409e-05
  8  1.93196
  9  3.91304
  10  4.98811e-07
  11  9.15654
  12  1.81631e-05
  13  24.709
  14  0.4981
  15  0.95738
  16  9.17319
  17  22.8249
  18  4.69264e-06
  19  7.40464
  20  0.000268351
  21  0.127603
  22  0.0850021
Done.

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

Extracting fit parameters...

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  2.325e+01  9.157e+00  0.000e+00  1.000e+06 ( 1.000e-13)
178        Index:  2.509e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
179        Scale:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.053e+00  8.500e-02  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  8.822e-01  1.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.52
Ra Dec: 11.998 22.563
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 7.48e-08 +/- 2.95e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 8.47e-06

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) = 16999.592088
delta logL = 0.244590930972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16999.5896864
delta logL = 0.24699250171

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.901       1.0000          .0000       .10000E+07
     2 'Index     '    2.1996       1.0000          .0000       10.000    
     3 'Normalizat'    .90585       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0412       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+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=   16999.59     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      311 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.902        17.141        .70830E-05   -.40460E-02
   2  Index         2.1997        .43601        .77392E-02   -.65563E-04
   3  Normalizat    .90584        .14494        .31249E-03   -.78874E-04
   4  Prefactor     1.0412        .98430E-01    .20313E-03   -.45669E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.9021
  Index      = 2.19969
  Normalizat = 0.905844
  Prefactor  = 1.04116
 **********
 **   18 **HESSE 
 **********

 FCN=   16999.59     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.902        16.206        .14166E-05   -1.5595    
   2  Index         2.1997        .41145        .30957E-03   -.59446    
   3  Normalizat    .90584        .14458        .12500E-04   -.96255    
   4  Prefactor     1.0412        .98338E-01    .81253E-05   -.91370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.31678e-11
Minuit parameter uncertainties:
  1  16.2064
  2  0.412127
  3  0.144643
  4  0.0983547
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958586': 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) = 16999.5896864
delta logL = 0.246992551722

Extracting fit parameters...

4FGL J0047.9+2233
   Spectrum: PowerLaw
177    Prefactor:  3.190e+01  1.621e+01  0.000e+00  1.000e+06 ( 1.000e-13)
178        Index:  2.200e+00  4.121e-01  0.000e+00  1.000e+01 (-1.000e+00)
179        Scale:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.041e+00  9.835e-02  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  9.058e-01  1.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.91
Ra Dec: 11.998 22.563
Photon Index (Free Index): 2.20 +/- 0.41
Photon Flux (Free Index): 6.02e-08 +/- 3.27e-08
Energy Flux (Free Index): 2.71e-05 +/- 1.54e-05

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/958586/cmap_HighResolution_699840001_700444801_4FGL_J0047.9+2233_weekly_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.48e-08', energy_flux2='2.71e-05', photon_flux_error='2.95e-08', dlogl='2.47e-01', energy_flux='2.15e-05', photon_flux2='6.02e-08', job_status='DONE', time_completed='2023-03-14 00:56:05.022659', photon_index_error2='0.41', photon_index2='2.20', ts='11.52', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.54e-05', EG='0.88', time_epoch_completed='1678780565.02', return_code='0', job_id='958586', GAL2='1.04', EG2='0.91', return_code2='0', energy_flux_error='8.47e-06', photon_flux_error2='3.27e-08', ts2='11.91', photon_index='2.51' WHERE bin_id='762' AND source_name='4FGL J0047.9+2233' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 14 00:56:05 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0015>
Subject: Job 958586: <4FGL_J0047.9+2233_weekly_bin762> in cluster <slac> Done

Job <4FGL_J0047.9+2233_weekly_bin762> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Mar 14 00:40:25 2023
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:40:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:40:27 2023
Terminated at Tue Mar 14 00:56:05 2023
Results reported at Tue Mar 14 00:56:05 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0047.9+2233_weekly_bin762 11.9981 22.5632 699840001 700444801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0047.9+2233 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   820.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

