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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1585
RA = 60.4867, Dec = -20.5804
tmin = 650160001, tmax = 650419201
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='166060', job_status='RUN', time_executed='2021-08-19 23:43:05.938267', time_epoch_executed='1629441785.94' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166060

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166060/ft1_4FGL_J0401.9-2034_daily_bin1585.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166060/ft2_4FGL_J0401.9-2034_daily_bin1585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166060/ft1_4FGL_J0401.9-2034_daily_bin1585.fits outfile=/scratch/kocevski/166060/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1585.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=650160001.0 tmax=650419201.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.35
user 4.08
sys 8.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/166060/ft2_4FGL_J0401.9-2034_daily_bin1585.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/166060/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1585.fits evtable="EVENTS" outfile="/scratch/kocevski/166060/ft1_filtered_4FGL_J0401.9-2034_daily_bin1585.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 8.47
user 0.33
sys 8.10

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/166060/ft1_filtered_4FGL_J0401.9-2034_daily_bin1585.fits" evtable="EVENTS" scfile=/scratch/kocevski/166060/ft2_4FGL_J0401.9-2034_daily_bin1585.fits sctable="SC_DATA" outfile=/scratch/kocevski/166060/ltcube_650160001_650419201_4FGL_J0401.9-2034_daily_bin1585.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/166060/ft2_4FGL_J0401.9-2034_daily_bin1585.fits
.....................!
real 20.50
user 11.20
sys 9.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166060/ft1_filtered_4FGL_J0401.9-2034_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/166060/ft2_4FGL_J0401.9-2034_daily_bin1585.fits sctable="SC_DATA" expcube=/scratch/kocevski/166060/ltcube_650160001_650419201_4FGL_J0401.9-2034_daily_bin1585.fits outfile=/scratch/kocevski/166060/expmap_650160001_650419201_4FGL_J0401.9-2034_daily_bin1585.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/166060/ltcube_650160001_650419201_4FGL_J0401.9-2034_daily_bin1585.fits
.....................!
real 199.98
user 184.23
sys 15.42

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/166060/ft1_filtered_4FGL_J0401.9-2034_daily_bin1585.fits scfile=/scratch/kocevski/166060/ft2_4FGL_J0401.9-2034_daily_bin1585.fits outfile=/scratch/kocevski/166060/cmap_650160001_650419201_4FGL_J0401.9-2034_daily_bin1585.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 8.25
user 0.37
sys 7.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166060/ft1_filtered_4FGL_J0401.9-2034_daily_bin1585.fits scfile=/scratch/kocevski/166060/ft2_4FGL_J0401.9-2034_daily_bin1585.fits outfile=/scratch/kocevski/166060/cmap_HighResolution_650160001_650419201_4FGL_J0401.9-2034_daily_bin1585.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 8.34
user 0.39
sys 7.91

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/166060/ft1_filtered_4FGL_J0401.9-2034_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/166060/ft2_4FGL_J0401.9-2034_daily_bin1585.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/166060/Model_4FGL_J0401.9-2034_daily_bin1585.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/166060/ft1_filtered_4FGL_J0401.9-2034_daily_bin1585.fits.....................!
real 139.80
user 127.95
sys 11.58

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9015       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17432E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0060       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9616       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5989       1.0000         .10000E-03   10000.    
    10 'norm      '    9.2872       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.706       1.0000         .10000E-03   10000.    
    12 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5937       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3111       1.0000         .10000E-03   10000.    
    15 'norm      '    19.012       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .75787       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8274       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4914       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0453       1.0000         .10000E-03   10000.    
    22 'Prefactor '    77.045       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1763       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74938       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=   5341.840     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2757 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.188        .22145E-06** at limit **
   2  Prefactor     5.8973        5.8854       -.95264E-07   -.90559E-04
   3  Prefactor     .10000E-03    52.780        .15941E-05** at limit **
   4  Prefactor     2.0058        16.709        .25882E-05   -.73950E-03
   5  Prefactor     .10000E-03    25.227       -.27513E-05** at limit **
   6  Prefactor     .10000E-03    17.025       -.42104E-05** at limit **
   7  Prefactor     .10000E-03    .92664        .31729E-07** at limit **
   8  Prefactor     4.9673        6.6048        .10843E-05   -.20396E-02
   9  Prefactor     3.5953        6.2883       -.70709E-06   -.14988E-03
  10  norm          9.2874        1.9624       -.49706E-07   -.34048E-04
  11  Prefactor     31.697        33.059        .41750E-05    .10189E-03
  12  norm          .10000E-03    .81742        .47059E-07** at limit **
  13  Prefactor     4.5598        35.687       -.84545E-05   -.46816E-04
  14  Prefactor     6.3117        3.4208        .29765E-07   -.19909E-04
  15  norm          19.014        13.442        .10235E-06   -.12652E-04
  16  Prefactor     .10000E-03    18.478        .61301E-05** at limit **
  17  Prefactor     .80299        5.0824       -.18313E-06    .16041E-03
  18  Prefactor     .10000E-03    2.0559       -.22935E-07** at limit **
  19  Prefactor     6.8197        26.130       -.75549E-05   -.47551E-04
  20  Prefactor     6.4786        24.444       -.42400E-05   -.35842E-04
  21  Prefactor     8.0458        6.6343       -.90970E-06   -.10829E-03
  22  Prefactor     77.065        60.111        .12858E-04    .19336E-03
  23  Normalizat    1.1762        .21408       -.29829E-06    .43231E-04
  24  Prefactor     .74946        .16702        .11744E-06    .21146E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.8973
  Prefactor  = 0.0001
  Prefactor  = 2.00575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.96735
  Prefactor  = 3.59528
  norm       = 9.28744
  Prefactor  = 31.6974
  norm       = 0.0001
  Prefactor  = 4.55982
  Prefactor  = 6.31173
  norm       = 19.0136
  Prefactor  = 0.0001
  Prefactor  = 0.802988
  Prefactor  = 0.0001
  Prefactor  = 6.81967
  Prefactor  = 6.47858
  Prefactor  = 8.04575
  Prefactor  = 77.0653
  Normalizat = 1.17615
  Prefactor  = 0.749459
 **********
 **   18 **HESSE 
 **********

 FCN=   5341.840     FROM HESSE     STATUS=OK           403 CALLS     3160 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.8973        5.8692        .16531E-03   -1.5222    
   3  Prefactor     .10000E-03    53.925        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0058        27.854        .14617E-02   -1.5425    
   5  Prefactor     .10000E-03    25.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .93539        .68654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.9673        8.0624        .90275E-03   -1.5262    
   9  Prefactor     3.5953        6.4604        .19211E-03   -1.5329    
  10  norm          9.2874        1.9847        .43280E-04   -1.5098    
  11  Prefactor     31.697        32.826        .71159E-04   -1.4581    
  12  norm          .10000E-03    .84649        .12872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.5598        35.193        .18780E-03   -1.5281    
  14  Prefactor     6.3117        3.4231        .94977E-04   -1.5205    
  15  norm          19.014        13.442        .91856E-04   -1.4836    
  16  Prefactor     .10000E-03    18.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .80299        23.475        .30157E-02   -1.5529    
  18  Prefactor     .10000E-03    2.0713        .10228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.8197        26.297        .15355E-03   -1.5186    
  20  Prefactor     6.4786        24.501        .15752E-03   -1.5199    
  21  Prefactor     8.0458        6.6372        .14135E-03   -1.5141    
  22  Prefactor     77.065        60.342        .45749E-04   -1.3950    
  23  Normalizat    1.1762        .25192        .25923E-03   -.87343    
  24  Prefactor     .74946        .19348        .25908E-03   -1.0162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18466e-08
