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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1531
RA = 60.4867, Dec = -20.5804
tmin = 636163201, tmax = 636422401
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='165982', job_status='RUN', time_executed='2021-08-19 23:43:48.008016', time_epoch_executed='1629441828.01' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1531'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165982

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165982/ft1_4FGL_J0401.9-2034_daily_bin1531.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165982/ft2_4FGL_J0401.9-2034_daily_bin1531.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165982/ft1_4FGL_J0401.9-2034_daily_bin1531.fits outfile=/scratch/kocevski/165982/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1531.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=636163201.0 tmax=636422401.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 9.20
user 3.48
sys 5.69

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/165982/ft1_filtered_4FGL_J0401.9-2034_daily_bin1531.fits" evtable="EVENTS" scfile=/scratch/kocevski/165982/ft2_4FGL_J0401.9-2034_daily_bin1531.fits sctable="SC_DATA" outfile=/scratch/kocevski/165982/ltcube_636163201_636422401_4FGL_J0401.9-2034_daily_bin1531.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/165982/ft2_4FGL_J0401.9-2034_daily_bin1531.fits
.....................!
real 18.16
user 11.59
sys 6.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165982/ft1_filtered_4FGL_J0401.9-2034_daily_bin1531.fits evtable="EVENTS" scfile=/scratch/kocevski/165982/ft2_4FGL_J0401.9-2034_daily_bin1531.fits sctable="SC_DATA" expcube=/scratch/kocevski/165982/ltcube_636163201_636422401_4FGL_J0401.9-2034_daily_bin1531.fits outfile=/scratch/kocevski/165982/expmap_636163201_636422401_4FGL_J0401.9-2034_daily_bin1531.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/165982/ltcube_636163201_636422401_4FGL_J0401.9-2034_daily_bin1531.fits
.....................!
real 199.16
user 186.56
sys 12.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/165982/ft1_filtered_4FGL_J0401.9-2034_daily_bin1531.fits scfile=/scratch/kocevski/165982/ft2_4FGL_J0401.9-2034_daily_bin1531.fits outfile=/scratch/kocevski/165982/cmap_636163201_636422401_4FGL_J0401.9-2034_daily_bin1531.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 5.92
user 0.36
sys 5.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165982/ft1_filtered_4FGL_J0401.9-2034_daily_bin1531.fits scfile=/scratch/kocevski/165982/ft2_4FGL_J0401.9-2034_daily_bin1531.fits outfile=/scratch/kocevski/165982/cmap_HighResolution_636163201_636422401_4FGL_J0401.9-2034_daily_bin1531.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 5.91
user 0.38
sys 5.51

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/165982/ft1_filtered_4FGL_J0401.9-2034_daily_bin1531.fits evtable="EVENTS" scfile=/scratch/kocevski/165982/ft2_4FGL_J0401.9-2034_daily_bin1531.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/165982/Model_4FGL_J0401.9-2034_daily_bin1531.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/165982/ft1_filtered_4FGL_J0401.9-2034_daily_bin1531.fits.....................!
real 116.67
user 107.70
sys 8.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63993E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.617       1.0000         .10000E-03   10000.    
     4 'Prefactor '    51.851       1.0000         .10000E-03   10000.    
     5 'Prefactor '    68.816       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2869       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .39445       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10534E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.847       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.695       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0459       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.477       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.221       1.0000         .10000E-03   10000.    
    15 'norm      '    15.646       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.153       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11359E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    59.384       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.9453       1.0000         .10000E-03   10000.    
    22 'Prefactor '    61.531       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86308       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90722       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=   4627.063     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2775 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    264.80       -.66261E-05** at limit **
   2  Prefactor     .10000E-03    1.9335       -.32687E-06** at limit **
   3  Prefactor     22.651        26.623       -.49494E-05   -.70907E-04
   4  Prefactor     51.843        29.416        .35462E-05   -.53615E-04
   5  Prefactor     68.873        89.995        .59582E-04   -.72166E-04
   6  Prefactor     .10000E-03    31.195       -.29084E-04** at limit **
   7  Prefactor     5.2932        4.1227        .80998E-06   -.58949E-03
   8  Prefactor     .32470        4.6901        .19946E-05   -.96270E-03
   9  Prefactor     .10000E-03    6.7718       -.31497E-06** at limit **
  10  norm          13.856        2.6760       -.62915E-06   -.18541E-02
  11  Prefactor     14.699        31.346        .30996E-05   -.16190E-04
  12  norm          2.0476        2.5715        .36764E-06   -.72821E-03
  13  Prefactor     27.477        32.185        .23120E-05   -.48457E-04
  14  Prefactor     10.221        4.8425        .22338E-06   -.45956E-03
  15  norm          15.649        14.900       -.94006E-06   -.55941E-04
  16  Prefactor     19.164        29.228        .21204E-05   -.89432E-04
  17  Prefactor     .10000E-03    2.9293        .30327E-06** at limit **
  18  Prefactor     .10000E-03    1.1487        .31683E-07** at limit **
  19  Prefactor     .10002E-03    33.780        .22629E-04** at limit **
  20  Prefactor     59.375        40.440       -.19679E-05   -.72341E-04
  21  Prefactor     9.9429        8.3907        .88292E-06   -.13917E-03
  22  Prefactor     61.633        73.008        .10021E-03   -.97237E-04
  23  Normalizat    .86313        .25900       -.19895E-04   -.11924E-03
  24  Prefactor     .90735        .18654        .10860E-05   -.64886E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 22.6512
  Prefactor  = 51.843
  Prefactor  = 68.8735
  Prefactor  = 0.0001
  Prefactor  = 5.29315
  Prefactor  = 0.324702
  Prefactor  = 0.0001
  norm       = 13.8556
  Prefactor  = 14.6986
  norm       = 2.04758
  Prefactor  = 27.4773
  Prefactor  = 10.221
  norm       = 15.6487
  Prefactor  = 19.1639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 59.3747
  Prefactor  = 9.94292
  Prefactor  = 61.6332
  Normalizat = 0.863132
  Prefactor  = 0.907347
 **********
 **   18 **HESSE 
 **********

 FCN=   4627.063     FROM HESSE     STATUS=OK           395 CALLS     3170 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    265.06        .21029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9346        .92322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.651        26.768        .84226E-04   -1.4756    
   4  Prefactor     51.843        29.473        .55697E-04   -1.4267    
   5  Prefactor     68.873        90.016        .24193E-03   -1.4046    
   6  Prefactor     .10000E-03    31.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.2932        4.0845        .10861E-03   -1.5248    
   8  Prefactor     .32470        40.016        .25732E-02   -1.5594    
   9  Prefactor     .10000E-03    6.8745        .34387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.856        2.7069        .43071E-04   -1.4963    
  11  Prefactor     14.699        31.300        .10448E-03   -1.4941    
  12  norm          2.0476        2.5206        .10544E-03   -1.5422    
  13  Prefactor     27.477        32.156        .76427E-04   -1.4659    
  14  Prefactor     10.221        4.8356        .94530E-04   -1.5068    
  15  norm          15.649        14.898        .10125E-03   -1.4917    
  16  Prefactor     19.164        29.214        .91517E-04   -1.4832    
  17  Prefactor     .10000E-03    2.9355        .11369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.1494        .71192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    33.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     59.375        40.490        .52063E-04   -1.4165    
  21  Prefactor     9.9429        8.3898        .12706E-03   -1.5077    
  22  Prefactor     61.633        72.966        .25576E-03   -1.4136    
  23  Normalizat    .86313        .29839        .31962E-03   -.97768    
  24  Prefactor     .90735        .21473        .24952E-03   -.95885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59138e-08
