/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 1 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7379
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1361
RA = 60.4867, Dec = -20.5804
tmin = 592099201, tmax = 592358401
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='164663', job_status='RUN', time_executed='2021-08-19 23:36:57.768895', time_epoch_executed='1629441417.77' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164663

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164663/ft1_4FGL_J0401.9-2034_daily_bin1361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164663/ft2_4FGL_J0401.9-2034_daily_bin1361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164663/ft1_4FGL_J0401.9-2034_daily_bin1361.fits outfile=/scratch/kocevski/164663/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1361.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=592099201.0 tmax=592358401.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 7.38
user 3.24
sys 4.09

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164663/ft1_filtered_4FGL_J0401.9-2034_daily_bin1361.fits" evtable="EVENTS" scfile=/scratch/kocevski/164663/ft2_4FGL_J0401.9-2034_daily_bin1361.fits sctable="SC_DATA" outfile=/scratch/kocevski/164663/ltcube_592099201_592358401_4FGL_J0401.9-2034_daily_bin1361.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/164663/ft2_4FGL_J0401.9-2034_daily_bin1361.fits
.....................!
real 16.41
user 11.63
sys 4.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164663/ft1_filtered_4FGL_J0401.9-2034_daily_bin1361.fits evtable="EVENTS" scfile=/scratch/kocevski/164663/ft2_4FGL_J0401.9-2034_daily_bin1361.fits sctable="SC_DATA" expcube=/scratch/kocevski/164663/ltcube_592099201_592358401_4FGL_J0401.9-2034_daily_bin1361.fits outfile=/scratch/kocevski/164663/expmap_592099201_592358401_4FGL_J0401.9-2034_daily_bin1361.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/164663/ltcube_592099201_592358401_4FGL_J0401.9-2034_daily_bin1361.fits
.....................!
real 198.15
user 187.21
sys 10.60

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/164663/ft1_filtered_4FGL_J0401.9-2034_daily_bin1361.fits scfile=/scratch/kocevski/164663/ft2_4FGL_J0401.9-2034_daily_bin1361.fits outfile=/scratch/kocevski/164663/cmap_592099201_592358401_4FGL_J0401.9-2034_daily_bin1361.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 4.34
user 0.37
sys 3.95

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164663/ft1_filtered_4FGL_J0401.9-2034_daily_bin1361.fits scfile=/scratch/kocevski/164663/ft2_4FGL_J0401.9-2034_daily_bin1361.fits outfile=/scratch/kocevski/164663/cmap_HighResolution_592099201_592358401_4FGL_J0401.9-2034_daily_bin1361.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 4.37
user 0.37
sys 3.98

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164663/ft1_filtered_4FGL_J0401.9-2034_daily_bin1361.fits evtable="EVENTS" scfile=/scratch/kocevski/164663/ft2_4FGL_J0401.9-2034_daily_bin1361.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164663/Model_4FGL_J0401.9-2034_daily_bin1361.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/164663/ft1_filtered_4FGL_J0401.9-2034_daily_bin1361.fits.....................!
real 166.99
user 160.33
sys 6.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.757       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.302       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8078       1.0000         .10000E-03   10000.    
    10 'norm      '    11.284       1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.295       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0724       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10643E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.129       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2892       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    73.328       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2154       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71494       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=   7017.367     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2699 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    119.07        .37006E-06** at limit **
   2  Prefactor     .10000E-03    2.5179        .20724E-07** at limit **
   3  Prefactor     .10000E-03    12.512        .51134E-07** at limit **
   4  Prefactor     .10000E-03    3.5322        .17442E-08** at limit **
   5  Prefactor     35.758        35.996        .29983E-06    .86350E-05
   6  Prefactor     16.293        37.912       -.66337E-05   -.78689E-04
   7  Prefactor     .10000E-03    .92383        .92520E-08** at limit **
   8  Prefactor     .10000E-03    .88868        .19408E-08** at limit **
   9  Prefactor     5.8081        3.3318        .80379E-08   -.31478E-04
  10  norm          11.285        1.6399       -.22045E-08    .21759E-05
  11  Prefactor     43.304        25.397        .83014E-06    .46436E-04
  12  norm          1.0724        1.0678        .23795E-07   -.60933E-04
  13  Prefactor     .10000E-03    30.047       -.16298E-06** at limit **
  14  Prefactor     .10000E-03    1.1459        .16444E-08** at limit **
  15  norm          11.129        13.154       -.96221E-07   -.12823E-04
  16  Prefactor     .10000E-03    25.212        .60524E-07** at limit **
  17  Prefactor     7.2899        4.4721        .47217E-06   -.11826E-02
  18  Prefactor     .10000E-03    1.8830       -.28017E-08** at limit **
  19  Prefactor     .10000E-03    5.6793        .78009E-08** at limit **
  20  Prefactor     .10000E-03    8.4495       -.53822E-09** at limit **
  21  Prefactor     .10000E-03    3.9093        .65581E-08** at limit **
  22  Prefactor     73.327        45.427       -.32393E-06   -.12359E-04
  23  Normalizat    1.2153        .16994       -.21240E-06    .15856E-04
  24  Prefactor     .71506        .13949        .35560E-06   -.23039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.7579
  Prefactor  = 16.2931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.80809
  norm       = 11.2845
  Prefactor  = 43.3045
  norm       = 1.0724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.1289
  Prefactor  = 0.0001
  Prefactor  = 7.28994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.3274
  Normalizat = 1.21528
  Prefactor  = 0.715056
 **********
 **   18 **HESSE 
 **********

 FCN=   7017.367     FROM HESSE     STATUS=OK           389 CALLS     3088 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    119.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.5523        .12979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5350        .15376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.758        36.011        .67019E-04   -1.4511    
   6  Prefactor     16.293        38.746        .99198E-04   -1.4900    
   7  Prefactor     .10000E-03    .93973        .78492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .89039        .77088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.8081        3.3300        .11086E-03   -1.5226    
  10  norm          11.285        1.6459        .38891E-04   -1.5036    
  11  Prefactor     43.304        25.481        .60927E-04   -1.4391    
  12  norm          1.0724        1.0492        .82328E-04   -1.5501    
  13  Prefactor     .10000E-03    30.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.1734        .17495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.129        13.156        .12009E-03   -1.5041    
  16  Prefactor     .10000E-03    25.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.2899        7.6674        .74281E-03   -1.5168    
  18  Prefactor     .10000E-03    1.9110        .11217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.6937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.4642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.9514        .16172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     73.327        45.559        .46885E-04   -1.3993    
  23  Normalizat    1.2153        .19805        .24378E-03   -.86132    
  24  Prefactor     .71506        .16082        .25857E-03   -1.0294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21604e-09
