aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 185 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 = 17396
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0045.7+1217_weekly_bin283
RA = 11.4309, Dec = 12.292
tmin = 410140801, tmax = 410745601
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='939714', job_status='RUN', time_executed='2021-07-03 08:39:23.036975', time_epoch_executed='1625326763.04' WHERE source_name='4FGL J0045.7+1217' and cadence='weekly' and bin_id='283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/939714

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/939714/ft1_4FGL_J0045.7+1217_weekly_bin283.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/939714/ft2_4FGL_J0045.7+1217_weekly_bin283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/939714/ft1_4FGL_J0045.7+1217_weekly_bin283.fits outfile=/scratch/kocevski/939714/ft1_filteredMKT_4FGL_J0045.7+1217_weekly_bin283.fits ra=11.4309 dec=12.292 rad=12.0 tmin=410140801.0 tmax=410745601.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 14.94
user 14.46
sys 0.41

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/939714/ft2_4FGL_J0045.7+1217_weekly_bin283.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/939714/ft2_4FGL_J0045.7+1217_weekly_bin283.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/939714/ft1_filteredMKT_4FGL_J0045.7+1217_weekly_bin283.fits evtable="EVENTS" outfile="/scratch/kocevski/939714/ft1_filtered_4FGL_J0045.7+1217_weekly_bin283.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.38
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/939714/ft1_filtered_4FGL_J0045.7+1217_weekly_bin283.fits" evtable="EVENTS" scfile=/scratch/kocevski/939714/ft2_4FGL_J0045.7+1217_weekly_bin283.fits sctable="SC_DATA" outfile=/scratch/kocevski/939714/ltcube_410140801_410745601_4FGL_J0045.7+1217_weekly_bin283.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/939714/ft2_4FGL_J0045.7+1217_weekly_bin283.fits
.....................!
real 26.62
user 26.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/939714/ft1_filtered_4FGL_J0045.7+1217_weekly_bin283.fits evtable="EVENTS" scfile=/scratch/kocevski/939714/ft2_4FGL_J0045.7+1217_weekly_bin283.fits sctable="SC_DATA" expcube=/scratch/kocevski/939714/ltcube_410140801_410745601_4FGL_J0045.7+1217_weekly_bin283.fits outfile=/scratch/kocevski/939714/expmap_410140801_410745601_4FGL_J0045.7+1217_weekly_bin283.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/939714/ltcube_410140801_410745601_4FGL_J0045.7+1217_weekly_bin283.fits
.....................!
real 189.80
user 185.17
sys 4.29

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 J0045.7+1217 @ 11.4309 12.292

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/939714/ft1_filtered_4FGL_J0045.7+1217_weekly_bin283.fits scfile=/scratch/kocevski/939714/ft2_4FGL_J0045.7+1217_weekly_bin283.fits outfile=/scratch/kocevski/939714/cmap_410140801_410745601_4FGL_J0045.7+1217_weekly_bin283.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.4309 yref=12.292 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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/939714/ft1_filtered_4FGL_J0045.7+1217_weekly_bin283.fits scfile=/scratch/kocevski/939714/ft2_4FGL_J0045.7+1217_weekly_bin283.fits outfile=/scratch/kocevski/939714/cmap_HighResolution_410140801_410745601_4FGL_J0045.7+1217_weekly_bin283.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.4309 yref=12.292 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.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/939714/ft1_filtered_4FGL_J0045.7+1217_weekly_bin283.fits evtable="EVENTS" scfile=/scratch/kocevski/939714/ft2_4FGL_J0045.7+1217_weekly_bin283.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/939714/Model_4FGL_J0045.7+1217_weekly_bin283.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/939714/ft1_filtered_4FGL_J0045.7+1217_weekly_bin283.fits.....................!
real 92.13
user 90.76
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/939714/ft1_filtered_4FGL_J0045.7+1217_weekly_bin283.fits', '/scratch/kocevski/939714/ft2_4FGL_J0045.7+1217_weekly_bin283.fits', expMap='/scratch/kocevski/939714/expmap_410140801_410745601_4FGL_J0045.7+1217_weekly_bin283.fits', expCube='/scratch/kocevski/939714/ltcube_410140801_410745601_4FGL_J0045.7+1217_weekly_bin283.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/939714/Model_4FGL_J0045.7+1217_weekly_bin283.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0045.7+1217'

