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 32 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_J0014.9+3212_daily_bin1679
RA = 3.7268, Dec = 32.2162
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='424557', job_status='RUN', time_executed='2022-05-21 00:06:59.200558', time_epoch_executed='1653116819.2' WHERE source_name='4FGL J0014.9+3212' and cadence='daily' and bin_id='1679'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424557

Creating custom pfile directory:
/scratch/kocevski/424557/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/424557/ft1_4FGL_J0014.9+3212_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/424557/ft2_4FGL_J0014.9+3212_daily_bin1679.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424557/ft1_4FGL_J0014.9+3212_daily_bin1679.fits outfile=/scratch/kocevski/424557/ft1_filteredMKT_4FGL_J0014.9+3212_daily_bin1679.fits ra=3.7268 dec=32.2162 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.66
user 3.35
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/424557/ft2_4FGL_J0014.9+3212_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/424557/ft1_filteredMKT_4FGL_J0014.9+3212_daily_bin1679.fits evtable="EVENTS" outfile="/scratch/kocevski/424557/ft1_filtered_4FGL_J0014.9+3212_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.56
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 742

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/424557/ft1_filtered_4FGL_J0014.9+3212_daily_bin1679.fits" evtable="EVENTS" scfile=/scratch/kocevski/424557/ft2_4FGL_J0014.9+3212_daily_bin1679.fits sctable="SC_DATA" outfile=/scratch/kocevski/424557/ltcube_674524801_674784001_4FGL_J0014.9+3212_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/424557/ft2_4FGL_J0014.9+3212_daily_bin1679.fits
.....................!
real 15.42
user 15.02
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424557/ft1_filtered_4FGL_J0014.9+3212_daily_bin1679.fits evtable="EVENTS" scfile=/scratch/kocevski/424557/ft2_4FGL_J0014.9+3212_daily_bin1679.fits sctable="SC_DATA" expcube=/scratch/kocevski/424557/ltcube_674524801_674784001_4FGL_J0014.9+3212_daily_bin1679.fits outfile=/scratch/kocevski/424557/expmap_674524801_674784001_4FGL_J0014.9+3212_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/424557/ltcube_674524801_674784001_4FGL_J0014.9+3212_daily_bin1679.fits
.....................!
real 191.91
user 186.31
sys 5.06

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/424557/ft1_filtered_4FGL_J0014.9+3212_daily_bin1679.fits scfile=/scratch/kocevski/424557/ft2_4FGL_J0014.9+3212_daily_bin1679.fits outfile=/scratch/kocevski/424557/cmap_674524801_674784001_4FGL_J0014.9+3212_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=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.59
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/424557/ft1_filtered_4FGL_J0014.9+3212_daily_bin1679.fits scfile=/scratch/kocevski/424557/ft2_4FGL_J0014.9+3212_daily_bin1679.fits outfile=/scratch/kocevski/424557/cmap_HighResolution_674524801_674784001_4FGL_J0014.9+3212_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=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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/424557/ft1_filtered_4FGL_J0014.9+3212_daily_bin1679.fits evtable="EVENTS" scfile=/scratch/kocevski/424557/ft2_4FGL_J0014.9+3212_daily_bin1679.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/424557/Model_4FGL_J0014.9+3212_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/424557/ft1_filtered_4FGL_J0014.9+3212_daily_bin1679.fits.....................!
real 81.32
user 79.14
sys 1.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/424557/ft1_filtered_4FGL_J0014.9+3212_daily_bin1679.fits', '/scratch/kocevski/424557/ft2_4FGL_J0014.9+3212_daily_bin1679.fits', expMap='/scratch/kocevski/424557/expmap_674524801_674784001_4FGL_J0014.9+3212_daily_bin1679.fits', expCube='/scratch/kocevski/424557/ltcube_674524801_674784001_4FGL_J0014.9+3212_daily_bin1679.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/424557/Model_4FGL_J0014.9+3212_daily_bin1679.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/424557/ft1_filtered_4FGL_J0014.9+3212_daily_bin1679.fits
Spacecraft file(s): /scratch/kocevski/424557/ft2_4FGL_J0014.9+3212_daily_bin1679.fits
Exposure map: /scratch/kocevski/424557/expmap_674524801_674784001_4FGL_J0014.9+3212_daily_bin1679.fits
Exposure cube: /scratch/kocevski/424557/ltcube_674524801_674784001_4FGL_J0014.9+3212_daily_bin1679.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/424557/Model_4FGL_J0014.9+3212_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) = 8042.36665122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10505E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11996E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.599       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.019       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17482E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.355       1.0000         .10000E-03   10000.    
     8 'norm      '    .72440E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.430       1.0000         .10000E-03   10000.    
    11 'norm      '    .21197E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17228E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7187       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14952E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .99009       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .96391       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=   8042.365     FROM MIGRAD    STATUS=CONVERGED    366 CALLS     1800 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.0325        .20721E-06** at limit **
   2  norm          .10000E-03    5.7239        .14276E-05** at limit **
   3  Prefactor     .10000E-03    10.314        .68926E-05** at limit **
   4  Prefactor     38.679        15.291       -.41078E-06   -.27767E-04
   5  Prefactor     16.038        8.0128        .80022E-06   -.10162E-03
   6  Prefactor     .10000E-03    18.654       -.24912E-05** at limit **
   7  Prefactor     23.385        25.257        .27107E-04    .21736E-03
   8  norm          .76716E-01    .99319       -.66629E-06    .13760E-03
   9  Prefactor     .10000E-03    3.3415       -.32534E-05** at limit **
  10  Prefactor     10.393        11.460        .62852E-05    .44346E-04
  11  norm          .10000E-03    2.0352       -.19482E-06** at limit **
  12  Prefactor     .10000E-03    11.450       -.51204E-06** at limit **
  13  Prefactor     9.7393        12.755       -.26537E-05   -.28659E-04
  14  Prefactor     .10000E-03    8.9160        .51051E-06** at limit **
  15  Prefactor     .10000E-03    11.947       -.43405E-05** at limit **
  16  Prefactor     .10000E-03    2.3358       -.25184E-07** at limit **
  17  Normalizat    .98992        .18281       -.48028E-05    .35383E-03
  18  Prefactor     .96383        .10416       -.13156E-06    .16942E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.6793
  Prefactor  = 16.0382
  Prefactor  = 0.0001
  Prefactor  = 23.3855
  norm       = 0.0767158
  Prefactor  = 0.0001
  Prefactor  = 10.3927
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 9.73931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.989917
  Prefactor  = 0.963826
 **********
 **   18 **HESSE 
 **********

 FCN=   8042.365     FROM HESSE     STATUS=OK           244 CALLS     2044 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1573        .30452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.7335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.683        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.679        15.291        .64514E-04   -1.4463    
   5  Prefactor     16.038        8.0300        .10007E-03   -1.4907    
   6  Prefactor     .10000E-03    18.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.385        25.341        .82885E-04   -1.4740    
   8  norm          .76716E-01    11.775        .17174E-02   -1.5653    
   9  Prefactor     .10000E-03    8.6727        .31601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.393        11.441        .12406E-03   -1.5063    
  11  norm          .10000E-03    5.5938        .24898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.7393        12.759        .12854E-03   -1.5084    
  14  Prefactor     .10000E-03    8.9231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.3461        .13383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .98992        .21611        .30479E-03   -.93369    
  18  Prefactor     .96383        .12436        .18068E-03   -.93945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38943e-09
