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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1588
RA = 60.4867, Dec = -20.5804
tmin = 650937601, tmax = 651196801
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='610618', job_status='RUN', time_executed='2021-08-21 00:37:34.844196', time_epoch_executed='1629531454.84' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/610618

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/610618/ft1_4FGL_J0401.9-2034_daily_bin1588.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/610618/ft2_4FGL_J0401.9-2034_daily_bin1588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/610618/ft1_4FGL_J0401.9-2034_daily_bin1588.fits outfile=/scratch/kocevski/610618/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1588.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=650937601.0 tmax=651196801.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.11
user 3.36
sys 0.73

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/610618/ft2_4FGL_J0401.9-2034_daily_bin1588.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/610618/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1588.fits evtable="EVENTS" outfile="/scratch/kocevski/610618/ft1_filtered_4FGL_J0401.9-2034_daily_bin1588.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.08
user 0.34
sys 0.64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/610618/ft1_filtered_4FGL_J0401.9-2034_daily_bin1588.fits" evtable="EVENTS" scfile=/scratch/kocevski/610618/ft2_4FGL_J0401.9-2034_daily_bin1588.fits sctable="SC_DATA" outfile=/scratch/kocevski/610618/ltcube_650937601_651196801_4FGL_J0401.9-2034_daily_bin1588.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/610618/ft2_4FGL_J0401.9-2034_daily_bin1588.fits
.....................!
real 12.68
user 11.76
sys 0.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/610618/ft1_filtered_4FGL_J0401.9-2034_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/610618/ft2_4FGL_J0401.9-2034_daily_bin1588.fits sctable="SC_DATA" expcube=/scratch/kocevski/610618/ltcube_650937601_651196801_4FGL_J0401.9-2034_daily_bin1588.fits outfile=/scratch/kocevski/610618/expmap_650937601_651196801_4FGL_J0401.9-2034_daily_bin1588.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/610618/ltcube_650937601_651196801_4FGL_J0401.9-2034_daily_bin1588.fits
.....................!
real 190.82
user 185.57
sys 4.86

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/610618/ft1_filtered_4FGL_J0401.9-2034_daily_bin1588.fits scfile=/scratch/kocevski/610618/ft2_4FGL_J0401.9-2034_daily_bin1588.fits outfile=/scratch/kocevski/610618/cmap_650937601_651196801_4FGL_J0401.9-2034_daily_bin1588.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 0.99
user 0.38
sys 0.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/610618/ft1_filtered_4FGL_J0401.9-2034_daily_bin1588.fits scfile=/scratch/kocevski/610618/ft2_4FGL_J0401.9-2034_daily_bin1588.fits outfile=/scratch/kocevski/610618/cmap_HighResolution_650937601_651196801_4FGL_J0401.9-2034_daily_bin1588.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 0.97
user 0.38
sys 0.58

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/610618/ft1_filtered_4FGL_J0401.9-2034_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/610618/ft2_4FGL_J0401.9-2034_daily_bin1588.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/610618/Model_4FGL_J0401.9-2034_daily_bin1588.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/610618/ft1_filtered_4FGL_J0401.9-2034_daily_bin1588.fits.....................!
real 158.49
user 156.35
sys 1.86

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9621       1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.999       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.9718       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .70998       1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.954       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .38267       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    64.688       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8585       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5328       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .98151       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98592       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=   6771.564     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     3494 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    77.323       -.61015E-05** at limit **
   2  Prefactor     .10000E-03    2.9754       -.21980E-06** at limit **
   3  Prefactor     1.9635        5.0980        .21931E-05   -.13160E-02
   4  Prefactor     38.001        18.752       -.40495E-07    .14847E-05
   5  Prefactor     .10000E-03    31.398        .11232E-05** at limit **
   6  Prefactor     .10000E-03    31.723        .28074E-05** at limit **
   7  Prefactor     .10000E-03    1.1023       -.37628E-07** at limit **
   8  Prefactor     .10000E-03    1.0363        .15136E-07** at limit **
   9  Prefactor     .10000E-03    1.5256       -.44599E-07** at limit **
  10  norm          5.9718        1.3554        .13144E-07   -.67278E-05
  11  Prefactor     .10000E-03    12.472       -.29299E-05** at limit **
  12  norm          .71100        1.3821        .10995E-08   -.20446E-03
  13  Prefactor     35.951        23.866       -.57427E-06    .97686E-07
  14  Prefactor     .38432        1.7793       -.38504E-07   -.11835E-03
  15  norm          .10000E-03    7.7368       -.31703E-06** at limit **
  16  Prefactor     .10000E-03    9.0748        .11684E-05** at limit **
  17  Prefactor     64.690        12.797        .64107E-07    .39925E-04
  18  Prefactor     7.8578        4.6617        .31046E-06   -.30087E-04
  19  Prefactor     .10000E-03    33.133        .11302E-04** at limit **
  20  Prefactor     .10000E-03    25.027       -.15938E-04** at limit **
  21  Prefactor     2.5327        3.8446        .19763E-06   -.27127E-04
  22  Prefactor     .10000E-03    17.092        .70202E-05** at limit **
  23  Normalizat    .98138        .18724       -.36509E-06   -.19938E-04
  24  Prefactor     .98594        .15078        .11127E-06   -.18008E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.96346
  Prefactor  = 38.0014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.97178
  Prefactor  = 0.0001
  norm       = 0.710998
  Prefactor  = 35.9511
  Prefactor  = 0.384324
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.69
  Prefactor  = 7.85779
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 2.53271
  Prefactor  = 0.0001
  Normalizat = 0.981381
  Prefactor  = 0.985936
 **********
 **   18 **HESSE 
 **********

 FCN=   6771.564     FROM HESSE     STATUS=OK           399 CALLS     3893 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    77.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0655        .27722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9635        13.846        .14806E-02   -1.5428    
   4  Prefactor     38.001        18.754        .65019E-04   -1.4474    
   5  Prefactor     .10000E-03    31.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.1347        .16836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.0394        .81781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5423        .99181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.9718        1.3620        .43488E-04   -1.5219    
  11  Prefactor     .10000E-03    12.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .71100        1.1937        .11923E-02   -1.5539    
  13  Prefactor     35.951        23.823        .66836E-04   -1.4508    
  14  Prefactor     .38432        5.5155        .19056E-02   -1.5584    
  15  norm          .10000E-03    7.7873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.0873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     64.690        12.804        .49896E-04   -1.4098    
  18  Prefactor     7.8578        4.6492        .12805E-03   -1.5147    
  19  Prefactor     .10000E-03    33.737        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5327        3.8299        .19354E-03   -1.5390    
  22  Prefactor     .10000E-03    17.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .98138        .21295        .28147E-03   -.93657    
  24  Prefactor     .98594        .17108        .23891E-03   -.93200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62878e-08
