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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1488
RA = 60.4867, Dec = -20.5804
tmin = 625017601, tmax = 625276801
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='165922', job_status='RUN', time_executed='2021-08-19 23:41:17.777588', time_epoch_executed='1629441677.78' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165922

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165922/ft1_4FGL_J0401.9-2034_daily_bin1488.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165922/ft2_4FGL_J0401.9-2034_daily_bin1488.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165922/ft1_4FGL_J0401.9-2034_daily_bin1488.fits outfile=/scratch/kocevski/165922/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1488.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=625017601.0 tmax=625276801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.57
user 3.40
sys 1.12

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/165922/ft1_filtered_4FGL_J0401.9-2034_daily_bin1488.fits" evtable="EVENTS" scfile=/scratch/kocevski/165922/ft2_4FGL_J0401.9-2034_daily_bin1488.fits sctable="SC_DATA" outfile=/scratch/kocevski/165922/ltcube_625017601_625276801_4FGL_J0401.9-2034_daily_bin1488.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/165922/ft2_4FGL_J0401.9-2034_daily_bin1488.fits
.....................!
real 13.40
user 11.92
sys 1.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165922/ft1_filtered_4FGL_J0401.9-2034_daily_bin1488.fits evtable="EVENTS" scfile=/scratch/kocevski/165922/ft2_4FGL_J0401.9-2034_daily_bin1488.fits sctable="SC_DATA" expcube=/scratch/kocevski/165922/ltcube_625017601_625276801_4FGL_J0401.9-2034_daily_bin1488.fits outfile=/scratch/kocevski/165922/expmap_625017601_625276801_4FGL_J0401.9-2034_daily_bin1488.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/165922/ltcube_625017601_625276801_4FGL_J0401.9-2034_daily_bin1488.fits
.....................!
real 191.13
user 184.94
sys 5.77

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/165922/ft1_filtered_4FGL_J0401.9-2034_daily_bin1488.fits scfile=/scratch/kocevski/165922/ft2_4FGL_J0401.9-2034_daily_bin1488.fits outfile=/scratch/kocevski/165922/cmap_625017601_625276801_4FGL_J0401.9-2034_daily_bin1488.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.36
user 0.36
sys 0.98

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165922/ft1_filtered_4FGL_J0401.9-2034_daily_bin1488.fits scfile=/scratch/kocevski/165922/ft2_4FGL_J0401.9-2034_daily_bin1488.fits outfile=/scratch/kocevski/165922/cmap_HighResolution_625017601_625276801_4FGL_J0401.9-2034_daily_bin1488.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.46
user 0.37
sys 1.07

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/165922/ft1_filtered_4FGL_J0401.9-2034_daily_bin1488.fits evtable="EVENTS" scfile=/scratch/kocevski/165922/ft2_4FGL_J0401.9-2034_daily_bin1488.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/165922/Model_4FGL_J0401.9-2034_daily_bin1488.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/165922/ft1_filtered_4FGL_J0401.9-2034_daily_bin1488.fits....................!
real 175.20
user 172.41
sys 2.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    172.00       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12726E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.415       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2595       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5289       1.0000         .10000E-03   10000.    
    10 'norm      '    11.829       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.217       1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3715       1.0000         .10000E-03   10000.    
    15 'norm      '    19.685       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10605E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24521E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .30910E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .52681       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2655       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=   8232.996     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2765 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     172.00        149.79       -.88935E-07   -.77174E-05
   2  Prefactor     .10000E-03    2.6084       -.26461E-06** at limit **
   3  Prefactor     .10004E-03    19.271       -.10716E-04** at limit **
   4  Prefactor     19.414        11.880        .34528E-08   -.77297E-05
   5  Prefactor     .10000E-03    11.275        .19112E-06** at limit **
   6  Prefactor     .10000E-03    9.6262       -.15852E-05** at limit **
   7  Prefactor     4.2599        1.9303       -.91290E-07    .31607E-03
   8  Prefactor     .10000E-03    1.7104        .13959E-06** at limit **
   9  Prefactor     1.5287        2.4013       -.14813E-06    .98226E-04
  10  norm          11.829        1.4516        .17076E-07    .17384E-03
  11  Prefactor     22.215        15.554        .28039E-07   -.15487E-04
  12  norm          .10000E-03    .36443        .29673E-06** at limit **
  13  Prefactor     .10000E-03    7.0753       -.27174E-06** at limit **
  14  Prefactor     2.3711        1.8176       -.14881E-06    .17342E-02
  15  norm          19.684        12.785        .45848E-07    .75695E-04
  16  Prefactor     .10000E-03    35.316       -.15283E-05** at limit **
  17  Prefactor     .10000E-03    8.0808        .26250E-06** at limit **
  18  Prefactor     .10007E-03    11.489       -.89076E-05** at limit **
  19  Prefactor     .10000E-03    21.982       -.20515E-05** at limit **
  20  Prefactor     .10000E-03    11.092       -.18919E-06** at limit **
  21  Prefactor     .10000E-03    1.3915       -.87389E-07** at limit **
  22  Prefactor     .10012E-03    116.53        .13250E-04** at limit **
  23  Normalizat    .52683        .15563       -.97185E-06   -.28288E-03
  24  Prefactor     1.2655        .13607        .34329E-06   -.35319E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 172.002
  Prefactor  = 0.0001
  Prefactor  = 0.000100044
  Prefactor  = 19.4142
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 4.25989
  Prefactor  = 0.0001
  Prefactor  = 1.52865
  norm       = 11.8287
  Prefactor  = 22.2148
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.37115
  norm       = 19.6839
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100071
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100123
  Normalizat = 0.526829
  Prefactor  = 1.26552
 **********
 **   18 **HESSE 
 **********

 FCN=   8232.996     FROM HESSE     STATUS=OK           395 CALLS     3160 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     172.00        149.31        .30765E-04   -1.3077    
   2  Prefactor     .10000E-03    2.7204        .28578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10004E-03    38.179        .45785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.414        11.875        .90899E-04   -1.4826    
   5  Prefactor     .10000E-03    11.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.7821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.2599        1.9198        .40371E-03   -1.5295    
   8  Prefactor     .10000E-03    1.7854        .23130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5287        2.3684        .16727E-03   -1.5461    
  10  norm          11.829        1.4504        .36507E-04   -1.5020    
  11  Prefactor     22.215        15.546        .84979E-04   -1.4765    
  12  norm          .10000E-03    .59322        .10527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.0936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.3711        1.8406        .51936E-03   -1.5400    
  15  norm          19.684        12.773        .90275E-04   -1.4820    
  16  Prefactor     .10000E-03    35.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.4360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10007E-03    18.436        .20434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.807        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.3952        .10455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10012E-03    126.33        .42754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .52683        .16685        .33236E-03   -1.1119    
  24  Prefactor     1.2655        .14986        .20361E-03   -.84338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25096e-09
