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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1231
RA = 60.4867, Dec = -20.5804
tmin = 558403201, tmax = 558662401
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='164472', job_status='RUN', time_executed='2021-08-19 23:36:24.579196', time_epoch_executed='1629441384.58' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1231'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164472

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164472/ft1_4FGL_J0401.9-2034_daily_bin1231.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164472/ft2_4FGL_J0401.9-2034_daily_bin1231.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164472/ft1_4FGL_J0401.9-2034_daily_bin1231.fits outfile=/scratch/kocevski/164472/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1231.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=558403201.0 tmax=558662401.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 4.48
user 3.50
sys 0.97

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164472/ft2_4FGL_J0401.9-2034_daily_bin1231.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/164472/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1231.fits evtable="EVENTS" outfile="/scratch/kocevski/164472/ft1_filtered_4FGL_J0401.9-2034_daily_bin1231.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.25
user 0.32
sys 0.89

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164472/ft1_filtered_4FGL_J0401.9-2034_daily_bin1231.fits" evtable="EVENTS" scfile=/scratch/kocevski/164472/ft2_4FGL_J0401.9-2034_daily_bin1231.fits sctable="SC_DATA" outfile=/scratch/kocevski/164472/ltcube_558403201_558662401_4FGL_J0401.9-2034_daily_bin1231.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/164472/ft2_4FGL_J0401.9-2034_daily_bin1231.fits
.....................!
real 12.49
user 11.30
sys 1.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164472/ft1_filtered_4FGL_J0401.9-2034_daily_bin1231.fits evtable="EVENTS" scfile=/scratch/kocevski/164472/ft2_4FGL_J0401.9-2034_daily_bin1231.fits sctable="SC_DATA" expcube=/scratch/kocevski/164472/ltcube_558403201_558662401_4FGL_J0401.9-2034_daily_bin1231.fits outfile=/scratch/kocevski/164472/expmap_558403201_558662401_4FGL_J0401.9-2034_daily_bin1231.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/164472/ltcube_558403201_558662401_4FGL_J0401.9-2034_daily_bin1231.fits
.....................!
real 191.56
user 186.00
sys 5.25

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/164472/ft1_filtered_4FGL_J0401.9-2034_daily_bin1231.fits scfile=/scratch/kocevski/164472/ft2_4FGL_J0401.9-2034_daily_bin1231.fits outfile=/scratch/kocevski/164472/cmap_558403201_558662401_4FGL_J0401.9-2034_daily_bin1231.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 1.30
user 0.37
sys 0.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164472/ft1_filtered_4FGL_J0401.9-2034_daily_bin1231.fits scfile=/scratch/kocevski/164472/ft2_4FGL_J0401.9-2034_daily_bin1231.fits outfile=/scratch/kocevski/164472/cmap_HighResolution_558403201_558662401_4FGL_J0401.9-2034_daily_bin1231.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.27
user 0.37
sys 0.90

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164472/ft1_filtered_4FGL_J0401.9-2034_daily_bin1231.fits evtable="EVENTS" scfile=/scratch/kocevski/164472/ft2_4FGL_J0401.9-2034_daily_bin1231.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164472/Model_4FGL_J0401.9-2034_daily_bin1231.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/164472/ft1_filtered_4FGL_J0401.9-2034_daily_bin1231.fits.....................!
real 122.19
user 119.71
sys 2.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164472/ft1_filtered_4FGL_J0401.9-2034_daily_bin1231.fits', '/scratch/kocevski/164472/ft2_4FGL_J0401.9-2034_daily_bin1231.fits', expMap='/scratch/kocevski/164472/expmap_558403201_558662401_4FGL_J0401.9-2034_daily_bin1231.fits', expCube='/scratch/kocevski/164472/ltcube_558403201_558662401_4FGL_J0401.9-2034_daily_bin1231.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164472/Model_4FGL_J0401.9-2034_daily_bin1231.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/164472/ft1_filtered_4FGL_J0401.9-2034_daily_bin1231.fits
Spacecraft file(s): /scratch/kocevski/164472/ft2_4FGL_J0401.9-2034_daily_bin1231.fits
Exposure map: /scratch/kocevski/164472/expmap_558403201_558662401_4FGL_J0401.9-2034_daily_bin1231.fits
Exposure cube: /scratch/kocevski/164472/ltcube_558403201_558662401_4FGL_J0401.9-2034_daily_bin1231.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164472/Model_4FGL_J0401.9-2034_daily_bin1231.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) = 5213.62580494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4722       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2281       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    21.576       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .53185       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.659       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .83164E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3480       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.967       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.5372       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3011       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93918       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1840       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5213.623     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     2788 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    91.303       -.39180E-04** at limit **
   2  Prefactor     .10000E-03    1.4513        .48371E-07** at limit **
   3  Prefactor     .10000E-03    13.986        .40765E-05** at limit **
   4  Prefactor     2.4741        1.0837       -.10824E-05    .50239E-04
   5  Prefactor     .10001E-03    32.858       -.25782E-04** at limit **
   6  Prefactor     .10002E-03    46.361        .51988E-04** at limit **
   7  Prefactor     2.2278        2.3391        .11051E-06    .15221E-03
   8  Prefactor     .10000E-03    2.4725        .51281E-06** at limit **
   9  Prefactor     .10000E-03    1.4283        .28856E-06** at limit **
  10  norm          21.577        2.9918       -.93048E-08   -.73801E-04
  11  Prefactor     .10000E-03    7.5255       -.96385E-07** at limit **
  12  norm          .53259        1.7501       -.49397E-06   -.44379E-04
  13  Prefactor     .10000E-03    10.867       -.10400E-04** at limit **
  14  Prefactor     .10000E-03    1.9608        .14366E-06** at limit **
  15  norm          .10000E-03    9.8773        .62074E-05** at limit **
  16  Prefactor     11.655        1.6016       -.18521E-05    .76866E-03
  17  Prefactor     .10023E-03    11.705       -.30689E-04** at limit **
  18  Prefactor     6.3483        4.7650       -.10201E-05   -.49971E-04
  19  Prefactor     20.974        1.2481        .43228E-06   -.80297E-04
  20  Prefactor     9.5092        6.3651       -.94249E-05    .22032E-02
  21  Prefactor     .10000E-03    2.9286        .10060E-05** at limit **
  22  Prefactor     3.2935        3.1007       -.82011E-05    .97123E-03
  23  Normalizat    .93865        .26367        .48255E-06   -.24894E-05
  24  Prefactor     1.1843        .21167        .90686E-06    .86455E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100203
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.47412
  Prefactor  = 0.000100007
  Prefactor  = 0.000100015
  Prefactor  = 2.2278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.5768
  Prefactor  = 0.0001
  norm       = 0.532592
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.6555
  Prefactor  = 0.000100225
  Prefactor  = 6.34832
  Prefactor  = 20.974
  Prefactor  = 9.50924
  Prefactor  = 0.0001
  Prefactor  = 3.29353
  Normalizat = 0.938646
  Prefactor  = 1.18431
 **********
 **   18 **HESSE 
 **********

 FCN=   5213.623     FROM HESSE     STATUS=OK           449 CALLS     3237 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10020E-03    94.543        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.4504        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.937        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4741        26.135        .65013E-02   -1.5393    
   5  Prefactor     .10001E-03    39.911        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    50.609        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2278        2.3618        .68858E-02   -1.5409    
   8  Prefactor     .10000E-03    2.4630        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.4274        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          21.577        3.0205        .21558E-02   -1.4779    
  11  Prefactor     .10000E-03    7.5237        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .53259        1.7792        .11400E-01   -1.5562    
  13  Prefactor     .10000E-03    10.851        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.9380        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.8648        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.655        48.848        .29331E-02   -1.5025    
  17  Prefactor     .10023E-03    8.3355        .65053E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.3483        4.7703        .39828E-02   -1.5204    
  19  Prefactor     20.974        21.932        .21868E-02   -1.4792    
  20  Prefactor     9.5092        29.778        .32441E-02   -1.5091    
  21  Prefactor     .10000E-03    2.9237        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.2935        296.24        .55707E-02   -1.5345    
  23  Normalizat    .93865        .23715        .72054E-01   -.95115    
  24  Prefactor     1.1843        .18190        .53098E-01   -.86815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8644e-07
