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


Performing analysis on: 4FGL_J0401.7+2112_daily_bin616
RA = 60.4496, Dec = 21.2007
tmin = 398995201, tmax = 399254401
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='151651', job_status='RUN', time_executed='2021-08-19 22:53:20.595199', time_epoch_executed='1629438800.6' WHERE source_name='4FGL J0401.7+2112' and cadence='daily' and bin_id='616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/151651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/151651/ft1_4FGL_J0401.7+2112_daily_bin616.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/151651/ft2_4FGL_J0401.7+2112_daily_bin616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/151651/ft1_4FGL_J0401.7+2112_daily_bin616.fits outfile=/scratch/kocevski/151651/ft1_filteredMKT_4FGL_J0401.7+2112_daily_bin616.fits ra=60.4496 dec=21.2007 rad=12.0 tmin=398995201.0 tmax=399254401.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 14.39
user 5.12
sys 9.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/151651/ft2_4FGL_J0401.7+2112_daily_bin616.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/151651/ft1_filteredMKT_4FGL_J0401.7+2112_daily_bin616.fits evtable="EVENTS" outfile="/scratch/kocevski/151651/ft1_filtered_4FGL_J0401.7+2112_daily_bin616.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 9.58
user 0.34
sys 9.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/151651/ft1_filtered_4FGL_J0401.7+2112_daily_bin616.fits" evtable="EVENTS" scfile=/scratch/kocevski/151651/ft2_4FGL_J0401.7+2112_daily_bin616.fits sctable="SC_DATA" outfile=/scratch/kocevski/151651/ltcube_398995201_399254401_4FGL_J0401.7+2112_daily_bin616.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/151651/ft2_4FGL_J0401.7+2112_daily_bin616.fits
.....................!
real 25.21
user 14.64
sys 10.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/151651/ft1_filtered_4FGL_J0401.7+2112_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/151651/ft2_4FGL_J0401.7+2112_daily_bin616.fits sctable="SC_DATA" expcube=/scratch/kocevski/151651/ltcube_398995201_399254401_4FGL_J0401.7+2112_daily_bin616.fits outfile=/scratch/kocevski/151651/expmap_398995201_399254401_4FGL_J0401.7+2112_daily_bin616.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/151651/ltcube_398995201_399254401_4FGL_J0401.7+2112_daily_bin616.fits
.....................!
real 203.12
user 186.33
sys 16.42

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/151651/ft1_filtered_4FGL_J0401.7+2112_daily_bin616.fits scfile=/scratch/kocevski/151651/ft2_4FGL_J0401.7+2112_daily_bin616.fits outfile=/scratch/kocevski/151651/cmap_398995201_399254401_4FGL_J0401.7+2112_daily_bin616.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 9.33
user 0.38
sys 8.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/151651/ft1_filtered_4FGL_J0401.7+2112_daily_bin616.fits scfile=/scratch/kocevski/151651/ft2_4FGL_J0401.7+2112_daily_bin616.fits outfile=/scratch/kocevski/151651/cmap_HighResolution_398995201_399254401_4FGL_J0401.7+2112_daily_bin616.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 9.37
user 0.38
sys 8.90

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/151651/ft1_filtered_4FGL_J0401.7+2112_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/151651/ft2_4FGL_J0401.7+2112_daily_bin616.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/151651/Model_4FGL_J0401.7+2112_daily_bin616.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/151651/ft1_filtered_4FGL_J0401.7+2112_daily_bin616.fits.....................!
real 185.45
user 171.89
sys 12.92

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0667       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .12681E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.7290       1.0000         .10000E-03   10000.    
     7 'norm      '    43.600       1.0000         .10000E-03   10000.    
     8 'Prefactor '    51.774       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.100       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Normalizat'    .71519       1.0000         .10000E-01   10.000    
    13 'Prefactor '    1.0030       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=   10826.29     FROM MIGRAD    STATUS=CONVERGED    239 CALLS     1085 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.249       -.58779E-06** at limit **
   2  Prefactor     3.0670        4.9865        .26136E-05    .48011E-04
   3  Prefactor     .10000E-03    4.7157       -.18530E-06** at limit **
   4  norm          .10000E-03    .92163       -.16789E-06** at limit **
   5  norm          .10000E-03    5.1083       -.15351E-06** at limit **
   6  norm          1.7292        1.7999        .23683E-06   -.15155E-02
   7  norm          43.584        68.677       -.20140E-04   -.16829E-04
   8  Prefactor     51.777        30.754        .21430E-05    .10876E-04
   9  Prefactor     .10000E-03    26.070       -.15369E-06** at limit **
  10  Prefactor     14.101        12.597       -.41114E-06   -.16588E-04
  11  norm          .10000E-03    5.8721        .31413E-06** at limit **
  12  Normalizat    .71498        .28115        .24265E-05    .26986E-04
  13  Prefactor     1.0030        .61395E-01   -.18904E-06    .64364E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.067
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.72923
  norm       = 43.5835
  Prefactor  = 51.7774
  Prefactor  = 0.0001
  Prefactor  = 14.1013
  norm       = 0.0001
  Normalizat = 0.714981
  Prefactor  = 1.00299
 **********
 **   18 **HESSE 
 **********

 FCN=   10826.29     FROM HESSE     STATUS=OK           143 CALLS     1228 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0670        4.9557        .23164E-03   -1.5358    
   3  Prefactor     .10000E-03    4.7171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.822        .18906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.1154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7292        5.9344        .15965E-02   -1.5445    
   7  norm          43.584        68.622        .60715E-04   -1.4387    
   8  Prefactor     51.777        30.696        .55738E-04   -1.4268    
   9  Prefactor     .10000E-03    26.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.101        12.576        .10667E-03   -1.4957    
  11  norm          .10000E-03    5.8849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Normalizat    .71498        .27883        .64126E-03   -1.0330    
  13  Prefactor     1.0030        .62395E-01    .12487E-03   -.92630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59993e-09
