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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1087
RA = 60.4867, Dec = -20.5804
tmin = 521078401, tmax = 521337601
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='163196', job_status='RUN', time_executed='2021-08-19 23:31:15.088770', time_epoch_executed='1629441075.09' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163196

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163196/ft1_4FGL_J0401.9-2034_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163196/ft2_4FGL_J0401.9-2034_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163196/ft1_4FGL_J0401.9-2034_daily_bin1087.fits outfile=/scratch/kocevski/163196/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1087.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=521078401.0 tmax=521337601.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 5.20
user 4.34
sys 0.85

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/163196/ft2_4FGL_J0401.9-2034_daily_bin1087.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/163196/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1087.fits evtable="EVENTS" outfile="/scratch/kocevski/163196/ft1_filtered_4FGL_J0401.9-2034_daily_bin1087.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.12
user 0.31
sys 0.80

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163196/ft1_filtered_4FGL_J0401.9-2034_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/163196/ft2_4FGL_J0401.9-2034_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/163196/ltcube_521078401_521337601_4FGL_J0401.9-2034_daily_bin1087.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/163196/ft2_4FGL_J0401.9-2034_daily_bin1087.fits
.....................!
real 12.71
user 11.64
sys 1.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163196/ft1_filtered_4FGL_J0401.9-2034_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/163196/ft2_4FGL_J0401.9-2034_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/163196/ltcube_521078401_521337601_4FGL_J0401.9-2034_daily_bin1087.fits outfile=/scratch/kocevski/163196/expmap_521078401_521337601_4FGL_J0401.9-2034_daily_bin1087.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/163196/ltcube_521078401_521337601_4FGL_J0401.9-2034_daily_bin1087.fits
.....................!
real 191.88
user 185.47
sys 6.10

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/163196/ft1_filtered_4FGL_J0401.9-2034_daily_bin1087.fits scfile=/scratch/kocevski/163196/ft2_4FGL_J0401.9-2034_daily_bin1087.fits outfile=/scratch/kocevski/163196/cmap_521078401_521337601_4FGL_J0401.9-2034_daily_bin1087.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.13
user 0.36
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163196/ft1_filtered_4FGL_J0401.9-2034_daily_bin1087.fits scfile=/scratch/kocevski/163196/ft2_4FGL_J0401.9-2034_daily_bin1087.fits outfile=/scratch/kocevski/163196/cmap_HighResolution_521078401_521337601_4FGL_J0401.9-2034_daily_bin1087.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.15
user 0.37
sys 0.77

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/163196/ft1_filtered_4FGL_J0401.9-2034_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/163196/ft2_4FGL_J0401.9-2034_daily_bin1087.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/163196/Model_4FGL_J0401.9-2034_daily_bin1087.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/163196/ft1_filtered_4FGL_J0401.9-2034_daily_bin1087.fits.....................!
real 120.77
user 118.54
sys 2.04

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    77.910       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .53225       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.494       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.274       1.0000         .10000E-03   10000.    
     6 'Prefactor '    66.667       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0219       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      '    2.0146       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13954E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6392       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.637       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    23.452       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.081       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10860E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6676       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86771       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2049       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=   5283.581     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     3117 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     77.620        215.89       -.11411E-05   -.63558E-06
   2  Prefactor     .10000E-03    2.5121       -.18012E-06** at limit **
   3  Prefactor     .49752        115.51       -.40180E-05    .68027E-04
   4  Prefactor     18.495        20.001       -.15141E-06    .74144E-05
   5  Prefactor     29.275        34.258       -.60543E-07    .77118E-05
   6  Prefactor     66.653        45.045       -.17326E-06   -.18824E-04
   7  Prefactor     4.0215        3.2873       -.51403E-08   -.82685E-04
   8  Prefactor     .10000E-03    1.2849       -.20365E-06** at limit **
   9  Prefactor     .10000E-03    1.2479       -.25941E-06** at limit **
  10  norm          2.0144        1.0510       -.10951E-07    .11832E-03
  11  Prefactor     .10000E-03    54.758       -.29432E-05** at limit **
  12  norm          1.6397        1.9406       -.27020E-06   -.37581E-03
  13  Prefactor     24.652        35.817        .13591E-06    .20060E-04
  14  Prefactor     .10000E-03    2.0356       -.86531E-06** at limit **
  15  norm          23.452        17.663       -.10075E-06    .17406E-04
  16  Prefactor     17.085        31.956       -.31246E-06    .15323E-04
  17  Prefactor     .10007E-03    10.154        .14667E-05** at limit **
  18  Prefactor     8.6677        5.3923       -.56587E-07    .57989E-04
  19  Prefactor     .10000E-03    14.792       -.59790E-06** at limit **
  20  Prefactor     .10000E-03    12.849       -.27221E-06** at limit **
  21  Prefactor     .10000E-03    27.781       -.18764E-05** at limit **
  22  Prefactor     .10000E-03    49.397       -.62398E-06** at limit **
  23  Normalizat    .86810        .22754       -.92152E-06    .15630E-03
  24  Prefactor     1.2046        .18615        .22937E-05    .22315E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 77.6205
  Prefactor  = 0.0001
  Prefactor  = 0.497516
  Prefactor  = 18.4946
  Prefactor  = 29.2746
  Prefactor  = 66.6534
  Prefactor  = 4.02146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.01444
  Prefactor  = 0.000100005
  norm       = 1.63972
  Prefactor  = 24.6521
  Prefactor  = 0.0001
  norm       = 23.4515
  Prefactor  = 17.085
  Prefactor  = 0.000100067
  Prefactor  = 8.66769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.868101
  Prefactor  = 1.20461
 **********
 **   18 **HESSE 
 **********

 FCN=   5283.581     FROM HESSE     STATUS=OK           403 CALLS     3520 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     77.620        217.61        .22748E-03   -1.3944    
   2  Prefactor     .10000E-03    2.5343        .11249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .49752        198.11        .53284E-02   -1.5567    
   4  Prefactor     18.495        20.007        .93133E-04   -1.4848    
   5  Prefactor     29.275        34.268        .74049E-04   -1.4625    
   6  Prefactor     66.653        45.090        .49155E-04   -1.4073    
   7  Prefactor     4.0215        3.2632        .10876E-03   -1.5307    
   8  Prefactor     .10000E-03    1.2912        .80522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.2544        .79369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0144        1.0531        .29163E-04   -1.5424    
  11  Prefactor     .10000E-03    55.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6397        1.9088        .10008E-03   -1.5452    
  13  Prefactor     24.652        35.722        .80703E-04   -1.4715    
  14  Prefactor     .10000E-03    2.0989        .20308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          23.452        17.657        .82714E-04   -1.4739    
  16  Prefactor     17.085        31.998        .96910E-04   -1.4881    
  17  Prefactor     .10007E-03    24.579        .33659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.6677        5.3992        .12687E-03   -1.5119    
  19  Prefactor     .10000E-03    14.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    61.010        .32276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    49.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .86810        .25758        .30534E-03   -.97590    
  24  Prefactor     1.2046        .20451        .22601E-03   -.86190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5825e-09