Minuit parameter uncertainties:
  1  0.000338951
  2  1.11579e-06
  3  10.431
  4  18.7566
  5  3.89701e-05
  6  0.000101693
  7  3.61639e-07
  8  1.35555e-07
  9  7.10049e-08
  10  1.36202
  11  5.73826e-05
  12  1.1937
  13  23.8291
  14  2.91181
  15  5.7776e-06
  16  2.17336e-05
  17  12.8045
  18  4.64943
  19  0.000217933
  20  0.000422819
  21  3.83023
  22  0.000174517
  23  0.213135
  24  0.171169
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  3.843e-01  2.912e+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:  9.859e-01  1.712e-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.814e-01  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/610618/likelihoodResults_650937601_651196801_4FGL_J0401.9-2034_daily_bin1588.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) = 6770.10146408
delta logL = 1.46211656169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6769.96781118
delta logL = 1.59576946114

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10484       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6763       1.0000          .0000       10.000    
     3 'Normalizat'    .87745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0370       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=   6769.968     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10482        .95680        .37152E-02    .18009E-02
   2  Index         4.6769        2.4090        .11460        .14839E-03
   3  Normalizat    .87744        .48605E-01    .66788E-01    .23544E-04
   4  Prefactor     1.0371        .41513E-01    .40740E-01    .13458E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.104818
  Index      = 4.67689
  Normalizat = 0.877437
  Prefactor  = 1.03708
 **********
 **   18 **HESSE 
 **********

 FCN=   6769.968     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      274 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10482        2.1761        .16850E-03   -1.5643    
   2  Index         4.6769        3.9525        .43390E-02   -.64668E-01
   3  Normalizat    .87744        .16780        .29546E-03   -.97258    
   4  Prefactor     1.0371        .14127        .23348E-03   -.91503    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11e-07
Minuit parameter uncertainties:
  1  0.954762
  2  4.5621
  3  0.167901
  4  0.141321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/610618': 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): 102
logL (Free Index) = 6769.96780911
delta logL = 1.59577153221

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.048e-01  9.548e-01  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  4.677e+00  4.562e+00  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.037e+00  1.413e-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.774e-01  1.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.44
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 4.68 +/- 4.56
Photon Flux (Free Index): 9.61e-08 +/- 6.22e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/610618/cmap_HighResolution_650937601_651196801_4FGL_J0401.9-2034_daily_bin1588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-03', comment='SUCCESS', energy_flux2='1.32e-05', dlogl='1.60e+00', photon_flux2='9.61e-08', job_status='DONE', time_completed='2021-08-21 00:50:55.660314', photon_index_error2='4.56', photon_index2='4.68', ts='0.02', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='9.30e-08', energy_flux_error2='1.17e-05', EG='0.98', time_epoch_completed='1629532255.66', return_code='0', job_id='610618', GAL2='1.04', EG2='0.88', return_code2='102', photon_flux_error2='6.22e-08', ts2='3.44', photon_index='2.31' WHERE bin_id='1588' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 00:50:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 610618: <4FGL_J0401.9-2034_daily_bin1588> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1588> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 21 00:35:42 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 00:35:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 00:35:43 2021
Terminated at Sat Aug 21 00:50:56 2021
Results reported at Sat Aug 21 00:50:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1588 60.4867 -20.5804 650937601 651196801 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 :                                   810.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            914 sec.

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