4FGL J0045.7+1217
   Spectrum: PowerLaw
185    Prefactor:  1.915e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
186        Index:  1.982e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
187        Scale:  2.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/939714/ft1_filtered_4FGL_J0045.7+1217_weekly_bin283.fits
Spacecraft file(s): /scratch/kocevski/939714/ft2_4FGL_J0045.7+1217_weekly_bin283.fits
Exposure map: /scratch/kocevski/939714/expmap_410140801_410745601_4FGL_J0045.7+1217_weekly_bin283.fits
Exposure cube: /scratch/kocevski/939714/ltcube_410140801_410745601_4FGL_J0045.7+1217_weekly_bin283.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/939714/Model_4FGL_J0045.7+1217_weekly_bin283.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) = 8978.95424112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0330       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .86569       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5232       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.3248       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.177       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2318       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.261       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3708       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .79930       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0644       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8978.953     FROM MIGRAD    STATUS=CONVERGED    369 CALLS     1750 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0069        13.541       -.24878E-05    .12751E-03
   2  Prefactor     .86603        9.1270        .17785E-05   -.69605E-04
   3  norm          2.5229        2.4567        .15983E-07    .70710E-06
   4  Prefactor     .10000E-03    3.4647       -.35947E-07** at limit **
   5  Prefactor     .10000E-03    3.8314        .38092E-06** at limit **
   6  norm          8.3251        7.4452        .57842E-07    .54622E-05
   7  Prefactor     20.185        23.142       -.89898E-06    .25228E-04
   8  Prefactor     .10000E-03    10.238       -.16189E-06** at limit **
   9  norm          3.2279        6.2571        .33396E-05    .20955E-03
  10  Prefactor     14.262        6.4809        .58582E-07    .12594E-04
  11  Prefactor     .10000E-03    20.768       -.20345E-06** at limit **
  12  Prefactor     .10000E-03    1.4283       -.86474E-07** at limit **
  13  norm          .10000E-03    3.5199        .22297E-07** at limit **
  14  Prefactor     .10000E-03    17.435        .11282E-05** at limit **
  15  Prefactor     1.3444        81.573        .59849E-05   -.44555E-04
  16  Prefactor     .10000E-03    7.5517        .16485E-07** at limit **
  17  Normalizat    .79923        .15501        .12177E-07   -.55643E-04
  18  Prefactor     1.0644        .11466       -.29699E-06   -.63493E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00685
  Prefactor  = 0.866032
  norm       = 2.52293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.32505
  Prefactor  = 20.185
  Prefactor  = 0.0001
  norm       = 3.22792
  Prefactor  = 14.2615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.34438
  Prefactor  = 0.0001
  Normalizat = 0.799228
  Prefactor  = 1.06445
 **********
 **   18 **HESSE 
 **********

 FCN=   8978.953     FROM HESSE     STATUS=OK           250 CALLS     2000 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0069        75.036        .53358E-02   -1.5507    
   2  Prefactor     .86603        29.450        .44663E-02   -1.5522    
   3  norm          2.5229        2.4589        .14232E-03   -1.5390    
   4  Prefactor     .10000E-03    3.4758        .17223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.9968        .36147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.3251        7.4506        .13894E-03   -1.5131    
   7  Prefactor     20.185        23.138        .89166E-04   -1.4809    
   8  Prefactor     .10000E-03    10.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.2279        6.3423        .11266E-02   -1.5349    
  10  Prefactor     14.262        6.4808        .10606E-03   -1.4952    
  11  Prefactor     .10000E-03    21.303        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.4917        .22085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.5224        .17362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3444        83.030        .37236E-03   -1.5476    
  16  Prefactor     .10000E-03    7.6286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .79923        .17816        .30452E-03   -1.0010    
  18  Prefactor     1.0644        .13278        .19748E-03   -.90611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74276e-08
