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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1533
RA = 60.4867, Dec = -20.5804
tmin = 636681601, tmax = 636940801
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='165985', job_status='RUN', time_executed='2021-08-19 23:42:43.417986', time_epoch_executed='1629441763.42' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165985

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165985/ft1_4FGL_J0401.9-2034_daily_bin1533.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165985/ft2_4FGL_J0401.9-2034_daily_bin1533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165985/ft1_4FGL_J0401.9-2034_daily_bin1533.fits outfile=/scratch/kocevski/165985/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1533.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=636681601.0 tmax=636940801.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.63
user 4.88
sys 1.73

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/165985/ft2_4FGL_J0401.9-2034_daily_bin1533.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/165985/ft2_4FGL_J0401.9-2034_daily_bin1533.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/165985/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1533.fits evtable="EVENTS" outfile="/scratch/kocevski/165985/ft1_filtered_4FGL_J0401.9-2034_daily_bin1533.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 1.97
user 0.30
sys 1.65

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/165985/ft1_filtered_4FGL_J0401.9-2034_daily_bin1533.fits" evtable="EVENTS" scfile=/scratch/kocevski/165985/ft2_4FGL_J0401.9-2034_daily_bin1533.fits sctable="SC_DATA" outfile=/scratch/kocevski/165985/ltcube_636681601_636940801_4FGL_J0401.9-2034_daily_bin1533.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/165985/ft2_4FGL_J0401.9-2034_daily_bin1533.fits
.....................!
real 13.41
user 11.32
sys 2.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165985/ft1_filtered_4FGL_J0401.9-2034_daily_bin1533.fits evtable="EVENTS" scfile=/scratch/kocevski/165985/ft2_4FGL_J0401.9-2034_daily_bin1533.fits sctable="SC_DATA" expcube=/scratch/kocevski/165985/ltcube_636681601_636940801_4FGL_J0401.9-2034_daily_bin1533.fits outfile=/scratch/kocevski/165985/expmap_636681601_636940801_4FGL_J0401.9-2034_daily_bin1533.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/165985/ltcube_636681601_636940801_4FGL_J0401.9-2034_daily_bin1533.fits
.....................!
real 193.63
user 185.74
sys 7.58

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 146 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0401.9-2034 @ 60.4867 -20.5804

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/165985/ft1_filtered_4FGL_J0401.9-2034_daily_bin1533.fits scfile=/scratch/kocevski/165985/ft2_4FGL_J0401.9-2034_daily_bin1533.fits outfile=/scratch/kocevski/165985/cmap_636681601_636940801_4FGL_J0401.9-2034_daily_bin1533.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.4867 yref=-20.5804 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.00
user 0.38
sys 1.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165985/ft1_filtered_4FGL_J0401.9-2034_daily_bin1533.fits scfile=/scratch/kocevski/165985/ft2_4FGL_J0401.9-2034_daily_bin1533.fits outfile=/scratch/kocevski/165985/cmap_HighResolution_636681601_636940801_4FGL_J0401.9-2034_daily_bin1533.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.4867 yref=-20.5804 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 1.99
user 0.38
sys 1.60

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/165985/ft1_filtered_4FGL_J0401.9-2034_daily_bin1533.fits evtable="EVENTS" scfile=/scratch/kocevski/165985/ft2_4FGL_J0401.9-2034_daily_bin1533.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/165985/Model_4FGL_J0401.9-2034_daily_bin1533.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/165985/ft1_filtered_4FGL_J0401.9-2034_daily_bin1533.fits.....................!
real 103.89
user 100.30
sys 3.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/165985/ft1_filtered_4FGL_J0401.9-2034_daily_bin1533.fits', '/scratch/kocevski/165985/ft2_4FGL_J0401.9-2034_daily_bin1533.fits', expMap='/scratch/kocevski/165985/expmap_636681601_636940801_4FGL_J0401.9-2034_daily_bin1533.fits', expCube='/scratch/kocevski/165985/ltcube_636681601_636940801_4FGL_J0401.9-2034_daily_bin1533.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/165985/Model_4FGL_J0401.9-2034_daily_bin1533.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0401.9-2034'

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.016e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/165985/ft1_filtered_4FGL_J0401.9-2034_daily_bin1533.fits
Spacecraft file(s): /scratch/kocevski/165985/ft2_4FGL_J0401.9-2034_daily_bin1533.fits
Exposure map: /scratch/kocevski/165985/expmap_636681601_636940801_4FGL_J0401.9-2034_daily_bin1533.fits
Exposure cube: /scratch/kocevski/165985/ltcube_636681601_636940801_4FGL_J0401.9-2034_daily_bin1533.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/165985/Model_4FGL_J0401.9-2034_daily_bin1533.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) = 4333.73041041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42183E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3763       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9816       1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.471       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10674E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.3235       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.745       1.0000         .10000E-03   10000.    
    12 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.795       1.0000         .10000E-03   10000.    
    15 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.834       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.838       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11327E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    98.947       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7693       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.406       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86099       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0065       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4333.678     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2804 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    489.72       -.23211E-03** at limit **
   2  Prefactor     5.3804        7.2169        .72486E-05    .23390E-03
   3  Prefactor     5.0831        51.454       -.55173E-04   -.22313E-04
   4  Prefactor     46.480        34.137       -.19715E-05    .47488E-04
   5  Prefactor     .10000E-03    32.725       -.94663E-05** at limit **
   6  Prefactor     .10000E-03    30.283        .19817E-04** at limit **
   7  Prefactor     .10000E-03    1.7723        .64399E-07** at limit **
   8  Prefactor     .10000E-03    3.6354       -.16731E-06** at limit **
   9  Prefactor     .10000E-03    2.0933       -.65749E-08** at limit **
  10  norm          8.3237        2.1264       -.24813E-06    .33054E-03
  11  Prefactor     25.769        43.655        .35122E-05    .65251E-04
  12  norm          .10000E-03    .68910       -.16705E-06** at limit **
  13  Prefactor     .10000E-03    28.517       -.10063E-04** at limit **
  14  Prefactor     25.791        6.5289        .27950E-05    .26573E-03
  15  norm          .10000E-03    7.4212       -.23201E-06** at limit **
  16  Prefactor     21.810        24.396        .36105E-05    .18747E-04
  17  Prefactor     21.829        14.629       -.53590E-05    .65348E-04
  18  Prefactor     .10000E-03    1.9495       -.49692E-07** at limit **
  19  Prefactor     .10029E-03    20.683       -.34910E-05** at limit **
  20  Prefactor     98.948        48.427        .24423E-05    .45883E-04
  21  Prefactor     3.7686        10.394       -.40068E-05   -.10455E-03
  22  Prefactor     20.396        64.028       -.43463E-05    .57468E-04
  23  Normalizat    .86085        .26211        .59604E-05    .24396E-03
  24  Prefactor     1.0067        .20550       -.36012E-07    .43028E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 5.38043
  Prefactor  = 5.08305
  Prefactor  = 46.4805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.32374
  Prefactor  = 25.7685
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.791
  norm       = 0.0001
  Prefactor  = 21.8098
  Prefactor  = 21.8293
  Prefactor  = 0.0001
  Prefactor  = 0.000100286
  Prefactor  = 98.9484
  Prefactor  = 3.76859
  Prefactor  = 20.3959
  Normalizat = 0.860852
  Prefactor  = 1.00666
 **********
 **   18 **HESSE 
 **********

 FCN=   4333.678     FROM HESSE     STATUS=OK           391 CALLS     3195 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    485.83        .19428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.3804        7.1568        .17100E-03   -1.5244    
   3  Prefactor     5.0831        51.104        .18018E-03   -1.5257    
   4  Prefactor     46.480        34.138        .58817E-04   -1.4343    
   5  Prefactor     .10000E-03    32.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8166        .17104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.6684        .12247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1056        .92987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.3237        2.1334        .45743E-04   -1.5131    
  11  Prefactor     25.769        43.630        .78951E-04   -1.4692    
  12  norm          .10000E-03    .70573        .10666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.791        6.5311        .39437E-03   -1.4692    
  15  norm          .10000E-03    7.4257        .17516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.810        24.395        .85720E-04   -1.4774    
  17  Prefactor     21.829        14.639        .85713E-04   -1.4773    
  18  Prefactor     .10000E-03    1.9582        .89749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10029E-03    128.78        .56605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     98.948        48.419        .40413E-04   -1.3715    
  21  Prefactor     3.7686        10.396        .20794E-03   -1.5320    
  22  Prefactor     20.396        63.463        .88666E-04   -1.4804    
  23  Normalizat    .86085        .29551        .32832E-03   -.97850    
  24  Prefactor     1.0067        .23360        .25142E-03   -.92508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66078e-09
