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


Performing analysis on: 4FGL_J0014.9+3212_daily_bin1702
RA = 3.7268, Dec = 32.2162
tmin = 680486401, tmax = 680745601
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='232864', job_status='RUN', time_executed='2022-07-29 00:07:10.135576', time_epoch_executed='1659078430.14' WHERE source_name='4FGL J0014.9+3212' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/232864

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/232864/ft1_4FGL_J0014.9+3212_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/232864/ft2_4FGL_J0014.9+3212_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/232864/ft1_4FGL_J0014.9+3212_daily_bin1702.fits outfile=/scratch/kocevski/232864/ft1_filteredMKT_4FGL_J0014.9+3212_daily_bin1702.fits ra=3.7268 dec=32.2162 rad=12.0 tmin=680486401.0 tmax=680745601.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.03
user 2.78
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/232864/ft2_4FGL_J0014.9+3212_daily_bin1702.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/232864/ft2_4FGL_J0014.9+3212_daily_bin1702.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/232864/ft1_filteredMKT_4FGL_J0014.9+3212_daily_bin1702.fits evtable="EVENTS" outfile="/scratch/kocevski/232864/ft1_filtered_4FGL_J0014.9+3212_daily_bin1702.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1057

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/232864/ft1_filtered_4FGL_J0014.9+3212_daily_bin1702.fits" evtable="EVENTS" scfile=/scratch/kocevski/232864/ft2_4FGL_J0014.9+3212_daily_bin1702.fits sctable="SC_DATA" outfile=/scratch/kocevski/232864/ltcube_680486401_680745601_4FGL_J0014.9+3212_daily_bin1702.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/232864/ft2_4FGL_J0014.9+3212_daily_bin1702.fits
.....................!
real 16.35
user 15.96
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/232864/ft1_filtered_4FGL_J0014.9+3212_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/232864/ft2_4FGL_J0014.9+3212_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/232864/ltcube_680486401_680745601_4FGL_J0014.9+3212_daily_bin1702.fits outfile=/scratch/kocevski/232864/expmap_680486401_680745601_4FGL_J0014.9+3212_daily_bin1702.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/232864/ltcube_680486401_680745601_4FGL_J0014.9+3212_daily_bin1702.fits
.....................!
real 192.72
user 187.45
sys 4.58

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

Setting source of interest to:
4FGL J0014.9+3212 @ 3.7268 32.2162

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/232864/ft1_filtered_4FGL_J0014.9+3212_daily_bin1702.fits scfile=/scratch/kocevski/232864/ft2_4FGL_J0014.9+3212_daily_bin1702.fits outfile=/scratch/kocevski/232864/cmap_680486401_680745601_4FGL_J0014.9+3212_daily_bin1702.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=3.7268 yref=32.2162 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/232864/ft1_filtered_4FGL_J0014.9+3212_daily_bin1702.fits scfile=/scratch/kocevski/232864/ft2_4FGL_J0014.9+3212_daily_bin1702.fits outfile=/scratch/kocevski/232864/cmap_HighResolution_680486401_680745601_4FGL_J0014.9+3212_daily_bin1702.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=3.7268 yref=32.2162 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/232864/ft1_filtered_4FGL_J0014.9+3212_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/232864/ft2_4FGL_J0014.9+3212_daily_bin1702.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/232864/Model_4FGL_J0014.9+3212_daily_bin1702.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/232864/ft1_filtered_4FGL_J0014.9+3212_daily_bin1702.fits.....................!
real 111.26
user 109.04
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/232864/ft1_filtered_4FGL_J0014.9+3212_daily_bin1702.fits', '/scratch/kocevski/232864/ft2_4FGL_J0014.9+3212_daily_bin1702.fits', expMap='/scratch/kocevski/232864/expmap_680486401_680745601_4FGL_J0014.9+3212_daily_bin1702.fits', expCube='/scratch/kocevski/232864/ltcube_680486401_680745601_4FGL_J0014.9+3212_daily_bin1702.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/232864/Model_4FGL_J0014.9+3212_daily_bin1702.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0014.9+3212'

4FGL J0014.9+3212
   Spectrum: PowerLaw