Minuit parameter uncertainties:
  1  17.4057
  2  10.1053
  3  2.459
  4  3.46854e-08
  5  3.46341e-05
  6  7.45142
  7  23.1484
  8  1.14247e-05
  9  6.34361
  10  6.48114
  11  0.000168434
  12  4.0087e-06
  13  1.5883e-06
  14  4.25239e-05
  15  21.1604
  16  3.75172e-06
  17  0.178286
  18  0.132821
Done.

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

Extracting fit parameters...

4FGL J0045.7+1217
   Spectrum: PowerLaw
185    Prefactor:  1.426e+01  6.481e+00  1.000e-04  1.000e+04 ( 1.000e-13)
186        Index:  1.982e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
187        Scale:  2.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  1.064e+00  1.328e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  7.992e-01  1.783e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.81
Ra Dec: 11.431 12.292
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 6.50e-08 +/- 2.95e-08
Energy Flux (Fixed Index): 4.69e-05 +/- 2.13e-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) = 8978.18405006
delta logL = 0.769095988764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8978.12789017
delta logL = 0.8252558804

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.536       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4815       1.0000          .0000       10.000    
     3 'Normalizat'    .82417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0630       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+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=   8978.128     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      251 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.538        8.6755        .10161E-03   -.35802E-05
   2  Index         1.4815        .39094        .75738E-02   -.15757E-03
   3  Normalizat    .82416        .17745        .30032E-03    .11886E-04
   4  Prefactor     1.0630        .13230        .19770E-03    .16994E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5383
  Index      = 1.48154
  Normalizat = 0.824155
  Prefactor  = 1.06296
 **********
 **   18 **HESSE 
 **********

 FCN=   8978.128     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.538        8.7648        .40646E-05   -1.4919    
   2  Index         1.4815        .39489        .15148E-02   -.78058    
   3  Normalizat    .82416        .17757        .12013E-04   -.99179    
   4  Prefactor     1.0630        .13241        .39540E-04   -.90659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41933e-11
Minuit parameter uncertainties:
  1  8.76551
  2  0.395705
  3  0.177692
  4  0.132452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/939714': 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) = 8978.12789012
delta logL = 0.825255930164

Extracting fit parameters...

4FGL J0045.7+1217
   Spectrum: PowerLaw
185    Prefactor:  1.554e+01  8.766e+00  1.000e-04  1.000e+04 ( 1.000e-13)
186        Index:  1.482e+00  3.957e-01  0.000e+00  1.000e+01 (-1.000e+00)
187        Scale:  2.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  1.063e+00  1.325e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  8.242e-01  1.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.47
Ra Dec: 11.431 12.292
Photon Index (Free Index): 1.48 +/- 0.40
Photon Flux (Free Index): 2.98e-08 +/- 2.66e-08
Energy Flux (Free Index): 1.00e-04 +/- 7.91e-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/939714/cmap_HighResolution_410140801_410745601_4FGL_J0045.7+1217_weekly_bin283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.50e-08', energy_flux2='1.00e-04', photon_flux_error='2.95e-08', dlogl='8.25e-01', energy_flux='4.69e-05', photon_flux2='2.98e-08', job_status='DONE', time_completed='2021-07-03 08:50:44.711336', photon_index_error2='0.40', photon_index2='1.48', ts='16.81', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='7.91e-05', EG='0.80', time_epoch_completed='1625327444.71', return_code='0', job_id='939714', GAL2='1.06', EG2='0.82', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='2.66e-08', ts2='18.47', photon_index='1.98' WHERE bin_id='283' AND source_name='4FGL J0045.7+1217' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 08:50:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0143>
Subject: Job 939714: <4FGL_J0045.7+1217_weekly_bin283> in cluster <slac> Done

Job <4FGL_J0045.7+1217_weekly_bin283> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Jul  3 08:35:56 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 08:35:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 08:35:57 2021
Terminated at Sat Jul  3 08:50:45 2021
Results reported at Sat Jul  3 08:50:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0045.7+1217_weekly_bin283 11.4309 12.292 410140801 410745601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0045.7+1217 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   668.19 sec.
    Max Memory :                                 1237 MB
    Average Memory :                             271.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            889 sec.

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