Minuit parameter uncertainties:
  1  0.00303856
  2  7.15791
  3  32.2699
  4  34.1528
  5  1.41848e-05
  6  7.20986e-05
  7  1.14188e-05
  8  1.35604e-05
  9  7.16864e-06
  10  2.13345
  11  43.6837
  12  7.89943e-06
  13  6.53884e-05
  14  6.53129
  15  1.76577e-05
  16  24.4057
  17  14.641
  18  1.41657e-05
  19  0.0121667
  20  48.4386
  21  10.4014
  22  63.6737
  23  0.296066
  24  0.233832
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  2.579e+01  6.531e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  1.007e+00  2.338e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  8.609e-01  2.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 50.57
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.38e-07 +/- 8.56e-08
Energy Flux (Fixed Index): 1.26e-04 +/- 3.20e-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) = 4332.57718107
delta logL = 1.10126753266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4332.3047211
delta logL = 1.37372751132

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4332.305     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      222 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.759        9.5980        .17776E-02   -.10295E-03
   2  Index         1.9479        .23074        .72522E-01    .29688E-04
   3  Normalizat    .93563        .24566        .71578E-01    .18498E-04
   4  Prefactor     .96724        .20017        .45856E-01    .15156E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.7595
  Index      = 1.94795
  Normalizat = 0.935631
  Prefactor  = 0.967239
 **********
 **   18 **HESSE 
 **********

 FCN=   4332.305     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .35E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.759        8.4388        .35551E-03   -1.4580    
   2  Index         1.9479        .20720        .31363E-02   -.65658    
   3  Normalizat    .93563        .27956        .31671E-03   -.95219    
   4  Prefactor     .96724        .22810        .25576E-03   -.93830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5475e-13