Minuit parameter uncertainties:
  1  0.0011978
  2  2.49344e-05
  3  26.7817
  4  29.481
  5  90.1943
  6  0.000132764
  7  4.08476
  8  7.21305
  9  6.28735e-05
  10  2.70687
  11  31.3345
  12  2.52077
  13  32.1763
  14  4.83582
  15  14.9018
  16  29.2356
  17  3.03042e-05
  18  4.50142e-07
  19  0.00150598
  20  40.5084
  21  8.39081
  22  73.0721
  23  0.29896
  24  0.214935
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.022e+01  4.836e+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.073e-01  2.149e-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.631e-01  2.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.53
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.34e-07 +/- 6.34e-08
Energy Flux (Fixed Index): 5.00e-05 +/- 2.37e-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) = 4626.12951089
delta logL = 0.933838534042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4625.87395043
delta logL = 1.18939899549

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9003       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3272       1.0000          .0000       10.000    
     3 'Normalizat'    .97808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86793       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=   4625.874     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      220 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8971        3.8627        .45425E-02    .22369E-03
   2  Index         1.3270        .35056        .13254       -.10126E-03
   3  Normalizat    .97822        .22908        .68482E-01    .11284E-04
   4  Prefactor     .86785        .18355        .44595E-01    .15391E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.89714
  Index      = 1.32695
  Normalizat = 0.978215
  Prefactor  = 0.867847
 **********
 **   18 **HESSE 
 **********

 FCN=   4625.874     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8971        6.3149        .94821E-04   -1.5265    
   2  Index         1.3270        .59524        .56274E-02   -.82509    
   3  Normalizat    .97822        .26239        .30295E-03   -.93764    
   4  Prefactor     .86785        .21004        .25525E-03   -.97274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41102e-10
Minuit parameter uncertainties:
  1  6.31578
  2  0.598338
  3  0.262738
  4  0.210235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165982': 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) = 4625.87395018
delta logL = 1.18939924373

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  4.897e+00  6.316e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  1.327e+00  5.983e-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:  8.678e-01  2.102e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  9.782e-01  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.69
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 1.33 +/- 0.60
Photon Flux (Free Index): 2.58e-08 +/- 3.29e-08
Energy Flux (Free Index): 1.45e-04 +/- 1.53e-04

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/165982/cmap_HighResolution_636163201_636422401_4FGL_J0401.9-2034_daily_bin1531.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.34e-07', energy_flux2='1.45e-04', photon_flux_error='6.34e-08', dlogl='1.19e+00', energy_flux='5.00e-05', photon_flux2='2.58e-08', job_status='DONE', time_completed='2021-08-19 23:55:04.184765', photon_index_error2='0.60', photon_index2='1.33', ts='15.53', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.53e-04', EG='0.86', time_epoch_completed='1629442504.18', return_code='0', job_id='165982', GAL2='0.87', EG2='0.98', return_code2='0', energy_flux_error='2.37e-05', photon_flux_error2='3.29e-08', ts2='17.69', photon_index='2.31' WHERE bin_id='1531' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:55:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 165982: <4FGL_J0401.9-2034_daily_bin1531> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1531 60.4867 -20.5804 636163201 636422401 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 :                                   730.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            873 sec.

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

