/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 23 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 = 7659
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0401.7+2112_daily_bin6
RA = 60.4496, Dec = 21.2007
tmin = 240883201, tmax = 241142401
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='146054', job_status='RUN', time_executed='2021-08-19 22:32:20.467887', time_epoch_executed='1629437540.47' WHERE source_name='4FGL J0401.7+2112' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/146054

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/146054/ft1_4FGL_J0401.7+2112_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/146054/ft2_4FGL_J0401.7+2112_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/146054/ft1_4FGL_J0401.7+2112_daily_bin6.fits outfile=/scratch/kocevski/146054/ft1_filteredMKT_4FGL_J0401.7+2112_daily_bin6.fits ra=60.4496 dec=21.2007 rad=12.0 tmin=240883201.0 tmax=241142401.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.61
user 1.29
sys 5.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/146054/ft1_filtered_4FGL_J0401.7+2112_daily_bin6.fits" evtable="EVENTS" scfile=/scratch/kocevski/146054/ft2_4FGL_J0401.7+2112_daily_bin6.fits sctable="SC_DATA" outfile=/scratch/kocevski/146054/ltcube_240883201_241142401_4FGL_J0401.7+2112_daily_bin6.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/146054/ft2_4FGL_J0401.7+2112_daily_bin6.fits
.....................!
real 17.68
user 12.21
sys 5.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/146054/ft1_filtered_4FGL_J0401.7+2112_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/146054/ft2_4FGL_J0401.7+2112_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/146054/ltcube_240883201_241142401_4FGL_J0401.7+2112_daily_bin6.fits outfile=/scratch/kocevski/146054/expmap_240883201_241142401_4FGL_J0401.7+2112_daily_bin6.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/146054/ltcube_240883201_241142401_4FGL_J0401.7+2112_daily_bin6.fits
.....................!
real 197.54
user 185.39
sys 11.78

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/146054/ft1_filtered_4FGL_J0401.7+2112_daily_bin6.fits scfile=/scratch/kocevski/146054/ft2_4FGL_J0401.7+2112_daily_bin6.fits outfile=/scratch/kocevski/146054/cmap_240883201_241142401_4FGL_J0401.7+2112_daily_bin6.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 5.52
user 0.36
sys 5.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/146054/ft1_filtered_4FGL_J0401.7+2112_daily_bin6.fits scfile=/scratch/kocevski/146054/ft2_4FGL_J0401.7+2112_daily_bin6.fits outfile=/scratch/kocevski/146054/cmap_HighResolution_240883201_241142401_4FGL_J0401.7+2112_daily_bin6.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 5.51
user 0.39
sys 5.10

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/146054/ft1_filtered_4FGL_J0401.7+2112_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/146054/ft2_4FGL_J0401.7+2112_daily_bin6.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/146054/Model_4FGL_J0401.7+2112_daily_bin6.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/146054/ft1_filtered_4FGL_J0401.7+2112_daily_bin6.fits.....................!
real 217.72
user 209.51
sys 7.80

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .60710E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5567       1.0000         .10000E-03   10000.    
     4 'norm      '    .45088       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.159       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.719       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Normalizat'    1.5245       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .81244       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.

 FCN=   13557.59     FROM MIGRAD    STATUS=CONVERGED    234 CALLS      964 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    46.552        .90712E-02** at limit **
   2  Prefactor     .10000E-03    2.7479        .94611E-01** at limit **
   3  Prefactor     5.5563        5.8218        .42608E-02   -.30763E-02
   4  norm          .44948        1.5287        .37997E-01    .21468E-02
   5  norm          .10000E-03    3.6262        .90712E-02** at limit **
   6  norm          .10000E-03    3.3401        .90712E-02** at limit **
   7  norm          .10004E-03    45.722        .90712E-02** at limit **
   8  Prefactor     11.160        21.297        .29983E-02   -.36487E-03
   9  Prefactor     36.719        27.863        .16535E-02   -.20060E-03
  10  Prefactor     .10000E-03    6.4519        .90712E-02** at limit **
  11  norm          .10000E-03    16.535        .90712E-02** at limit **
  12  Normalizat    1.5246        .23102        .10312        .41785E-04
  13  Prefactor     .81242        .48842E-01    .29864E-01    .10290E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100033
  Prefactor  = 0.0001
  Prefactor  = 5.55626
  norm       = 0.449479
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100036
  Prefactor  = 11.1605
  Prefactor  = 36.719
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.52457
  Prefactor  = 0.812417
 **********
 **   18 **HESSE 
 **********

 FCN=   13557.59     FROM HESSE     STATUS=OK           143 CALLS     1107 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    46.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.304        .35324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5563        5.8246        .85217E-03   -1.5236    
   4  norm          .44948        2.3462        .23302E-02   -1.5574    
   5  norm          .10000E-03    3.6306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.3759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10004E-03    45.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.160        21.312        .11993E-03   -1.5040    
   9  Prefactor     36.719        27.865        .66139E-04   -1.4495    
  10  Prefactor     .10000E-03    6.4905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    16.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Normalizat    1.5246        .25303        .45690E-03   -.77090    
  13  Prefactor     .81242        .54136E-01    .13196E-03   -.99272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11841e-08
