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


Performing analysis on: 4FGL_J0312.8+0134_daily_bin1673
RA = 48.2222, Dec = 1.5724
tmin = 672969601, tmax = 673228801
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='351354', job_status='RUN', time_executed='2022-05-03 00:12:34.126138', time_epoch_executed='1651561954.13' WHERE source_name='4FGL J0312.8+0134' and cadence='daily' and bin_id='1673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351354

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351354/ft1_4FGL_J0312.8+0134_daily_bin1673.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351354/ft2_4FGL_J0312.8+0134_daily_bin1673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351354/ft1_4FGL_J0312.8+0134_daily_bin1673.fits outfile=/scratch/kocevski/351354/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin1673.fits ra=48.2222 dec=1.5724 rad=12.0 tmin=672969601.0 tmax=673228801.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 2.99
user 2.80
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/351354/ft2_4FGL_J0312.8+0134_daily_bin1673.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351354/ft2_4FGL_J0312.8+0134_daily_bin1673.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/351354/ft1_filteredMKT_4FGL_J0312.8+0134_daily_bin1673.fits evtable="EVENTS" outfile="/scratch/kocevski/351354/ft1_filtered_4FGL_J0312.8+0134_daily_bin1673.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 124

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351354/ft1_filtered_4FGL_J0312.8+0134_daily_bin1673.fits" evtable="EVENTS" scfile=/scratch/kocevski/351354/ft2_4FGL_J0312.8+0134_daily_bin1673.fits sctable="SC_DATA" outfile=/scratch/kocevski/351354/ltcube_672969601_673228801_4FGL_J0312.8+0134_daily_bin1673.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/351354/ft2_4FGL_J0312.8+0134_daily_bin1673.fits
.....................!
real 14.34
user 13.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351354/ft1_filtered_4FGL_J0312.8+0134_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351354/ft2_4FGL_J0312.8+0134_daily_bin1673.fits sctable="SC_DATA" expcube=/scratch/kocevski/351354/ltcube_672969601_673228801_4FGL_J0312.8+0134_daily_bin1673.fits outfile=/scratch/kocevski/351354/expmap_672969601_673228801_4FGL_J0312.8+0134_daily_bin1673.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/351354/ltcube_672969601_673228801_4FGL_J0312.8+0134_daily_bin1673.fits
.....................!
real 192.20
user 186.41
sys 5.39

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

Setting source of interest to:
4FGL J0312.8+0134 @ 48.2222 1.5724

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/351354/ft1_filtered_4FGL_J0312.8+0134_daily_bin1673.fits scfile=/scratch/kocevski/351354/ft2_4FGL_J0312.8+0134_daily_bin1673.fits outfile=/scratch/kocevski/351354/cmap_672969601_673228801_4FGL_J0312.8+0134_daily_bin1673.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=48.2222 yref=1.5724 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351354/ft1_filtered_4FGL_J0312.8+0134_daily_bin1673.fits scfile=/scratch/kocevski/351354/ft2_4FGL_J0312.8+0134_daily_bin1673.fits outfile=/scratch/kocevski/351354/cmap_HighResolution_672969601_673228801_4FGL_J0312.8+0134_daily_bin1673.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=48.2222 yref=1.5724 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/351354/ft1_filtered_4FGL_J0312.8+0134_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351354/ft2_4FGL_J0312.8+0134_daily_bin1673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/351354/Model_4FGL_J0312.8+0134_daily_bin1673.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/351354/ft1_filtered_4FGL_J0312.8+0134_daily_bin1673.fits.....................!
real 30.81
user 29.52
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/351354/ft1_filtered_4FGL_J0312.8+0134_daily_bin1673.fits', '/scratch/kocevski/351354/ft2_4FGL_J0312.8+0134_daily_bin1673.fits', expMap='/scratch/kocevski/351354/expmap_672969601_673228801_4FGL_J0312.8+0134_daily_bin1673.fits', expCube='/scratch/kocevski/351354/ltcube_672969601_673228801_4FGL_J0312.8+0134_daily_bin1673.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/351354/Model_4FGL_J0312.8+0134_daily_bin1673.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0312.8+0134'

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  4.030e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.327e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.257e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/351354/ft1_filtered_4FGL_J0312.8+0134_daily_bin1673.fits
Spacecraft file(s): /scratch/kocevski/351354/ft2_4FGL_J0312.8+0134_daily_bin1673.fits
Exposure map: /scratch/kocevski/351354/expmap_672969601_673228801_4FGL_J0312.8+0134_daily_bin1673.fits
Exposure cube: /scratch/kocevski/351354/ltcube_672969601_673228801_4FGL_J0312.8+0134_daily_bin1673.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/351354/Model_4FGL_J0312.8+0134_daily_bin1673.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1561.72492873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.205       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4161       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    80.737       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .55242       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .80006       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0651       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1561.701     FROM MIGRAD    STATUS=CONVERGED    371 CALLS     1695 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    431.25        .17634E-03** at limit **
   2  Prefactor     .10000E-03    1223.5       -.85168E-03** at limit **
   3  Prefactor     10.033        457.16       -.42404E-03    .21604E-04
   4  Prefactor     .10000E-03    33.105        .16281E-04** at limit **
   5  Prefactor     .10000E-03    141.09        .42443E-05** at limit **
   6  Prefactor     .10000E-03    18.080        .13651E-05** at limit **
   7  norm          .10000E-03    65.531        .19929E-04** at limit **
   8  norm          .10000E-03    36.462       -.19799E-04** at limit **
   9  Prefactor     3.4143        51.937       -.73725E-05   -.36923E-04
  10  Prefactor     .10000E-03    11.237        .41766E-06** at limit **
  11  norm          .10000E-03    72.052       -.51407E-04** at limit **
  12  Prefactor     80.699        98.496       -.25724E-04    .32454E-04
  13  Prefactor     .10000E-03    64.652        .29221E-04** at limit **
  14  Prefactor     .10000E-03    31.472       -.10269E-04** at limit **
  15  Prefactor     .10000E-03    34.126        .94180E-05** at limit **
  16  norm          .55305        5.4985       -.40686E-05   -.14061E-03
  17  Normalizat    .79942        .45242        .23016E-04    .15124E-03
  18  Prefactor     1.0652        .21837        .68266E-06    .53184E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.41427
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 80.6989
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.553045
  Normalizat = 0.799424
  Prefactor  = 1.06516
 **********
 **   18 **HESSE 
 **********

 FCN=   1561.701     FROM HESSE     STATUS=OK           232 CALLS     1927 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    431.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1224.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.033        463.40        .12543E-03   -1.5074    
   4  Prefactor     .10000E-03    33.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    141.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.086        .16417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    65.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    36.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4143        51.334        .21887E-03   -1.5338    
  10  Prefactor     .10000E-03    11.238        .12941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    72.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     80.699        98.569        .44698E-04   -1.3909    
  13  Prefactor     .10000E-03    64.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .55305        7.7205        .15285E-02   -1.5559    
  17  Normalizat    .79942        .48905        .39415E-03   -1.0009    
  18  Prefactor     1.0652        .24141        .16847E-03   -.90588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11951e-09
