/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 187 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 = 7380
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0401.7+2112_daily_bin1193
RA = 60.4496, Dec = 21.2007
tmin = 548553601, tmax = 548812801
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='154778', job_status='RUN', time_executed='2021-08-19 23:04:49.483184', time_epoch_executed='1629439489.48' WHERE source_name='4FGL J0401.7+2112' and cadence='daily' and bin_id='1193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154778

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154778/ft1_4FGL_J0401.7+2112_daily_bin1193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154778/ft2_4FGL_J0401.7+2112_daily_bin1193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154778/ft1_4FGL_J0401.7+2112_daily_bin1193.fits outfile=/scratch/kocevski/154778/ft1_filteredMKT_4FGL_J0401.7+2112_daily_bin1193.fits ra=60.4496 dec=21.2007 rad=12.0 tmin=548553601.0 tmax=548812801.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 5.92
user 3.22
sys 2.69

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/154778/ft2_4FGL_J0401.7+2112_daily_bin1193.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/154778/ft2_4FGL_J0401.7+2112_daily_bin1193.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/154778/ft1_filteredMKT_4FGL_J0401.7+2112_daily_bin1193.fits evtable="EVENTS" outfile="/scratch/kocevski/154778/ft1_filtered_4FGL_J0401.7+2112_daily_bin1193.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 2.96
user 0.32
sys 2.62

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/154778/ft1_filtered_4FGL_J0401.7+2112_daily_bin1193.fits" evtable="EVENTS" scfile=/scratch/kocevski/154778/ft2_4FGL_J0401.7+2112_daily_bin1193.fits sctable="SC_DATA" outfile=/scratch/kocevski/154778/ltcube_548553601_548812801_4FGL_J0401.7+2112_daily_bin1193.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/154778/ft2_4FGL_J0401.7+2112_daily_bin1193.fits
.....................!
real 18.34
user 14.82
sys 3.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154778/ft1_filtered_4FGL_J0401.7+2112_daily_bin1193.fits evtable="EVENTS" scfile=/scratch/kocevski/154778/ft2_4FGL_J0401.7+2112_daily_bin1193.fits sctable="SC_DATA" expcube=/scratch/kocevski/154778/ltcube_548553601_548812801_4FGL_J0401.7+2112_daily_bin1193.fits outfile=/scratch/kocevski/154778/expmap_548553601_548812801_4FGL_J0401.7+2112_daily_bin1193.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/154778/ltcube_548553601_548812801_4FGL_J0401.7+2112_daily_bin1193.fits
.....................!
real 194.70
user 185.90
sys 8.33

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

Setting source of interest to:
4FGL J0401.7+2112 @ 60.4496 21.2007

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/154778/ft1_filtered_4FGL_J0401.7+2112_daily_bin1193.fits scfile=/scratch/kocevski/154778/ft2_4FGL_J0401.7+2112_daily_bin1193.fits outfile=/scratch/kocevski/154778/cmap_548553601_548812801_4FGL_J0401.7+2112_daily_bin1193.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=60.4496 yref=21.2007 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 2.92
user 0.36
sys 2.55

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/154778/ft1_filtered_4FGL_J0401.7+2112_daily_bin1193.fits scfile=/scratch/kocevski/154778/ft2_4FGL_J0401.7+2112_daily_bin1193.fits outfile=/scratch/kocevski/154778/cmap_HighResolution_548553601_548812801_4FGL_J0401.7+2112_daily_bin1193.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=60.4496 yref=21.2007 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 3.02
user 0.38
sys 2.56

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/154778/ft1_filtered_4FGL_J0401.7+2112_daily_bin1193.fits evtable="EVENTS" scfile=/scratch/kocevski/154778/ft2_4FGL_J0401.7+2112_daily_bin1193.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/154778/Model_4FGL_J0401.7+2112_daily_bin1193.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/154778/ft1_filtered_4FGL_J0401.7+2112_daily_bin1193.fits........................!
real 33.10
user 28.69
sys 4.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/154778/ft1_filtered_4FGL_J0401.7+2112_daily_bin1193.fits', '/scratch/kocevski/154778/ft2_4FGL_J0401.7+2112_daily_bin1193.fits', expMap='/scratch/kocevski/154778/expmap_548553601_548812801_4FGL_J0401.7+2112_daily_bin1193.fits', expCube='/scratch/kocevski/154778/ltcube_548553601_548812801_4FGL_J0401.7+2112_daily_bin1193.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/154778/Model_4FGL_J0401.7+2112_daily_bin1193.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0401.7+2112'

