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


Performing analysis on: 4FGL_J0045.7+1217_daily_bin1679
RA = 11.4309, Dec = 12.292
tmin = 674524801, tmax = 674784001
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='424628', job_status='RUN', time_executed='2022-05-21 00:08:38.715754', time_epoch_executed='1653116918.72' WHERE source_name='4FGL J0045.7+1217' and cadence='daily' and bin_id='1679'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424628

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/424628/ft1_4FGL_J0045.7+1217_daily_bin1679.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/424628/ft2_4FGL_J0045.7+1217_daily_bin1679.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424628/ft1_4FGL_J0045.7+1217_daily_bin1679.fits outfile=/scratch/kocevski/424628/ft1_filteredMKT_4FGL_J0045.7+1217_daily_bin1679.fits ra=11.4309 dec=12.292 rad=12.0 tmin=674524801.0 tmax=674784001.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.73
user 3.36
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/424628/ft2_4FGL_J0045.7+1217_daily_bin1679.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/424628/ft1_filteredMKT_4FGL_J0045.7+1217_daily_bin1679.fits evtable="EVENTS" outfile="/scratch/kocevski/424628/ft1_filtered_4FGL_J0045.7+1217_daily_bin1679.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 698

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/424628/ft1_filtered_4FGL_J0045.7+1217_daily_bin1679.fits" evtable="EVENTS" scfile=/scratch/kocevski/424628/ft2_4FGL_J0045.7+1217_daily_bin1679.fits sctable="SC_DATA" outfile=/scratch/kocevski/424628/ltcube_674524801_674784001_4FGL_J0045.7+1217_daily_bin1679.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/424628/ft2_4FGL_J0045.7+1217_daily_bin1679.fits
.....................!
real 14.68
user 14.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424628/ft1_filtered_4FGL_J0045.7+1217_daily_bin1679.fits evtable="EVENTS" scfile=/scratch/kocevski/424628/ft2_4FGL_J0045.7+1217_daily_bin1679.fits sctable="SC_DATA" expcube=/scratch/kocevski/424628/ltcube_674524801_674784001_4FGL_J0045.7+1217_daily_bin1679.fits outfile=/scratch/kocevski/424628/expmap_674524801_674784001_4FGL_J0045.7+1217_daily_bin1679.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/424628/ltcube_674524801_674784001_4FGL_J0045.7+1217_daily_bin1679.fits
.....................!
real 191.18
user 185.42
sys 5.19

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/424628/ft1_filtered_4FGL_J0045.7+1217_daily_bin1679.fits scfile=/scratch/kocevski/424628/ft2_4FGL_J0045.7+1217_daily_bin1679.fits outfile=/scratch/kocevski/424628/cmap_674524801_674784001_4FGL_J0045.7+1217_daily_bin1679.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.56
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/424628/ft1_filtered_4FGL_J0045.7+1217_daily_bin1679.fits scfile=/scratch/kocevski/424628/ft2_4FGL_J0045.7+1217_daily_bin1679.fits outfile=/scratch/kocevski/424628/cmap_HighResolution_674524801_674784001_4FGL_J0045.7+1217_daily_bin1679.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/424628/ft1_filtered_4FGL_J0045.7+1217_daily_bin1679.fits evtable="EVENTS" scfile=/scratch/kocevski/424628/ft2_4FGL_J0045.7+1217_daily_bin1679.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/424628/Model_4FGL_J0045.7+1217_daily_bin1679.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/424628/ft1_filtered_4FGL_J0045.7+1217_daily_bin1679.fits.....................!
real 84.68
user 82.50
sys 1.48

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/424628/ft1_filtered_4FGL_J0045.7+1217_daily_bin1679.fits', '/scratch/kocevski/424628/ft2_4FGL_J0045.7+1217_daily_bin1679.fits', expMap='/scratch/kocevski/424628/expmap_674524801_674784001_4FGL_J0045.7+1217_daily_bin1679.fits', expCube='/scratch/kocevski/424628/ltcube_674524801_674784001_4FGL_J0045.7+1217_daily_bin1679.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/424628/Model_4FGL_J0045.7+1217_daily_bin1679.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/424628/ft1_filtered_4FGL_J0045.7+1217_daily_bin1679.fits
Spacecraft file(s): /scratch/kocevski/424628/ft2_4FGL_J0045.7+1217_daily_bin1679.fits
Exposure map: /scratch/kocevski/424628/expmap_674524801_674784001_4FGL_J0045.7+1217_daily_bin1679.fits
Exposure cube: /scratch/kocevski/424628/ltcube_674524801_674784001_4FGL_J0045.7+1217_daily_bin1679.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/424628/Model_4FGL_J0045.7+1217_daily_bin1679.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) = 7686.26333132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28225E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.2226       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.200       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6759       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2784       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7598       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    727.85       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0209       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .92601       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=   7686.255     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2260 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.485        .87684E-01** at limit **
   2  Prefactor     .10000E-03    4.5902        .18142E-02** at limit **
   3  norm          5.2226        3.5736        .13291E-03    .91525E-05
   4  Prefactor     .10000E-03    3.3999        .15769E-02** at limit **
   5  Prefactor     .10000E-03    2.4061        .26148E-03** at limit **
   6  norm          .10000E-03    4.4352        .18014E-02** at limit **
   7  Prefactor     45.181        28.640        .59635E-04   -.13249E-03
   8  Prefactor     .10000E-03    10.779        .18142E-02** at limit **
   9  norm          .10000E-03    2.1853        .12653E-02** at limit **
  10  Prefactor     9.6772        5.7956        .12883E-03   -.67950E-05
  11  Prefactor     8.2748        10.299        .69668E-03   -.12699E-03
  12  Prefactor     5.7597        3.0097        .10522E-03    .58992E-05
  13  norm          .10000E-03    10.900        .18142E-02** at limit **
  14  Prefactor     .10000E-03    23.355        .18142E-02** at limit **
  15  Prefactor     727.82        155.81        .76987E-04   -.37272E-04
  16  Prefactor     .10000E-03    12.686        .18142E-02** at limit **
  17  Normalizat    1.0211        .22666        .30638E-03    .12134E-03
  18  Prefactor     .92586        .15463        .22592E-03   -.12772E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.22259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 45.1807
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.67715
  Prefactor  = 8.27484
  Prefactor  = 5.75969
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 727.824
  Prefactor  = 0.0001
  Normalizat = 1.02113
  Prefactor  = 0.925856
 **********
 **   18 **HESSE 
 **********

 FCN=   7686.255     FROM HESSE     STATUS=OK           238 CALLS     2498 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.464        .92304E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.5908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.2226        3.5735        .53164E-05   -1.5251    
   4  Prefactor     .10000E-03    3.4001        .31537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.4062        .52296E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.4355        .36029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     45.181        28.640        .11927E-04   -1.4363    
   8  Prefactor     .10000E-03    10.782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.1853        .25306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.6772        5.7954        .51531E-05   -1.5086    
  11  Prefactor     8.2748        10.298        .27867E-04   -1.5133    
  12  Prefactor     5.7597        3.0097        .21045E-04   -1.5228    
  13  norm          .10000E-03    10.903        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.356        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     727.82        155.82        .15397E-04   -1.0245    
  16  Prefactor     .10000E-03    12.690        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0211        .22689        .12255E-04   -.92326    
  18  Prefactor     .92586        .15477        .90369E-05   -.95243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93979e-10