Minuit parameter uncertainties:
  1  3.96562e-05
  2  1.52442e-05
  3  0.000128216
  4  15.2925
  5  8.03052
  6  3.65935e-05
  7  25.3527
  8  1.90001
  9  0.000112337
  10  11.4433
  11  0.000264452
  12  8.21743e-05
  13  12.7629
  14  1.60605e-05
  15  2.24953e-06
  16  4.79754e-07
  17  0.216297
  18  0.124398
Done.

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

Extracting fit parameters...

4FGL J0014.9+3212
   Spectrum: PowerLaw
59     Prefactor:  1.604e+01  8.031e+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.638e-01  1.244e-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:  9.899e-01  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.44
Ra Dec: 3.727 32.216
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 9.35e-08 +/- 4.68e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.22e-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) = 8041.81366378
delta logL = 0.551181464029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8041.78605044
delta logL = 0.578794801021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.738       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1072       1.0000          .0000       10.000    
     3 'Normalizat'    1.0336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94436       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=   8041.786     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      242 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.732        25.939        .22538E-02    .12510E-03
   2  Index         2.1062        .89186        .19668       -.14811E-04
   3  Normalizat    1.0338        .18365        .67575E-01    .24528E-03
   4  Prefactor     .94434        .10759        .45568E-01    .15372E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.7321
  Index      = 2.10619
  Normalizat = 1.03377
  Prefactor  = 0.944339
 **********
 **   18 **HESSE 
 **********

 FCN=   8041.786     FROM HESSE     STATUS=OK            31 CALLS      273 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.732        10.015        .90153E-04   -1.4819    
   2  Index         2.1062        .41439        .72307E-02   -.61721    
   3  Normalizat    1.0338        .21340        .29895E-03   -.91907    
   4  Prefactor     .94434        .12371        .18220E-03   -.94609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13334e-10
Minuit parameter uncertainties:
  1  10.0159
  2  0.415103
  3  0.213581
  4  0.123751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424557': 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) = 8041.78604715
delta logL = 0.578798097183

Extracting fit parameters...

4FGL J0014.9+3212
   Spectrum: PowerLaw
59     Prefactor:  1.973e+01  1.002e+01  1.000e-04  1.000e+04 ( 1.000e-12)
60         Index:  2.106e+00  4.151e-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:  9.443e-01  1.238e-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.034e+00  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.52
Ra Dec: 3.727 32.216
Photon Index (Free Index): 2.11 +/- 0.42
Photon Flux (Free Index): 6.96e-08 +/- 4.42e-08
Energy Flux (Free Index): 3.77e-05 +/- 2.69e-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/424557/cmap_HighResolution_674524801_674784001_4FGL_J0014.9+3212_daily_bin1679.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.35e-08', energy_flux2='3.77e-05', photon_flux_error='4.68e-08', dlogl='5.79e-01', energy_flux='2.43e-05', photon_flux2='6.96e-08', job_status='DONE', time_completed='2022-05-21 00:16:56.198874', photon_index_error2='0.42', photon_index2='2.11', ts='6.44', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.69e-05', EG='0.99', time_epoch_completed='1653117416.2', return_code='0', job_id='424557', GAL2='0.94', EG2='1.03', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='4.42e-08', ts2='7.52', photon_index='2.61' WHERE bin_id='1679' AND source_name='4FGL J0014.9+3212' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat May 21 00:16:56 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 424557: <4FGL_J0014.9+3212_daily_bin1679> in cluster <slac> Done

Job <4FGL_J0014.9+3212_daily_bin1679> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat May 21 00:04:53 2022
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat May 21 00:05:55 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:05:55 2022
Terminated at Sat May 21 00:16:56 2022
Results reported at Sat May 21 00:16:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0014.9+3212_daily_bin1679 3.7268 32.2162 674524801 674784001 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 :                                   595.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            723 sec.

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

