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

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


Waiting 97 seconds before starting...
Proceeding.

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

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

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

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

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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1286
RA = 60.4867, Dec = -20.5804
tmin = 572659201, tmax = 572918401
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='164553', job_status='RUN', time_executed='2021-08-19 23:39:32.261743', time_epoch_executed='1629441572.26' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1286'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164553

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164553/ft1_4FGL_J0401.9-2034_daily_bin1286.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164553/ft2_4FGL_J0401.9-2034_daily_bin1286.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164553/ft1_4FGL_J0401.9-2034_daily_bin1286.fits outfile=/scratch/kocevski/164553/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1286.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=572659201.0 tmax=572918401.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 12.70
user 3.41
sys 9.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164553/ft1_filtered_4FGL_J0401.9-2034_daily_bin1286.fits" evtable="EVENTS" scfile=/scratch/kocevski/164553/ft2_4FGL_J0401.9-2034_daily_bin1286.fits sctable="SC_DATA" outfile=/scratch/kocevski/164553/ltcube_572659201_572918401_4FGL_J0401.9-2034_daily_bin1286.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/164553/ft2_4FGL_J0401.9-2034_daily_bin1286.fits
.....................!
real 22.55
user 12.10
sys 10.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164553/ft1_filtered_4FGL_J0401.9-2034_daily_bin1286.fits evtable="EVENTS" scfile=/scratch/kocevski/164553/ft2_4FGL_J0401.9-2034_daily_bin1286.fits sctable="SC_DATA" expcube=/scratch/kocevski/164553/ltcube_572659201_572918401_4FGL_J0401.9-2034_daily_bin1286.fits outfile=/scratch/kocevski/164553/expmap_572659201_572918401_4FGL_J0401.9-2034_daily_bin1286.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/164553/ltcube_572659201_572918401_4FGL_J0401.9-2034_daily_bin1286.fits
.....................!
real 202.28
user 185.52
sys 16.33

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/164553/ft1_filtered_4FGL_J0401.9-2034_daily_bin1286.fits scfile=/scratch/kocevski/164553/ft2_4FGL_J0401.9-2034_daily_bin1286.fits outfile=/scratch/kocevski/164553/cmap_572659201_572918401_4FGL_J0401.9-2034_daily_bin1286.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 9.35
user 0.39
sys 8.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164553/ft1_filtered_4FGL_J0401.9-2034_daily_bin1286.fits scfile=/scratch/kocevski/164553/ft2_4FGL_J0401.9-2034_daily_bin1286.fits outfile=/scratch/kocevski/164553/cmap_HighResolution_572659201_572918401_4FGL_J0401.9-2034_daily_bin1286.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 9.40
user 0.39
sys 8.91

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164553/ft1_filtered_4FGL_J0401.9-2034_daily_bin1286.fits evtable="EVENTS" scfile=/scratch/kocevski/164553/ft2_4FGL_J0401.9-2034_daily_bin1286.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164553/Model_4FGL_J0401.9-2034_daily_bin1286.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/164553/ft1_filtered_4FGL_J0401.9-2034_daily_bin1286.fits.....................!
real 128.20
user 114.58
sys 12.94

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    283.10       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-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      '    16.719       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13736E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4089       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5580       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 '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4605       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73076       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=   4872.178     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2717 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     283.12        270.39        .29974E-05    .41759E-04
   2  Prefactor     .10000E-03    2.3212       -.40134E-08** at limit **
   3  Prefactor     .10000E-03    11.642       -.11532E-05** at limit **
   4  Prefactor     .10000E-03    13.771       -.16460E-05** at limit **
   5  Prefactor     .10000E-03    21.568        .11390E-05** at limit **
   6  Prefactor     .10000E-03    41.890        .13164E-05** at limit **
   7  Prefactor     .10000E-03    2.2672        .10630E-06** at limit **
   8  Prefactor     .10000E-03    3.2449        .36053E-07** at limit **
   9  Prefactor     .10000E-03    3.0893        .29197E-07** at limit **
  10  norm          16.720        2.6263        .72027E-08   -.18052E-03
  11  Prefactor     .10000E-03    29.599       -.19378E-05** at limit **
  12  norm          .10000E-03    1.2822        .30029E-08** at limit **
  13  Prefactor     .10000E-03    132.11       -.14571E-05** at limit **
  14  Prefactor     6.4092        4.4131        .19280E-07   -.57337E-04
  15  norm          .10000E-03    12.061        .93108E-06** at limit **
  16  Prefactor     .10000E-03    27.512        .13718E-06** at limit **
  17  Prefactor     8.5485        10.604        .19800E-05   -.41303E-03
  18  Prefactor     .10000E-03    2.1120       -.62788E-08** at limit **
  19  Prefactor     .10000E-03    5.4273       -.17163E-07** at limit **
  20  Prefactor     .10000E-03    20.677        .42900E-07** at limit **
  21  Prefactor     .10000E-03    11.726        .33741E-06** at limit **
  22  Prefactor     .10000E-03    13.096        .11926E-05** at limit **
  23  Normalizat    1.4604        .23056       -.53591E-06    .29582E-04
  24  Prefactor     .73073        .17241       -.26114E-06   -.59314E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 283.123
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.7198
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.4092
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.54846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.4604
  Prefactor  = 0.730727
 **********
 **   18 **HESSE 
 **********

 FCN=   4872.178     FROM HESSE     STATUS=OK           387 CALLS     3104 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     283.12        272.87        .12059E-03   -1.2327    
   2  Prefactor     .10000E-03    2.3295        .10385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    42.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2814        .19993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.2583        .12273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1239        .11973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.720        2.6446        .42740E-04   -1.4890    
  11  Prefactor     .10000E-03    30.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.9973        .14906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    135.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4092        4.3844        .11453E-03   -1.5202    
  15  norm          .10000E-03    12.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.5485        11.486        .68514E-03   -1.5123    
  18  Prefactor     .10000E-03    2.1224        .99036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4297        .15882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.161        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4604        .26916        .26290E-03   -.78897    
  24  Prefactor     .73073        .20027        .27852E-03   -1.0233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19747e-10
