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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1592
RA = 60.4867, Dec = -20.5804
tmin = 651974401, tmax = 652233601
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='924023', job_status='RUN', time_executed='2021-09-02 00:27:51.347163', time_epoch_executed='1630567671.35' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/924023

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/924023/ft1_4FGL_J0401.9-2034_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/924023/ft2_4FGL_J0401.9-2034_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/924023/ft1_4FGL_J0401.9-2034_daily_bin1592.fits outfile=/scratch/kocevski/924023/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1592.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=651974401.0 tmax=652233601.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 3.39
user 3.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/924023/ft1_filtered_4FGL_J0401.9-2034_daily_bin1592.fits" evtable="EVENTS" scfile=/scratch/kocevski/924023/ft2_4FGL_J0401.9-2034_daily_bin1592.fits sctable="SC_DATA" outfile=/scratch/kocevski/924023/ltcube_651974401_652233601_4FGL_J0401.9-2034_daily_bin1592.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/924023/ft2_4FGL_J0401.9-2034_daily_bin1592.fits
.....................!
real 14.31
user 13.90
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/924023/ft1_filtered_4FGL_J0401.9-2034_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/924023/ft2_4FGL_J0401.9-2034_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/924023/ltcube_651974401_652233601_4FGL_J0401.9-2034_daily_bin1592.fits outfile=/scratch/kocevski/924023/expmap_651974401_652233601_4FGL_J0401.9-2034_daily_bin1592.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/924023/ltcube_651974401_652233601_4FGL_J0401.9-2034_daily_bin1592.fits
.....................!
real 191.39
user 186.15
sys 4.50

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/924023/ft1_filtered_4FGL_J0401.9-2034_daily_bin1592.fits scfile=/scratch/kocevski/924023/ft2_4FGL_J0401.9-2034_daily_bin1592.fits outfile=/scratch/kocevski/924023/cmap_651974401_652233601_4FGL_J0401.9-2034_daily_bin1592.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/924023/ft1_filtered_4FGL_J0401.9-2034_daily_bin1592.fits scfile=/scratch/kocevski/924023/ft2_4FGL_J0401.9-2034_daily_bin1592.fits outfile=/scratch/kocevski/924023/cmap_HighResolution_651974401_652233601_4FGL_J0401.9-2034_daily_bin1592.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.57
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/924023/ft1_filtered_4FGL_J0401.9-2034_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/924023/ft2_4FGL_J0401.9-2034_daily_bin1592.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/924023/Model_4FGL_J0401.9-2034_daily_bin1592.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/924023/ft1_filtered_4FGL_J0401.9-2034_daily_bin1592.fits.....................!
real 189.07
user 187.17
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    88.130       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1123       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4475       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    59.493       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .50698E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.709       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9974       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.4007       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.768       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.633       1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.115       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4124       1.0000         .10000E-03   10000.    
    22 'Prefactor '    92.614       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80073       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94295       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=   8359.416     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2785 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.132        94.657        .20583E-06    .67847E-05
   2  Prefactor     .10000E-03    3.4540        .41232E-06** at limit **
   3  Prefactor     7.1230        13.455        .70385E-06    .89368E-04
   4  Prefactor     3.4480        5.6474        .19807E-06   -.71308E-05
   5  Prefactor     .10000E-03    8.8053        .18426E-06** at limit **
   6  Prefactor     59.494        33.137        .94682E-07    .19519E-04
   7  Prefactor     .10000E-03    .68174       -.44938E-07** at limit **
   8  Prefactor     .86316E-01    1.5753        .25536E-06   -.50649E-03
   9  Prefactor     .10000E-03    1.3122       -.81732E-07** at limit **
  10  norm          11.707        1.5167       -.27174E-08   -.55388E-03
  11  Prefactor     .10000E-03    17.200        .40450E-06** at limit **
  12  norm          .10000E-03    .50072       -.74769E-07** at limit **
  13  Prefactor     .10000E-03    12.862       -.44165E-06** at limit **
  14  Prefactor     2.9978        2.3662        .51425E-07   -.89433E-04
  15  norm          .10000E-03    7.7663       -.46851E-06** at limit **
  16  Prefactor     5.4024        18.662        .69602E-05   -.38114E-04
  17  Prefactor     20.773        7.8498        .13937E-06    .40505E-05
  18  Prefactor     .10000E-03    1.6380       -.32634E-07** at limit **
  19  Prefactor     14.635        13.452        .26547E-06    .11820E-03
  20  Prefactor     30.117        17.366        .14130E-06    .73749E-04
  21  Prefactor     3.4126        2.7276       -.51102E-07   -.90581E-04
  22  Prefactor     92.632        45.360        .80142E-06    .27934E-03
  23  Normalizat    .80041        .15668       -.14556E-05   -.13569E-04
  24  Prefactor     .94307        .12507        .43795E-06   -.12519E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.1318
  Prefactor  = 0.0001
  Prefactor  = 7.12305
  Prefactor  = 3.44799
  Prefactor  = 0.0001
  Prefactor  = 59.4941
  Prefactor  = 0.0001
  Prefactor  = 0.0863158
  Prefactor  = 0.0001
  norm       = 11.7068
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.99785
  norm       = 0.0001
  Prefactor  = 5.40236
  Prefactor  = 20.7726
  Prefactor  = 0.0001
  Prefactor  = 14.6354
  Prefactor  = 30.1166
  Prefactor  = 3.41259
  Prefactor  = 92.6318
  Normalizat = 0.800407
  Prefactor  = 0.943074
 **********
 **   18 **HESSE 
 **********

 FCN=   8359.416     FROM HESSE     STATUS=OK           403 CALLS     3188 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.132        94.648        .42798E-04   -1.3828    
   2  Prefactor     .10000E-03    3.5549        .32998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1230        13.405        .15042E-03   -1.5174    
   4  Prefactor     3.4480        5.6345        .21782E-03   -1.5337    
   5  Prefactor     .10000E-03    8.8120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     59.494        33.137        .52016E-04   -1.4164    
   7  Prefactor     .10000E-03    1.0398        .14599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .86316E-01    22.326        .20930E-02   -1.5649    
   9  Prefactor     .10000E-03    1.3258        .10207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.707        1.5200        .37736E-04   -1.5024    
  11  Prefactor     .10000E-03    17.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .52204        .12587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9978        2.3576        .11732E-03   -1.5362    
  15  norm          .10000E-03    7.9105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.4024        18.736        .86460E-03   -1.5243    
  17  Prefactor     20.773        7.8659        .87889E-04   -1.4796    
  18  Prefactor     .10000E-03    1.7153        .22830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.635        13.456        .10471E-03   -1.4943    
  20  Prefactor     30.117        17.378        .73011E-04   -1.4610    
  21  Prefactor     3.4126        2.7304        .13175E-03   -1.5338    
  22  Prefactor     92.632        45.566        .41759E-04   -1.3780    
  23  Normalizat    .80041        .17717        .27837E-03   -1.0005    
  24  Prefactor     .94307        .14263        .22496E-03   -.94652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95485e-09