4FGL J0401.7+2112
   Spectrum: PowerLaw
267    Prefactor:  9.136e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
268        Index:  2.420e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  9.816e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/154778/ft1_filtered_4FGL_J0401.7+2112_daily_bin1193.fits
Spacecraft file(s): /scratch/kocevski/154778/ft2_4FGL_J0401.7+2112_daily_bin1193.fits
Exposure map: /scratch/kocevski/154778/expmap_548553601_548812801_4FGL_J0401.7+2112_daily_bin1193.fits
Exposure cube: /scratch/kocevski/154778/ltcube_548553601_548812801_4FGL_J0401.7+2112_daily_bin1193.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/154778/Model_4FGL_J0401.7+2112_daily_bin1193.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) = 1155.63391036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11301E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.925       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.306       1.0000         .10000E-03   10000.    
     4 'norm      '    10.239       1.0000         .10000E-03   10000.    
     5 'norm      '    .10315E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    28.498       1.0000         .10000E-03   10000.    
     7 'norm      '    797.52       1.0000         .10000E-03   10000.    
     8 'Prefactor '    207.77       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4396.4       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12244E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .12086E-01   1.0000         .10000E-03   10000.    
    12 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    13 'Prefactor '    .87212       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1155.535     FROM MIGRAD    STATUS=CONVERGED    212 CALLS     1295 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    272.70       -.21271E-06** at limit **
   2  Prefactor     25.944        30.994        .25378E-06    .19700E-03
   3  Prefactor     26.280        45.847        .37185E-06    .76403E-04
   4  norm          10.231        11.339        .40584E-06    .41514E-03
   5  norm          .10000E-03    23.495        .75359E-07** at limit **
   6  norm          28.489        21.230       -.98786E-07    .86876E-04
   7  norm          797.29        616.13        .11321E-05    .38224E-04
   8  Prefactor     207.33        492.28       -.12172E-05    .19802E-04
   9  Prefactor     4398.2        7128.0        .23431E-04    .22129E-05
  10  Prefactor     .10000E-03    880.69       -.11146E-05** at limit **
  11  norm          .10009E-03    6671.8       -.56831E-05** at limit **
  12  Normalizat    .10000E-01    .62419       -.37741E-04** at limit **
  13  Prefactor     .87212        .13999        .36864E-05    .18443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.9437
  Prefactor  = 26.2802
  norm       = 10.2311
  norm       = 0.0001
  norm       = 28.4887
  norm       = 797.293
  Prefactor  = 207.333
  Prefactor  = 4398.16
  Prefactor  = 0.000100003
  norm       = 0.000100086
  Normalizat = 0.01
  Prefactor  = 0.872119
 **********
 **   18 **HESSE 
 **********

 FCN=   1155.535     FROM HESSE     STATUS=OK           135 CALLS     1430 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    272.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.944        31.024        .78676E-04   -1.4689    
   3  Prefactor     26.280        45.990        .78106E-04   -1.4682    
   4  norm          10.231        11.376        .91597E-04   -1.5068    
   5  norm          .10000E-03    23.506        .16099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          28.489        21.255        .75048E-04   -1.4640    
   7  norm          797.29        617.88        .73826E-04   -.99828    
   8  Prefactor     207.33        493.91        .14022E-03   -1.2818    
   9  Prefactor     4398.2        7140.6        .40295E-04   -.12066    
  10  Prefactor     .10000E-03    880.83        .20623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10009E-03    6674.0        .18167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Normalizat    .10000E-01    1.2737        .15139E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .87212        .14612        .14237E-03   -.97122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.65845e-10