59     Prefactor:  2.454e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
60         Index:  2.610e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
61         Scale:  5.697e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/232864/ft1_filtered_4FGL_J0014.9+3212_daily_bin1702.fits
Spacecraft file(s): /scratch/kocevski/232864/ft2_4FGL_J0014.9+3212_daily_bin1702.fits
Exposure map: /scratch/kocevski/232864/expmap_680486401_680745601_4FGL_J0014.9+3212_daily_bin1702.fits
Exposure cube: /scratch/kocevski/232864/ltcube_680486401_680745601_4FGL_J0014.9+3212_daily_bin1702.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/232864/Model_4FGL_J0014.9+3212_daily_bin1702.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) = 11560.8815232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14348E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.591       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.325       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2779       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.882       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9841       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.605       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    109.05       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.838       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11787E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2048       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90239       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11560.87     FROM MIGRAD    STATUS=CONVERGED    347 CALLS     1746 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1.1956       -.33627E-06** at limit **
   2  norm          .10000E-03    3.6585        .11123E-06** at limit **
   3  Prefactor     13.590        5.6976        .36339E-06   -.26127E-04
   4  Prefactor     10.325        9.1266        .93789E-06    .44273E-04
   5  Prefactor     5.2800        5.1039       -.80558E-07   -.19518E-03
   6  Prefactor     18.886        25.735        .72043E-05    .79307E-06
   7  Prefactor     .10000E-03    10.886        .70124E-05** at limit **
   8  norm          2.9842        1.6758        .14735E-07   -.51212E-05
   9  Prefactor     .10000E-03    1.6782       -.26877E-07** at limit **
  10  Prefactor     .10000E-03    9.7248       -.42831E-05** at limit **
  11  norm          .10000E-03    1.3873       -.14201E-06** at limit **
  12  Prefactor     14.607        15.462        .24191E-05   -.25177E-04
  13  Prefactor     .10000E-03    4.8165        .21947E-05** at limit **
  14  Prefactor     109.05        43.224       -.38771E-06   -.91733E-05
  15  Prefactor     18.833        26.848       -.78051E-05    .52016E-05
  16  Prefactor     .10001E-03    2.1930       -.12002E-06** at limit **
  17  Normalizat    1.2044        .16088       -.11344E-05    .11914E-03
  18  Prefactor     .90259        .88673E-01    .39417E-06   -.40795E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100014
  norm       = 0.0001
  Prefactor  = 13.5902
  Prefactor  = 10.3253
  Prefactor  = 5.28004
  Prefactor  = 18.8861
  Prefactor  = 0.0001
  norm       = 2.9842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.6074
  Prefactor  = 0.0001
  Prefactor  = 109.051
  Prefactor  = 18.833
  Prefactor  = 0.00010001
  Normalizat = 1.20441
  Prefactor  = 0.902591
 **********
 **   18 **HESSE 
 **********

 FCN=   11560.87     FROM HESSE     STATUS=OK           250 CALLS     1996 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    13.403        .22545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.6651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.590        5.6603        .10865E-03   -1.4970    
   4  Prefactor     10.325        9.0488        .12470E-03   -1.5065    
   5  Prefactor     5.2800        5.1138        .17495E-03   -1.5248    
   6  Prefactor     18.886        25.705        .92172E-04   -1.4839    
   7  Prefactor     .10000E-03    10.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9842        1.6759        .10107E-03   -1.5362    
   9  Prefactor     .10000E-03    1.6981        .13601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.9040        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.3930        .12361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.607        15.431        .10480E-03   -1.4943    
  13  Prefactor     .10000E-03    4.8208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     109.05        43.376        .38515E-04   -1.3616    
  15  Prefactor     18.833        26.612        .92280E-04   -1.4840    
  16  Prefactor     .10001E-03    4.8660        .30193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2044        .18787        .29990E-03   -.86467    
  18  Prefactor     .90259        .10378        .19369E-03   -.96051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19318e-09
Minuit parameter uncertainties:
  1  0.000873806
  2  1.03612e-05
  3  5.6605
  4  9.04998
  5  5.11422
  6  25.72
  7  1.4656e-06
  8  1.67595
  9  8.62958e-07
  10  4.80517e-05
  11  6.19162e-06
  12  15.4348
  13  7.53585e-07
  14  43.3889
  15  26.6291
  16  0.0004463
  17  0.187979
  18  0.103805