Minuit parameter uncertainties:
  1  274.12
  2  3.36887e-07
  3  0.000166109
  4  0.000247082
  5  0.000216829
  6  0.000349517
  7  9.19148e-06
  8  2.61676e-06
  9  1.82771e-06
  10  2.64465
  11  0.000423279
  12  4.33874e-06
  13  0.000543306
  14  4.3846
  15  0.000131756
  16  2.97007e-05
  17  11.4894
  18  6.59166e-08
  19  1.63245e-06
  20  9.28481e-06
  21  4.25495e-05
  22  0.00017742
  23  0.269425
  24  0.200471
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  6.409e+00  4.385e+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:  7.307e-01  2.005e-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.460e+00  2.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.07
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 8.41e-08 +/- 5.75e-08
Energy Flux (Fixed Index): 3.14e-05 +/- 2.15e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4872.02299297
delta logL = 0.15536343096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4872.01931903
delta logL = 0.159037377394

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9777       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6501       1.0000          .0000       10.000    
     3 'Normalizat'    1.4317       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74517       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=   4872.019     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      257 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9777        64.863        .45063E-02    .10073E-02
   2  Index         2.6498        3.5326        .14636        .78573E-04
   3  Normalizat    1.4318        .10542        .59920E-01    .54246E-05
   4  Prefactor     .74504        .72369E-01    .62421E-01    .14960E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.97767
  Index      = 2.64978
  Normalizat = 1.4318
  Prefactor  = 0.745043
 **********
 **   18 **HESSE 
 **********

 FCN=   4872.019     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9777        4.9310        .93641E-04   -1.5262    
   2  Index         2.6498        .68208        .53697E-02   -.48934    
   3  Normalizat    1.4318        .26303        .26499E-03   -.79713    
   4  Prefactor     .74504        .20140        .27611E-03   -1.0179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46911e-09
Minuit parameter uncertainties:
  1  4.9314
  2  0.684823
  3  0.263284
  4  0.2016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164553': 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) = 4872.01931853
delta logL = 0.159037876418

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  4.978e+00  4.931e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.650e+00  6.848e-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.450e-01  2.016e-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.432e+00  2.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.38
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 2.65 +/- 0.68
Photon Flux (Free Index): 1.11e-07 +/- 8.08e-08
Energy Flux (Free Index): 2.78e-05 +/- 1.89e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/164553/cmap_HighResolution_572659201_572918401_4FGL_J0401.9-2034_daily_bin1286.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.41e-08', energy_flux2='2.78e-05', photon_flux_error='5.75e-08', dlogl='1.59e-01', energy_flux='3.14e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-08-19 23:51:31.031630', photon_index_error2='0.68', photon_index2='2.65', ts='4.07', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.89e-05', EG='1.46', time_epoch_completed='1629442291.03', return_code='0', job_id='164553', GAL2='0.75', EG2='1.43', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='8.08e-08', ts2='4.38', photon_index='2.31' WHERE bin_id='1286' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:51:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 164553: <4FGL_J0401.9-2034_daily_bin1286> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1286 60.4867 -20.5804 572659201 572918401 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 :                                   828.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             248.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