Minuit parameter uncertainties:
  1  3.61099e-06
  2  9.53541e-07
  3  3.57364
  4  1.92886e-06
  5  3.6124e-05
  6  8.25102e-06
  7  28.6488
  8  5.77203e-06
  9  3.25305e-06
  10  5.79578
  11  10.2998
  12  3.00975
  13  7.53687e-06
  14  2.11831e-05
  15  155.909
  16  3.84998e-05
  17  0.227107
  18  0.154848
Done.

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

Extracting fit parameters...

4FGL J0045.7+1217
   Spectrum: PowerLaw
185    Prefactor:  9.677e+00  5.796e+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:  9.259e-01  1.548e-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:  1.021e+00  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.14
Ra Dec: 11.431 12.292
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 4.41e-08 +/- 2.64e-08
Energy Flux (Fixed Index): 3.18e-05 +/- 1.91e-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) = 7681.9202334
delta logL = 4.33509559364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7681.68215497
delta logL = 4.57317402335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5452       1.0000         .10000E-03   10000.    
     2 'Index     '    .71719       1.0000          .0000       10.000    
     3 'Normalizat'    1.0355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93400       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.

 FCN=   7681.682     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      217 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5428        3.4593        .47207E-02   -.11369E-03
   2  Index         .71695        .30112        .19184       -.24042E-04
   3  Normalizat    1.0356        .18363        .68772E-01   -.27575E-05
   4  Prefactor     .93396        .13039        .45437E-01    .59339E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.54282
  Index      = 0.716951
  Normalizat = 1.03559
  Prefactor  = 0.933955
 **********
 **   18 **HESSE 
 **********

 FCN=   7681.682     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5428        5.9961        .11951E-03   -1.5282    
   2  Index         .71695        .51052        .86146E-03   -1.0287    
   3  Normalizat    1.0356        .21621        .30426E-03   -.91847    
   4  Prefactor     .93396        .15381        .22500E-03   -.94965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19396e-11
Minuit parameter uncertainties:
  1  5.99689
  2  0.51391
  3  0.216391
  4  0.153881
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424628': 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) = 7681.68215481
delta logL = 4.57317418507

Extracting fit parameters...

4FGL J0045.7+1217
   Spectrum: PowerLaw
185    Prefactor:  4.543e+00  5.997e+00  1.000e-04  1.000e+04 ( 1.000e-13)
186        Index:  7.170e-01  5.139e-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:  9.340e-01  1.539e-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:  1.036e+00  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.17
Ra Dec: 11.431 12.292
Photon Index (Free Index): 0.72 +/- 0.51
Photon Flux (Free Index): 8.85e-09 +/- 6.84e-09
Energy Flux (Free Index): 2.28e-04 +/- 1.77e-04

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/424628/cmap_HighResolution_674524801_674784001_4FGL_J0045.7+1217_daily_bin1679.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.41e-08', energy_flux2='2.28e-04', photon_flux_error='2.64e-08', dlogl='4.57e+00', energy_flux='3.18e-05', photon_flux2='8.85e-09', job_status='DONE', time_completed='2022-05-21 00:18:51.708461', photon_index_error2='0.51', photon_index2='0.72', ts='19.14', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.77e-04', EG='1.02', time_epoch_completed='1653117531.71', return_code='0', job_id='424628', GAL2='0.93', EG2='1.04', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='6.84e-09', ts2='28.17', photon_index='1.98' WHERE bin_id='1679' AND source_name='4FGL J0045.7+1217' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat May 21 00:18:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 424628: <4FGL_J0045.7+1217_daily_bin1679> in cluster <slac> Done

Job <4FGL_J0045.7+1217_daily_bin1679> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat May 21 00:04:57 2022
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat May 21 00:06:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat May 21 00:06:43 2022
Terminated at Sat May 21 00:18:52 2022
Results reported at Sat May 21 00:18:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0045.7+1217_daily_bin1679 11.4309 12.292 674524801 674784001 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 :                                   611.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            835 sec.

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