Minuit parameter uncertainties:
  1  94.8102
  2  7.67729e-06
  3  13.4106
  4  5.6354
  5  5.77652e-05
  6  33.1472
  7  1.09333e-06
  8  2.77581
  9  3.39467e-06
  10  1.51998
  11  0.000178827
  12  9.23146e-07
  13  0.000119792
  14  2.35768
  15  6.78815e-05
  16  18.7566
  17  7.86634
  18  1.34178e-06
  19  13.459
  20  17.3807
  21  2.73046
  22  45.5828
  23  0.177297
  24  0.14269
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  2.998e+00  2.358e+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.431e-01  1.427e-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.004e-01  1.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.41
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.93e-08 +/- 3.09e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 1.15e-05

TS (Fixed Index): 2.41
Ra Dec: 60.487 -20.580
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/924023/likelihoodResults_651974401_652233601_4FGL_J0401.9-2034_daily_bin1592.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): 0
logL (Free Index) = 8358.59786677
delta logL = 0.817679453614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8358.57928855
delta logL = 0.836257672774

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4582       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1163       1.0000          .0000       10.000    
     3 'Normalizat'    .76069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96256       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=   8358.579     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      244 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4582        11.760        .89105E-02    .11957E-02
   2  Index         3.1162        2.4979        .14489        .19425E-03
   3  Normalizat    .76070        .44133E-01    .64395E-01    .39959E-03
   4  Prefactor     .96256        .37212E-01    .45797E-01    .49498E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.45821
  Index      = 3.11624
  Normalizat = 0.7607
  Prefactor  = 0.962559
 **********
 **   18 **HESSE 
 **********

 FCN=   8358.579     FROM HESSE     STATUS=OK            31 CALLS      275 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4582        2.1491        .62275E-04   -1.5466    
   2  Index         3.1162        .86020        .51646E-02   -.38629    
   3  Normalizat    .76070        .16654        .28488E-03   -1.0154    
   4  Prefactor     .96256        .14229        .22286E-03   -.93988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75237e-10
Minuit parameter uncertainties:
  1  2.14925
  2  0.865227
  3  0.166653
  4  0.14235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/924023': 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) = 8358.57928854
delta logL = 0.836257682588

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.458e+00  2.149e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  3.116e+00  8.652e-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:  9.626e-01  1.423e-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:  7.607e-01  1.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.16
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 3.12 +/- 0.87
Photon Flux (Free Index): 7.15e-08 +/- 4.47e-08
Energy Flux (Free Index): 1.35e-05 +/- 8.53e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/924023/cmap_HighResolution_651974401_652233601_4FGL_J0401.9-2034_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-03', comment='SUCCESS', photon_flux='3.93e-08', energy_flux2='1.35e-05', photon_flux_error='3.09e-08', dlogl='8.36e-01', energy_flux='1.47e-05', photon_flux2='7.15e-08', job_status='DONE', time_completed='2021-09-02 00:42:18.340669', photon_index_error2='0.87', photon_index2='3.12', ts='2.41', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='8.53e-06', EG='0.80', time_epoch_completed='1630568538.34', return_code='0', job_id='924023', GAL2='0.96', EG2='0.76', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='4.47e-08', ts2='4.16', photon_index='2.31' WHERE bin_id='1592' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 00:42:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 924023: <4FGL_J0401.9-2034_daily_bin1592> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1592> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Sep  2 00:25:42 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 00:27:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 00:27:18 2021
Terminated at Thu Sep  2 00:42:19 2021
Results reported at Thu Sep  2 00:42:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1592 60.4867 -20.5804 651974401 652233601 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 :                                   868.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             373.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            997 sec.

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