Minuit parameter uncertainties:
  1  219.901
  2  1.10769e-05
  3  19.9206
  4  20.014
  5  34.2914
  6  45.1135
  7  3.26338
  8  6.59282e-06
  9  8.22622e-06
  10  1.05308
  11  0.00103992
  12  1.90885
  13  35.7531
  14  4.02548e-05
  15  17.6608
  16  32.0296
  17  0.00257234
  18  5.39951
  19  9.59921e-05
  20  3.95891e-05
  21  0.000109933
  22  0.000261941
  23  0.257948
  24  0.204648
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  4.025e-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.205e+00  2.046e-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.681e-01  2.579e-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: 8.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163196/likelihoodResults_521078401_521337601_4FGL_J0401.9-2034_daily_bin1087.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) = 5283.58301369
delta logL = -0.00226554161418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5283.58074826
delta logL = -1.17734089145e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3187       1.0000          .0000       10.000    
     3 'Normalizat'    .86813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2046       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=   5283.578     FROM MIGRAD    STATUS=CONVERGED    188 CALLS      347 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67352E-02    .10547        .10627E-01    .19830E-02
   2  Index         4.5719        .86426        .50000        .65053E-06
   3  Normalizat    .86302        .79480E-02    .30534E-03   -.10723E-04
   4  Prefactor     1.2071        .68502E-02    .22601E-03   -.77464E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00673518
  Index      = 4.57191
  Normalizat = 0.863023
  Prefactor  = 1.20706
 **********
 **   18 **HESSE 
 **********

 FCN=   5283.578     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      378 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67352E-02    64.286        .31221E-03   -1.5692    
   2  Index         4.5719        5.4723        .83815E-02   -.85724E-01
   3  Normalizat    .86302        .17694        .12213E-04   -.97772    
   4  Prefactor     1.2071        .11597        .90404E-05   -.86114    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89871e-06
Minuit parameter uncertainties:
  1  1.30762
  2  78.3399
  3  0.177061
  4  0.115993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163196': 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) = 5283.57843629
delta logL = 0.00231185474968

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  6.735e-03  1.308e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  4.572e+00  7.834e+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:  1.207e+00  1.160e-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.630e-01  1.771e-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/163196/cmap_HighResolution_521078401_521337601_4FGL_J0401.9-2034_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.67e-03', job_status='DONE', photon_flux_upper_limit='8.69e-08', time_completed='2021-08-19 23:42:35.441825', job_id='163196', GAL2='1.21', fit_tolerance='1e-08', EG2='0.86', EG='0.87', time_epoch_completed='1629441755.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='2.31e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1087' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:42:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 163196: <4FGL_J0401.9-2034_daily_bin1087> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1087> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 19 23:30:48 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:30:50 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:30:50 2021
Terminated at Thu Aug 19 23:42:36 2021
Results reported at Thu Aug 19 23:42:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1087 60.4867 -20.5804 521078401 521337601 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 :                                   679.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             327.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            708 sec.

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

