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


Performing analysis on: 4FGL_J0401.7+2112_daily_bin1587
RA = 60.4496, Dec = 21.2007
tmin = 650678401, tmax = 650937601
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='158710', job_status='RUN', time_executed='2021-08-19 23:16:03.466773', time_epoch_executed='1629440163.47' WHERE source_name='4FGL J0401.7+2112' and cadence='daily' and bin_id='1587'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158710

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158710/ft1_4FGL_J0401.7+2112_daily_bin1587.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158710/ft2_4FGL_J0401.7+2112_daily_bin1587.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158710/ft1_4FGL_J0401.7+2112_daily_bin1587.fits outfile=/scratch/kocevski/158710/ft1_filteredMKT_4FGL_J0401.7+2112_daily_bin1587.fits ra=60.4496 dec=21.2007 rad=12.0 tmin=650678401.0 tmax=650937601.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 6.00
user 3.48
sys 2.44

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158710/ft2_4FGL_J0401.7+2112_daily_bin1587.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/158710/ft1_filteredMKT_4FGL_J0401.7+2112_daily_bin1587.fits evtable="EVENTS" outfile="/scratch/kocevski/158710/ft1_filtered_4FGL_J0401.7+2112_daily_bin1587.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.77
user 0.33
sys 2.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/158710/ft1_filtered_4FGL_J0401.7+2112_daily_bin1587.fits" evtable="EVENTS" scfile=/scratch/kocevski/158710/ft2_4FGL_J0401.7+2112_daily_bin1587.fits sctable="SC_DATA" outfile=/scratch/kocevski/158710/ltcube_650678401_650937601_4FGL_J0401.7+2112_daily_bin1587.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/158710/ft2_4FGL_J0401.7+2112_daily_bin1587.fits
.....................!
real 14.67
user 11.69
sys 2.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158710/ft1_filtered_4FGL_J0401.7+2112_daily_bin1587.fits evtable="EVENTS" scfile=/scratch/kocevski/158710/ft2_4FGL_J0401.7+2112_daily_bin1587.fits sctable="SC_DATA" expcube=/scratch/kocevski/158710/ltcube_650678401_650937601_4FGL_J0401.7+2112_daily_bin1587.fits outfile=/scratch/kocevski/158710/expmap_650678401_650937601_4FGL_J0401.7+2112_daily_bin1587.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/158710/ltcube_650678401_650937601_4FGL_J0401.7+2112_daily_bin1587.fits
.....................!
real 194.67
user 185.15
sys 7.45

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/158710/ft1_filtered_4FGL_J0401.7+2112_daily_bin1587.fits scfile=/scratch/kocevski/158710/ft2_4FGL_J0401.7+2112_daily_bin1587.fits outfile=/scratch/kocevski/158710/cmap_650678401_650937601_4FGL_J0401.7+2112_daily_bin1587.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.76
user 0.38
sys 2.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158710/ft1_filtered_4FGL_J0401.7+2112_daily_bin1587.fits scfile=/scratch/kocevski/158710/ft2_4FGL_J0401.7+2112_daily_bin1587.fits outfile=/scratch/kocevski/158710/cmap_HighResolution_650678401_650937601_4FGL_J0401.7+2112_daily_bin1587.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 2.72
user 0.40
sys 2.31

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/158710/ft1_filtered_4FGL_J0401.7+2112_daily_bin1587.fits evtable="EVENTS" scfile=/scratch/kocevski/158710/ft2_4FGL_J0401.7+2112_daily_bin1587.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/158710/Model_4FGL_J0401.7+2112_daily_bin1587.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/158710/ft1_filtered_4FGL_J0401.7+2112_daily_bin1587.fits.....................!
real 248.92
user 244.15
sys 4.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/158710/ft1_filtered_4FGL_J0401.7+2112_daily_bin1587.fits', '/scratch/kocevski/158710/ft2_4FGL_J0401.7+2112_daily_bin1587.fits', expMap='/scratch/kocevski/158710/expmap_650678401_650937601_4FGL_J0401.7+2112_daily_bin1587.fits', expCube='/scratch/kocevski/158710/ltcube_650678401_650937601_4FGL_J0401.7+2112_daily_bin1587.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/158710/Model_4FGL_J0401.7+2112_daily_bin1587.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/158710/ft1_filtered_4FGL_J0401.7+2112_daily_bin1587.fits
Spacecraft file(s): /scratch/kocevski/158710/ft2_4FGL_J0401.7+2112_daily_bin1587.fits
Exposure map: /scratch/kocevski/158710/expmap_650678401_650937601_4FGL_J0401.7+2112_daily_bin1587.fits
Exposure cube: /scratch/kocevski/158710/ltcube_650678401_650937601_4FGL_J0401.7+2112_daily_bin1587.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/158710/Model_4FGL_J0401.7+2112_daily_bin1587.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) = 15830.507569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70935E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9238       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .70800E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .98739       1.0000         .10000E-03   10000.    
     5 'norm      '    6.3473       1.0000         .10000E-03   10000.    
     6 'norm      '    .70493       1.0000         .10000E-03   10000.    
     7 'norm      '    .47557E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.918       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12225E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .87588E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .17571E-03   1.0000         .10000E-03   10000.    
    12 'Normalizat'    .92142       1.0000         .10000E-01   10.000    
    13 'Prefactor '    1.0455       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=   15830.40     FROM MIGRAD    STATUS=CONVERGED    252 CALLS      875 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.571       -.17297E-04** at limit **
   2  Prefactor     2.9227        3.6990       -.11568E-06    .36003E-04
   3  Prefactor     .10000E-03    4.2373       -.10466E-06** at limit **
   4  norm          .98956        2.2019       -.60132E-06   -.30623E-03
   5  norm          6.4315        6.8834        .56513E-08   -.76639E-05
   6  norm          .70091        .73184        .34239E-06   -.40699E-02
   7  norm          .10000E-03    24.601        .51883E-05** at limit **
   8  Prefactor     49.785        26.741       -.25076E-04   -.89962E-04
   9  Prefactor     .10000E-03    100.94        .55864E-04** at limit **
  10  Prefactor     .10000E-03    7.0226       -.10384E-06** at limit **
  11  norm          .10000E-03    7.5974        .37524E-07** at limit **
  12  Normalizat    .92157        .24311        .83606E-05   -.80806E-04
  13  Prefactor     1.0455        .53118E-01   -.37861E-06   -.39696E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.9227
  Prefactor  = 0.0001
  norm       = 0.989559
  norm       = 6.43149
  norm       = 0.700911
  norm       = 0.0001
  Prefactor  = 49.7847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.92157
  Prefactor  = 1.04552
 **********
 **   18 **HESSE 
 **********

 FCN=   15830.40     FROM HESSE     STATUS=OK           143 CALLS     1018 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.576        .20972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9227        3.6670        .23758E-03   -1.5366    
   3  Prefactor     .10000E-03    4.2416        .20973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .98956        2.1870        .25359E-03   -1.5509    
   5  norm          6.4315        6.8838        .15932E-03   -1.5201    
   6  norm          .70091        3.8072        .24161E-02   -1.5541    
   7  norm          .10000E-03    24.643        .21182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     49.785        26.769        .56759E-04   -1.4296    
   9  Prefactor     .10000E-03    101.97        .18168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.0848        .20847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.6424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Normalizat    .92157        .25160        .61051E-03   -.95706    
  13  Prefactor     1.0455        .55937E-01    .13090E-03   -.91227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36363e-08