Done.

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

Extracting fit parameters...

4FGL J0014.9+3212
   Spectrum: PowerLaw
59     Prefactor:  5.280e+00  5.114e+00  1.000e-04  1.000e+04 ( 1.000e-12)
60         Index:  2.610e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
61         Scale:  5.697e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  9.026e-01  1.038e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  1.204e+00  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.23
Ra Dec: 3.727 32.216
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 3.08e-08 +/- 2.98e-08
Energy Flux (Fixed Index): 8.00e-06 +/- 7.75e-06

TS (Fixed Index): 2.23
Ra Dec: 3.727 32.216
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/232864/likelihoodResults_680486401_680745601_4FGL_J0014.9+3212_daily_bin1702.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) = 11560.5075799
delta logL = 0.359455059361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11560.3510837
delta logL = 0.515951251406

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2948       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5454       1.0000          .0000       10.000    
     3 'Normalizat'    1.2356       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89347       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11560.35     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      224 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2966        2.5054        .67735E-02   -.35852E-03
   2  Index         1.5458        .39122        .29311       -.10872E-03
   3  Normalizat    1.2355        .15402        .67040E-01    .41883E-04
   4  Prefactor     .89352        .87911E-01    .44922E-01    .35816E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.29663
  Index      = 1.54584
  Normalizat = 1.23549
  Prefactor  = 0.893523
 **********
 **   18 **HESSE 
 **********

 FCN=   11560.35     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2966        3.6295        .17013E-03   -1.5405    
   2  Index         1.5458        .74603        .11161E-01   -.76264    
   3  Normalizat    1.2355        .18002        .29659E-03   -.85513    
   4  Prefactor     .89352        .10280        .19454E-03   -.96368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62472e-11
Minuit parameter uncertainties:
  1  3.62985
  2  0.751428
  3  0.18011
  4  0.102826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/232864': 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) = 11560.3510834
delta logL = 0.515951566187

Extracting fit parameters...

4FGL J0014.9+3212
   Spectrum: PowerLaw
59     Prefactor:  2.297e+00  3.630e+00  1.000e-04  1.000e+04 ( 1.000e-12)
60         Index:  1.546e+00  7.514e-01  0.000e+00  1.000e+01 (-1.000e+00)
61         Scale:  5.697e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
520    Prefactor:  8.935e-01  1.028e-01  0.000e+00  1.000e+01 ( 1.000e+00)
521        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
522        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
519   Normalization:  1.235e+00  1.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.25
Ra Dec: 3.727 32.216
Photon Index (Free Index): 1.55 +/- 0.75
Photon Flux (Free Index): 6.05e-09 +/- 9.81e-09
Energy Flux (Free Index): 1.64e-05 +/- 2.77e-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/232864/cmap_HighResolution_680486401_680745601_4FGL_J0014.9+3212_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.89e-03', comment='SUCCESS', photon_flux='3.08e-08', energy_flux2='1.64e-05', photon_flux_error='2.98e-08', dlogl='5.16e-01', energy_flux='8.00e-06', photon_flux2='6.05e-09', job_status='DONE', time_completed='2022-07-29 00:20:10.848854', photon_index_error2='0.75', photon_index2='1.55', ts='2.23', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='2.77e-05', EG='1.20', time_epoch_completed='1659079210.85', return_code='0', job_id='232864', GAL2='0.89', EG2='1.24', return_code2='0', energy_flux_error='7.75e-06', photon_flux_error2='9.81e-09', ts2='3.25', photon_index='2.61' WHERE bin_id='1702' AND source_name='4FGL J0014.9+3212' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 00:20:10 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 232864: <4FGL_J0014.9+3212_daily_bin1702> in cluster <slac> Done

Job <4FGL_J0014.9+3212_daily_bin1702> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jul 29 00:05:04 2022
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 00:05:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 00:05:27 2022
Terminated at Fri Jul 29 00:20:11 2022
Results reported at Fri Jul 29 00:20:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0014.9+3212_daily_bin1702 3.7268 32.2162 680486401 680745601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0014.9+3212 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   776.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            907 sec.

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