Minuit parameter uncertainties:
  1  3.32373e-05
  2  4.95631
  3  3.10929e-06
  4  0.000136855
  5  4.41766e-07
  6  5.93641
  7  68.7471
  8  30.7053
  9  8.94634e-06
  10  12.5783
  11  1.5861e-07
  12  0.279389
  13  0.0623996
Done.

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

Extracting fit parameters...

4FGL J0401.7+2112
   Spectrum: PowerLaw
267    Prefactor:  5.178e+01  3.071e+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.003e+00  6.240e-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:  7.150e-01  2.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.25
Ra Dec: 60.450 21.201
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 9.17e-08 +/- 5.44e-08
Energy Flux (Fixed Index): 2.93e-05 +/- 1.74e-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) = 10825.9276908
delta logL = 0.364082589385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10825.927204
delta logL = 0.364569395848

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.710       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0461       1.0000          .0000       10.000    
     3 'Normalizat'    .73897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99991       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=   10825.93     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      310 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.765        43.903        .23869E-03   -.79730E-04
   2  Index         2.0469        .41323        .75048E-02    .36647E-04
   3  Normalizat    .73902        .27274        .63144E-03    .14043E-05
   4  Prefactor     .99987        .62270E-01    .12503E-03   -.74924E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.7653
  Index      = 2.04691
  Normalizat = 0.739022
  Prefactor  = 0.999871
 **********
 **   18 **HESSE 
 **********

 FCN=   10825.93     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.765        43.445        .95478E-05   -1.4024    
   2  Index         2.0469        .40880        .30019E-03   -.63182    
   3  Normalizat    .73902        .27271        .25257E-04   -1.0237    
   4  Prefactor     .99987        .62269E-01    .50012E-05   -.92734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35162e-11
Minuit parameter uncertainties:
  1  43.4646
  2  0.409508
  3  0.273214
  4  0.062274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/151651': 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) = 10825.9272001
delta logL = 0.364573280256

Extracting fit parameters...

4FGL J0401.7+2112
   Spectrum: PowerLaw
267    Prefactor:  7.077e+01  4.346e+01  1.000e-04  1.000e+04 ( 1.000e-13)
268        Index:  2.047e+00  4.095e-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:  9.999e-01  6.227e-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:  7.390e-01  2.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.96
Ra Dec: 60.450 21.201
Photon Index (Free Index): 2.05 +/- 0.41
Photon Flux (Free Index): 7.25e-08 +/- 5.05e-08
Energy Flux (Free Index): 4.48e-05 +/- 3.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/151651/cmap_HighResolution_398995201_399254401_4FGL_J0401.7+2112_daily_bin616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.17e-08', energy_flux2='4.48e-05', photon_flux_error='5.44e-08', dlogl='3.65e-01', energy_flux='2.93e-05', photon_flux2='7.25e-08', job_status='DONE', time_completed='2021-08-19 23:06:36.250232', photon_index_error2='0.41', photon_index2='2.05', ts='6.25', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='3.69e-05', EG='0.71', time_epoch_completed='1629439596.25', return_code='0', job_id='151651', GAL2='1.00', EG2='0.74', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='5.05e-08', ts2='6.96', photon_index='2.42' WHERE bin_id='616' AND source_name='4FGL J0401.7+2112' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:06:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 151651: <4FGL_J0401.7+2112_daily_bin616> in cluster <slac> Done

Job <4FGL_J0401.7+2112_daily_bin616> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Aug 19 22:50:25 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 22:50:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 22:50:26 2021
Terminated at Thu Aug 19 23:06:38 2021
Results reported at Thu Aug 19 23:06:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.7+2112_daily_bin616 60.4496 21.2007 398995201 399254401 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 :                                   932.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