Minuit parameter uncertainties:
  1  149.645
  2  2.3689e-05
  3  0.0025814
  4  11.8761
  5  4.1771e-05
  6  0.000320957
  7  1.91983
  8  1.67416e-05
  9  2.36854
  10  1.45045
  11  15.5487
  12  1.70006e-05
  13  4.52293e-05
  14  1.84067
  15  12.7752
  16  0.00048464
  17  6.38221e-07
  18  0.00228452
  19  0.000612628
  20  4.34682e-05
  21  7.48203e-06
  22  0.00790493
  23  0.167008
  24  0.149911
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  2.371e+00  1.841e+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:  1.266e+00  1.499e-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:  5.268e-01  1.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.70
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.11e-08 +/- 2.41e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 9.01e-06

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) = 8232.75019267
delta logL = 0.245568664592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8232.67463716
delta logL = 0.321124171076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3004       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4580       1.0000          .0000       10.000    
     3 'Normalizat'    .55313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2572       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=   8232.675     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      199 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3004        1.2721        .96873E-02   -.13079E-02
   2  Index         1.4581        .43511        .30306       -.86440E-04
   3  Normalizat    .55310        .14647        .73349E-01    .45866E-04
   4  Prefactor     1.2572        .13453        .33401E-01   -.35138E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.30036
  Index      = 1.45813
  Normalizat = 0.553096
  Prefactor  = 1.2572
 **********
 **   18 **HESSE 
 **********

 FCN=   8232.675     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3004        2.1069        .98100E-04   -1.5480    
   2  Index         1.4581        .87293        .10838E-01   -.78719    
   3  Normalizat    .55310        .16171        .32475E-03   -1.1001    
   4  Prefactor     1.2572        .14896        .20422E-03   -.84589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08978e-10
Minuit parameter uncertainties:
  1  2.10706
  2  0.882088
  3  0.16185
  4  0.149008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165922': 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) = 8232.67463708
delta logL = 0.321124245262

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.300e+00  2.107e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  1.458e+00  8.821e-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.257e+00  1.490e-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:  5.531e-01  1.618e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.32
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 1.46 +/- 0.88
Photon Flux (Free Index): 7.00e-09 +/- 1.31e-08
Energy Flux (Free Index): 2.55e-05 +/- 4.31e-05

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/165922/cmap_HighResolution_625017601_625276801_4FGL_J0401.9-2034_daily_bin1488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.11e-08', energy_flux2='2.55e-05', photon_flux_error='2.41e-08', dlogl='3.21e-01', energy_flux='1.16e-05', photon_flux2='7.00e-09', job_status='DONE', time_completed='2021-08-19 23:54:21.942931', photon_index_error2='0.88', photon_index2='1.46', ts='6.70', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='4.31e-05', EG='0.53', time_epoch_completed='1629442461.94', return_code='0', job_id='165922', GAL2='1.26', EG2='0.55', return_code2='0', energy_flux_error='9.01e-06', photon_flux_error2='1.31e-08', ts2='7.32', photon_index='2.31' WHERE bin_id='1488' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:54:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 165922: <4FGL_J0401.9-2034_daily_bin1488> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1488> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 23:40:28 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:40:30 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:30 2021
Terminated at Thu Aug 19 23:54:22 2021
Results reported at Thu Aug 19 23:54:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1488 60.4867 -20.5804 625017601 625276801 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 :                                   771.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             364.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