Minuit parameter uncertainties:
  1  0.00249854
  2  2.67237e-05
  3  5.8252
  4  2.05373
  5  2.82309e-06
  6  2.3882e-06
  7  0.00257119
  8  21.3268
  9  27.8745
  10  8.44598e-06
  11  4.50893e-05
  12  0.253243
  13  0.0541398
Done.

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

Extracting fit parameters...

4FGL J0401.7+2112
   Spectrum: PowerLaw
267    Prefactor:  1.116e+01  2.133e+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:  8.124e-01  5.414e-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:  1.525e+00  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.34
Ra Dec: 60.450 21.201
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/146054/likelihoodResults_240883201_241142401_4FGL_J0401.7+2112_daily_bin6.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) = 13557.5875099
delta logL = 0.00219519122038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13557.5868972
delta logL = 0.00280787977135

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.959       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3332       1.0000          .0000       10.000    
     3 'Normalizat'    1.5269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81220       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13557.59     FROM MIGRAD    STATUS=FAILED        87 CALLS      277 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.975        24.921        .11584E-03    .35068E-03
   2  Index         2.3275        1.2120        .64263E-02    .49335E-03
   3  Normalizat    1.5264        .24599        .45667E-03    .26134E-02
   4  Prefactor     .81219        .53866E-01    .13198E-03    .71778E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13557.59     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      348 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.975        24.921        .46785E-03   -1.5016    
   2  Index         2.3275        1.2120        .10258E-02   -.56393    
   3  Normalizat    1.5264        .24599        .28249E-03   -.77040    
   4  Prefactor     .81219        .53866E-01    .10507E-03   -.99280    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13557.59     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      376 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.976        24.502        .23168E-04    .81653E-04
   2  Index         2.3273        1.1917        .25705E-03   -.55726E-05
   3  Normalizat    1.5264        .24606        .91334E-04    .12896E-04
   4  Prefactor     .81219        .53883E-01    .26395E-04    .22914E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9757
  Index      = 2.32731
  Normalizat = 1.52635
  Prefactor  = 0.812192
 **********
 **   18 **HESSE 
 **********

 FCN=   13557.59     FROM HESSE     STATUS=OK            23 CALLS      399 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.976        24.500        .46336E-05   -1.5016    
   2  Index         2.3273        1.1922        .10282E-04   -.56396    
   3  Normalizat    1.5264        .24608        .18267E-04   -.77041    
   4  Prefactor     .81219        .53888E-01    .52790E-05   -.99280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28231e-11
Minuit parameter uncertainties:
  1  24.5209
  2  1.20858
  3  0.246275
  4  0.0538911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/146054': 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) = 13557.586874
delta logL = 0.00283106814459

Extracting fit parameters...

4FGL J0401.7+2112
   Spectrum: PowerLaw
267    Prefactor:  1.198e+01  2.452e+01  1.000e-04  1.000e+04 ( 1.000e-13)
268        Index:  2.327e+00  1.209e+00  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.122e-01  5.389e-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:  1.526e+00  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.34
Ra Dec: 60.450 21.201

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/146054/cmap_HighResolution_240883201_241142401_4FGL_J0401.7+2112_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.62e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-08-19 22:46:14.725608', job_id='146054', GAL2='0.81', fit_tolerance='1e-08', EG2='1.53', EG='1.52', time_epoch_completed='1629438374.73', return_code2='0', ts='0.34', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='2.83e-03', ts2='0.34', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='6' AND source_name='4FGL J0401.7+2112' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 22:46:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 146054: <4FGL_J0401.7+2112_daily_bin6> in cluster <slac> Done

Job <4FGL_J0401.7+2112_daily_bin6> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 19 22:30:26 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 22:30:28 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:30:28 2021
Terminated at Thu Aug 19 22:46:16 2021
Results reported at Thu Aug 19 22:46:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.7+2112_daily_bin6 60.4496 21.2007 240883201 241142401 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 :                                   913.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            950 sec.

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