Minuit parameter uncertainties:
  1  0.00025102
  2  31.043
  3  46.0518
  4  11.3784
  5  8.02867e-05
  6  21.2603
  7  623.37
  8  504.376
  9  19099.5
  10  0.00318245
  11  0.0362349
  12  5.22743e-05
  13  0.146181
Done.

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

Extracting fit parameters...

4FGL J0401.7+2112
   Spectrum: PowerLaw
267    Prefactor:  2.073e+02  5.044e+02  1.000e-04  1.000e+04 ( 1.000e-13)
268        Index:  2.420e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  9.816e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.721e-01  1.462e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.000e-02  5.227e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 60.450 21.201
Photon Flux Upper Limit: 2.64e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.04e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/154778/likelihoodResults_548553601_548812801_4FGL_J0401.7+2112_daily_bin1193.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) = 1155.03549701
delta logL = 0.499183936815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1154.8853025
delta logL = 0.64937844747

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1154.885     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      220 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     467.83        550.51       -.16047E-05    .36320E-04
   2  Index         1.4338        .60811        .15464E-05   -.24504E-04
   3  Normalizat    .10000E-01    .78506        .21001E-04** at limit **
   4  Prefactor     .85958        .11679       -.24300E-05   -.28215E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 467.826
  Index      = 1.43376
  Normalizat = 0.01
  Prefactor  = 0.859579
 **********
 **   18 **HESSE 
 **********

 FCN=   1154.885     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     467.83        543.61        .94806E-04   -1.1348    
   2  Index         1.4338        .60294        .50973E-02   -.79412    
   3  Normalizat    .10000E-01    6.2069        .16695E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .85958        .12254        .14283E-03   -.97568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.42669e-11
Minuit parameter uncertainties:
  1  549.805
  2  0.60595
  3  7.22269e-06
  4  0.122582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154778': 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) = 1154.88527917
delta logL = 0.649401773497

Extracting fit parameters...

4FGL J0401.7+2112
   Spectrum: PowerLaw
267    Prefactor:  4.678e+02  5.498e+02  1.000e-04  1.000e+04 ( 1.000e-13)
268        Index:  1.434e+00  6.060e-01  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  9.816e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.596e-01  1.226e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.000e-02  7.223e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 60.450 21.201
Photon Index (Free Index): 1.43 +/- 0.61
Photon Flux (Free Index): 2.71e-07 +/- 3.44e-07
Energy Flux (Free Index): 1.07e-03 +/- 1.87e-03

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/154778/cmap_HighResolution_548553601_548812801_4FGL_J0401.7+2112_daily_bin1193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-01', comment='SUCCESS', energy_flux2='1.07e-03', dlogl='6.49e-01', photon_flux2='2.71e-07', job_status='DONE', time_completed='2021-08-19 23:12:35.854334', photon_index_error2='0.61', photon_index2='1.43', ts='0.22', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='2.64e-06', energy_flux_error2='1.87e-03', EG='0.01', time_epoch_completed='1629439955.85', return_code='0', job_id='154778', GAL2='0.86', EG2='0.01', return_code2='0', photon_flux_error2='3.44e-07', ts2='1.52', photon_index='2.42' WHERE bin_id='1193' AND source_name='4FGL J0401.7+2112' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:12:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 154778: <4FGL_J0401.7+2112_daily_bin1193> in cluster <slac> Done

Job <4FGL_J0401.7+2112_daily_bin1193> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug 19 23:00:53 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:00:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 23:00:55 2021
Terminated at Thu Aug 19 23:12:36 2021
Results reported at Thu Aug 19 23:12:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.7+2112_daily_bin1193 60.4496 21.2007 548553601 548812801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0401.7+2112 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   426.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             227.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            703 sec.

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