Minuit parameter uncertainties:
  1  8.43911
  2  0.207298
  3  0.279994
  4  0.228325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165985': 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) = 4332.30472027
delta logL = 1.37372833331

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  3.176e+01  8.439e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  1.948e+00  2.073e-01  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  9.672e-01  2.283e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  9.356e-01  2.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 52.91
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 1.95 +/- 0.21
Photon Flux (Free Index): 2.57e-07 +/- 8.24e-08
Energy Flux (Free Index): 2.03e-04 +/- 8.89e-05

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/165985/cmap_HighResolution_636681601_636940801_4FGL_J0401.9-2034_daily_bin1533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.38e-07', energy_flux2='2.03e-04', photon_flux_error='8.56e-08', dlogl='1.37e+00', energy_flux='1.26e-04', photon_flux2='2.57e-07', job_status='DONE', time_completed='2021-08-19 23:52:25.659318', photon_index_error2='0.21', photon_index2='1.95', ts='50.57', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='8.89e-05', EG='0.86', time_epoch_completed='1629442345.66', return_code='0', job_id='165985', GAL2='0.97', EG2='0.94', return_code2='0', energy_flux_error='3.20e-05', photon_flux_error2='8.24e-08', ts2='52.91', photon_index='2.31' WHERE bin_id='1533' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:52:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 165985: <4FGL_J0401.9-2034_daily_bin1533> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1533> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 23:40:33 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:40:34 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:40:34 2021
Terminated at Thu Aug 19 23:52:26 2021
Results reported at Thu Aug 19 23:52:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1533 60.4867 -20.5804 636681601 636940801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0401.9-2034 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   594.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            713 sec.

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