Minuit parameter uncertainties:
  1  1.16371e-05
  2  5.86978
  3  2.99975e-05
  4  14.957
  5  9.80385e-05
  6  0.000128662
  7  4.69284e-09
  8  8.06416
  9  6.46164
  10  1.98469
  11  32.8443
  12  1.9757e-07
  13  25.3561
  14  3.42325
  15  13.4437
  16  0.00017122
  17  8.68657
  18  5.47447e-06
  19  26.3415
  20  24.5392
  21  6.6378
  22  60.3902
  23  0.252184
  24  0.193654
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  6.312e+00  3.423e+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.495e-01  1.937e-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.176e+00  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.32
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 8.28e-08 +/- 4.49e-08
Energy Flux (Fixed Index): 3.09e-05 +/- 1.68e-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) = 5341.81371636
delta logL = 0.0258123799285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5341.80505602
delta logL = 0.034472716884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8160       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1923       1.0000          .0000       10.000    
     3 'Normalizat'    1.1850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74467       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=   5341.805     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      200 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8161        89.498        .38420E-02    .99457E-03
   2  Index         2.1924        6.0668        .15253        .49908E-04
   3  Normalizat    1.1848        .15388        .58432E-01    .77448E-05
   4  Prefactor     .74475        .99366E-01    .42993E-01    .14393E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.81605
  Index      = 2.19242
  Normalizat = 1.18484
  Prefactor  = 0.744748
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8161        4.1276        .10014E-03   -1.5186    
   2  Index         2.1924        .44319        .59202E-02   -.59622    
   3  Normalizat    1.1848        .23274        .25841E-03   -.87073    
   4  Prefactor     .74475        .18904        .25981E-03   -1.0180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09586e-10
Minuit parameter uncertainties:
  1  4.12776
  2  0.444039
  3  0.232945
  4  0.189203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166060': 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) = 5341.80505583
delta logL = 0.0344729069275

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  6.816e+00  4.128e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.192e+00  4.440e-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.447e-01  1.892e-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.185e+00  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.34
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 2.19 +/- 0.44
Photon Flux (Free Index): 7.56e-08 +/- 4.94e-08
Energy Flux (Free Index): 3.45e-05 +/- 2.49e-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/166060/cmap_HighResolution_650160001_650419201_4FGL_J0401.9-2034_daily_bin1585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.28e-08', energy_flux2='3.45e-05', photon_flux_error='4.49e-08', dlogl='3.45e-02', energy_flux='3.09e-05', photon_flux2='7.56e-08', job_status='DONE', time_completed='2021-08-19 23:55:17.636172', photon_index_error2='0.44', photon_index2='2.19', ts='7.32', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='2.49e-05', EG='1.18', time_epoch_completed='1629442517.64', return_code='0', job_id='166060', GAL2='0.74', EG2='1.18', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='4.94e-08', ts2='7.34', photon_index='2.31' WHERE bin_id='1585' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:55:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 166060: <4FGL_J0401.9-2034_daily_bin1585> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1585 60.4867 -20.5804 650160001 650419201 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 :                                   832.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            882 sec.

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