Minuit parameter uncertainties:
  1  0.00876871
  2  6.47243e-06
  3  3.14794e-05
  4  16.0912
  5  0.0010618
  6  0.00175387
  7  2.36189
  8  1.50263e-05
  9  4.69413e-06
  10  3.02056
  11  2.93252e-05
  12  1.77941
  13  0.000113158
  14  1.41555e-05
  15  3.20171e-05
  16  47.7885
  17  0.00274
  18  4.77059
  19  21.9399
  20  29.8248
  21  3.21115e-05
  22  62.7934
  23  0.237411
  24  0.181994
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  1.416e-05  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.184e+00  1.820e-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.386e-01  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 60.487 -20.580
Photon Flux Upper Limit: 9.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164472/likelihoodResults_558403201_558662401_4FGL_J0401.9-2034_daily_bin1231.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) = 5213.62578663
delta logL = -0.00241868902776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5213.62336807
delta logL = -1.2352847989e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5213.623     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      233 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3142        .98010E-03** at limit **
   2  Index         2.5254        7.3934        .97033E-01    .63268E-07
   3  Normalizat    .93865        .25546        .31882E-03   -.47961E-04
   4  Prefactor     1.1843        .20992        .23475E-03   -.79433E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.52536
  Normalizat = 0.938646
  Prefactor  = 1.18431
 **********
 **   18 **HESSE 
 **********

 FCN=   5213.623     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9813        .19602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5254        8.4795        .38813E-02   -.51775    
   3  Normalizat    .93865        .25566        .12753E-04   -.95115    
   4  Prefactor     1.1843        .21009        .46950E-04   -.86815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20026e-11
Minuit parameter uncertainties:
  1  4.15441e-06
  2  320.497
  3  0.255993
  4  0.210234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164472': 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) = 5213.62336769
delta logL = 2.51335222856e-07

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  4.154e-06  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.525e+00  3.205e+02  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:  1.184e+00  2.102e-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.386e-01  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 60.487 -20.580

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/164472/cmap_HighResolution_558403201_558662401_4FGL_J0401.9-2034_daily_bin1231.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', job_status='DONE', photon_flux_upper_limit='9.45e-08', time_completed='2021-08-19 23:47:21.980968', job_id='164472', GAL2='1.18', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1629442041.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='2.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1231' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:47:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 164472: <4FGL_J0401.9-2034_daily_bin1231> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1231> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 23:35:32 2021
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:35:35 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:35:35 2021
Terminated at Thu Aug 19 23:47:22 2021
Results reported at Thu Aug 19 23:47:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1231 60.4867 -20.5804 558403201 558662401 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 :                                   660.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            710 sec.

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