Minuit parameter uncertainties:
  1  4.88219e-05
  2  3.13169e-06
  3  2.58927e-05
  4  9.56831e-09
  5  36.0331
  6  38.8058
  7  1.07741e-06
  8  4.35342e-09
  9  3.33014
  10  1.64592
  11  25.4873
  12  1.04925
  13  4.59221e-05
  14  4.77531e-07
  15  13.1598
  16  9.58436e-07
  17  7.66843
  18  1.07692e-06
  19  1.73607e-07
  20  1.72121e-06
  21  1.06938e-06
  22  45.5808
  23  0.198176
  24  0.160927
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  4.775e-07  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:  7.151e-01  1.609e-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:  1.215e+00  1.982e-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: 5.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164663/likelihoodResults_592099201_592358401_4FGL_J0401.9-2034_daily_bin1361.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): 102
logL (Free Index) = 7017.37096787
delta logL = -0.00404317667835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7017.36692469
delta logL = 4.03815647587e-09

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 'Index     '    2.3079       1.0000          .0000       10.000    
     3 'Normalizat'    1.2153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71506       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=   7017.367     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      251 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    144.45        .17498E-03** at limit **
   2  Index         2.3009        8.6455        .50000        .89030E-05
   3  Normalizat    1.2153        .57907E-01    .24378E-03    .59227E-05
   4  Prefactor     .71506        .48557E-01    .25857E-03    .37372E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  Index      = 2.30091
  Normalizat = 1.21528
  Prefactor  = 0.715057
 **********
 **   18 **HESSE 
 **********

 FCN=   7017.367     FROM HESSE     STATUS=OK            29 CALLS      280 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    2.1345        .34996E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3009        8.7701        .50000       -.57022    
   3  Normalizat    1.2153        .18901        .97511E-05   -.86132    
   4  Prefactor     .71506        .15875        .10343E-04   -1.0294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37072e-08
Minuit parameter uncertainties:
  1  0.000333202
  2  69.2608
  3  0.189118
  4  0.158846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164663': 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) = 7017.36692468
delta logL = 1.44136720337e-08

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  3.332e-04  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.301e+00  6.926e+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:  7.151e-01  1.588e-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:  1.215e+00  1.891e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/164663/cmap_HighResolution_592099201_592358401_4FGL_J0401.9-2034_daily_bin1361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.69e-08', time_completed='2021-08-19 23:50:43.632290', job_id='164663', GAL2='0.72', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1629442243.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.44e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1361' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:50:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 164663: <4FGL_J0401.9-2034_daily_bin1361> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1361 60.4867 -20.5804 592099201 592358401 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 :                                   882.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             379.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            898 sec.

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