Minuit parameter uncertainties:
  1  3.86301e-05
  2  3.6673
  3  5.01179e-06
  4  2.18714
  5  6.88465
  6  3.26722
  7  5.48477e-05
  8  26.7751
  9  0.000361609
  10  2.81401e-05
  11  9.03185e-06
  12  0.251918
  13  0.0559403
Done.

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

Extracting fit parameters...

4FGL J0401.7+2112
   Spectrum: PowerLaw
267    Prefactor:  4.978e+01  2.678e+01  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:  1.046e+00  5.594e-02  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:  9.216e-01  2.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.51
Ra Dec: 60.450 21.201
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 8.82e-08 +/- 4.74e-08
Energy Flux (Fixed Index): 2.82e-05 +/- 1.51e-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) = 15830.3495354
delta logL = 0.0526793888748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15830.3412837
delta logL = 0.0609311200569

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15830.34     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      308 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.854        36.864        .53203E-04   -.86329E-04
   2  Index         2.2616        .45703        .90155E-02    .69081E-03
   3  Normalizat    .93383        .24697        .60686E-03    .17872E-04
   4  Prefactor     1.0439        .55808E-01    .13099E-03    .96162E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.8539
  Index      = 2.2616
  Normalizat = 0.933834
  Prefactor  = 1.04393
 **********
 **   18 **HESSE 
 **********

 FCN=   15830.34     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.854        35.777        .10641E-04   -1.4199    
   2  Index         2.2616        .44330        .18031E-02   -.57959    
   3  Normalizat    .93383        .24687        .24275E-04   -.95281    
   4  Prefactor     1.0439        .55802E-01    .52397E-05   -.91279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38483e-11
Minuit parameter uncertainties:
  1  35.7905
  2  0.444137
  3  0.247166
  4  0.0558047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158710': 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) = 15830.3412831
delta logL = 0.0609317502349

Extracting fit parameters...

4FGL J0401.7+2112
   Spectrum: PowerLaw
267    Prefactor:  5.685e+01  3.579e+01  1.000e-04  1.000e+04 ( 1.000e-13)
268        Index:  2.262e+00  4.441e-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:  1.044e+00  5.580e-02  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:  9.338e-01  2.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.61
Ra Dec: 60.450 21.201
Photon Index (Free Index): 2.26 +/- 0.44
Photon Flux (Free Index): 7.90e-08 +/- 5.16e-08
Energy Flux (Free Index): 3.18e-05 +/- 2.14e-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/158710/cmap_HighResolution_650678401_650937601_4FGL_J0401.7+2112_daily_bin1587.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.82e-08', energy_flux2='3.18e-05', photon_flux_error='4.74e-08', dlogl='6.09e-02', energy_flux='2.82e-05', photon_flux2='7.90e-08', job_status='DONE', time_completed='2021-08-19 23:29:40.090279', photon_index_error2='0.44', photon_index2='2.26', ts='7.51', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.14e-05', EG='0.92', time_epoch_completed='1629440980.09', return_code='0', job_id='158710', GAL2='1.04', EG2='0.93', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='5.16e-08', ts2='7.61', photon_index='2.42' WHERE bin_id='1587' AND source_name='4FGL J0401.7+2112' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:29:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 158710: <4FGL_J0401.7+2112_daily_bin1587> in cluster <slac> Done

Job <4FGL_J0401.7+2112_daily_bin1587> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 23:15:16 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:15:18 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:15:18 2021
Terminated at Thu Aug 19 23:29:41 2021
Results reported at Thu Aug 19 23:29:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.7+2112_daily_bin1587 60.4496 21.2007 650678401 650937601 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 :                                   839.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             379.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            865 sec.

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