Minuit parameter uncertainties:
  1  9.25041e-06
  2  3.91424e-05
  3  137.52
  4  0.000139235
  5  0.0001494
  6  0.000276804
  7  0.000201188
  8  0.000142631
  9  26.5046
  10  6.70932e-05
  11  3.17686e-05
  12  98.7698
  13  0.00049556
  14  5.29293e-06
  15  6.82309e-06
  16  4.13296
  17  0.491776
  18  0.24166
Done.

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

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  8.070e+01  9.877e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.327e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.257e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  1.065e+00  2.417e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  7.994e-01  4.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.87
Ra Dec: 48.222 1.572
Photon Flux Upper Limit: 8.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.43e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351354/likelihoodResults_672969601_673228801_4FGL_J0312.8+0134_daily_bin1673.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1561.66052295
delta logL = 0.0407960284238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1561.65967413
delta logL = 0.0416448477454

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.834       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6320       1.0000          .0000       10.000    
     3 'Normalizat'    .77913       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0718       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+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=   1561.660     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      272 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.869        124.20        .52305E-04   -.14402E-03
   2  Index         2.6311        1.2227        .48680E-02   -.10295E-03
   3  Normalizat    .77963        .48531        .39840E-03    .34326E-03
   4  Prefactor     1.0713        .23787        .16803E-03    .11165E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.8693
  Index      = 2.63105
  Normalizat = 0.779634
  Prefactor  = 1.07134
 **********
 **   18 **HESSE 
 **********

 FCN=   1561.660     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.869        112.95        .10461E-04   -1.4172    
   2  Index         2.6311        1.1129        .19472E-03   -.49359    
   3  Normalizat    .77963        .48493        .79679E-04   -1.0083    
   4  Prefactor     1.0713        .23748        .33607E-04   -.90388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1276e-09
Minuit parameter uncertainties:
  1  113.367
  2  1.12509
  3  0.487648
  4  0.237717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351354': 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) = 1561.65967092
delta logL = 0.0416480549227

Extracting fit parameters...

4FGL J0312.8+0134
   Spectrum: PowerLaw
302    Prefactor:  5.887e+01  1.134e+02  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.631e+00  1.125e+00  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.257e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  1.071e+00  2.377e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  7.796e-01  4.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.87
Ra Dec: 48.222 1.572

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/351354/cmap_HighResolution_672969601_673228801_4FGL_J0312.8+0134_daily_bin1673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.43e-02', job_status='DONE', photon_flux_upper_limit='8.36e-07', time_completed='2022-05-03 00:18:46.073772', job_id='351354', GAL2='1.07', fit_tolerance='1e-08', EG2='0.78', EG='0.80', time_epoch_completed='1651562326.07', return_code2='0', ts='0.87', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='4.16e-02', ts2='0.96', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1673' AND source_name='4FGL J0312.8+0134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 00:18:46 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 351255: <4FGL_J0312.8+0134_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0312.8+0134_daily_bin1673> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 00:05:42 2022
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:09:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:09:30 2022
Terminated at Tue May  3 00:18:31 2022
Results reported at Tue May  3 00:18:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.8+0134_daily_bin1673 48.2222 1.5724 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0312.8+0134 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   371.51 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             268.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   540 sec.
    Turnaround time :                            769 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 351354: <4FGL_J0312.8+0134_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0312.8+0134_daily_bin1673> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May  3 00:05:46 2022
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:12:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:12:11 2022
Terminated at Tue May  3 00:18:46 2022
Results reported at Tue May  3 00:18:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0312.8+0134_daily_bin1673 48.2222 1.5724 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0312.8+0134 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   374.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   395 sec.
    Turnaround time :                            780 sec.

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

