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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1500
RA = 60.4867, Dec = -20.5804
tmin = 628128001, tmax = 628387201
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='165939', job_status='RUN', time_executed='2021-08-19 23:41:13.701652', time_epoch_executed='1629441673.7' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165939

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165939/ft1_4FGL_J0401.9-2034_daily_bin1500.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165939/ft2_4FGL_J0401.9-2034_daily_bin1500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165939/ft1_4FGL_J0401.9-2034_daily_bin1500.fits outfile=/scratch/kocevski/165939/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1500.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=628128001.0 tmax=628387201.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 7.11
user 4.93
sys 2.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/165939/ft2_4FGL_J0401.9-2034_daily_bin1500.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/165939/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1500.fits evtable="EVENTS" outfile="/scratch/kocevski/165939/ft1_filtered_4FGL_J0401.9-2034_daily_bin1500.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 2.33
user 0.35
sys 1.97

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/165939/ft1_filtered_4FGL_J0401.9-2034_daily_bin1500.fits" evtable="EVENTS" scfile=/scratch/kocevski/165939/ft2_4FGL_J0401.9-2034_daily_bin1500.fits sctable="SC_DATA" outfile=/scratch/kocevski/165939/ltcube_628128001_628387201_4FGL_J0401.9-2034_daily_bin1500.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/165939/ft2_4FGL_J0401.9-2034_daily_bin1500.fits
.....................!
real 13.71
user 11.19
sys 2.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165939/ft1_filtered_4FGL_J0401.9-2034_daily_bin1500.fits evtable="EVENTS" scfile=/scratch/kocevski/165939/ft2_4FGL_J0401.9-2034_daily_bin1500.fits sctable="SC_DATA" expcube=/scratch/kocevski/165939/ltcube_628128001_628387201_4FGL_J0401.9-2034_daily_bin1500.fits outfile=/scratch/kocevski/165939/expmap_628128001_628387201_4FGL_J0401.9-2034_daily_bin1500.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/165939/ltcube_628128001_628387201_4FGL_J0401.9-2034_daily_bin1500.fits
.....................!
real 191.72
user 184.92
sys 6.49

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/165939/ft1_filtered_4FGL_J0401.9-2034_daily_bin1500.fits scfile=/scratch/kocevski/165939/ft2_4FGL_J0401.9-2034_daily_bin1500.fits outfile=/scratch/kocevski/165939/cmap_628128001_628387201_4FGL_J0401.9-2034_daily_bin1500.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 2.41
user 0.36
sys 2.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165939/ft1_filtered_4FGL_J0401.9-2034_daily_bin1500.fits scfile=/scratch/kocevski/165939/ft2_4FGL_J0401.9-2034_daily_bin1500.fits outfile=/scratch/kocevski/165939/cmap_HighResolution_628128001_628387201_4FGL_J0401.9-2034_daily_bin1500.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 2.43
user 0.37
sys 2.05

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/165939/ft1_filtered_4FGL_J0401.9-2034_daily_bin1500.fits evtable="EVENTS" scfile=/scratch/kocevski/165939/ft2_4FGL_J0401.9-2034_daily_bin1500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/165939/Model_4FGL_J0401.9-2034_daily_bin1500.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/165939/ft1_filtered_4FGL_J0401.9-2034_daily_bin1500.fits.....................!
real 116.24
user 112.33
sys 3.71

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44076E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .64751       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12064E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .49722       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.245       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11029E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6154       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .66792E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.709       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.357       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0143       1.0000         .10000E-03   10000.    
    15 'norm      '    8.7371       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0039       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3990       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.8492       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.4703       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.531       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93311       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98368       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=   5184.422     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2817 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    380.12       -.64501E-05** at limit **
   2  Prefactor     .64975        5.2270       -.65136E-06    .31939E-03
   3  Prefactor     .10000E-03    75.454       -.28626E-05** at limit **
   4  Prefactor     .41507        274.87        .27867E-04    .10724E-04
   5  Prefactor     .10000E-03    33.106       -.20221E-06** at limit **
   6  Prefactor     41.243        43.180        .15086E-07    .68022E-05
   7  Prefactor     .10000E-03    2.3785       -.33865E-06** at limit **
   8  Prefactor     1.6070        7.2155       -.37567E-05    .35506E-03
   9  Prefactor     .11068E-03    4.0985       -.13978E-05** at limit **
  10  norm          14.709        2.3159        .35870E-07    .10601E-02
  11  Prefactor     .10000E-03    37.348       -.22330E-05** at limit **
  12  norm          .10000E-03    .98668       -.35611E-06** at limit **
  13  Prefactor     19.370        33.535       -.61133E-06    .55199E-04
  14  Prefactor     4.0134        3.0107        .71485E-07    .45578E-03
  15  norm          8.7380        12.369       -.36677E-07    .22406E-04
  16  Prefactor     .10000E-03    11.617       -.16246E-06** at limit **
  17  Prefactor     .10000E-03    11.691       -.94610E-06** at limit **
  18  Prefactor     1.0048        3.8052       -.10629E-05   -.10224E-03
  19  Prefactor     4.3993        13.104       -.45205E-06   -.68002E-04
  20  Prefactor     9.8548        18.281        .48440E-06    .27329E-04
  21  Prefactor     9.4725        10.795        .46139E-08    .13057E-03
  22  Prefactor     28.430        53.757       -.58854E-05   -.25943E-03
  23  Normalizat    .93342        .24501        .90575E-05    .23950E-03
  24  Prefactor     .98326        .19413       -.45790E-05    .59832E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100039
  Prefactor  = 0.649752
  Prefactor  = 0.000100004
  Prefactor  = 0.415069
  Prefactor  = 0.0001
  Prefactor  = 41.2427
  Prefactor  = 0.0001
  Prefactor  = 1.60701
  Prefactor  = 0.000110677
  norm       = 14.7087
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 19.3696
  Prefactor  = 4.01337
  norm       = 8.73803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.00485
  Prefactor  = 4.39928
  Prefactor  = 9.85477
  Prefactor  = 9.47252
  Prefactor  = 28.4296
  Normalizat = 0.933422
  Prefactor  = 0.983256
 **********
 **   18 **HESSE 
 **********

 FCN=   5184.422     FROM HESSE     STATUS=OK           409 CALLS     3226 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    382.90        .19371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .64975        10.201        .30722E-02   -1.5547    
   3  Prefactor     .10000E-03    77.806        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .41507        267.93        .60506E-02   -1.5579    
   5  Prefactor     .10000E-03    33.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     41.243        43.175        .62417E-04   -1.4423    
   7  Prefactor     .10000E-03    2.4893        .21706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6070        12.566        .16657E-02   -1.5454    
   9  Prefactor     .11068E-03    15.792        .37313E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.709        2.3150        .39488E-04   -1.4941    
  11  Prefactor     .10000E-03    37.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.0207        .13993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.370        33.520        .91036E-04   -1.4827    
  14  Prefactor     4.0134        3.0093        .10314E-03   -1.5307    
  15  norm          8.7380        12.367        .13561E-03   -1.5117    
  16  Prefactor     .10000E-03    11.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0048        3.8337        .26021E-03   -1.5507    
  19  Prefactor     4.3993        13.092        .19202E-03   -1.5288    
  20  Prefactor     9.8548        18.287        .12768E-03   -1.5080    
  21  Prefactor     9.4725        10.810        .13022E-03   -1.5092    
  22  Prefactor     28.430        55.004        .75005E-04   -1.4641    
  23  Normalizat    .93342        .24993        .29288E-03   -.95295    
  24  Prefactor     .98326        .20168        .23789E-03   -.93290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64861e-09
Minuit parameter uncertainties:
  1  0.00780052
  2  5.14973
  3  0.0010636
  4  21.1846
  5  3.71705e-05
  6  43.2076
  7  1.25683e-05
  8  8.98981
  9  0.0259777
  10  2.31501
  11  0.000504216
  12  8.79931e-06
  13  33.5526
  14  3.00937
  15  12.3702
  16  1.36174e-05
  17  8.27564e-05
  18  3.83467
  19  13.1004
  20  18.2972
  21  10.8127
  22  55.1021
  23  0.250246
  24  0.201839
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  4.013e+00  3.009e+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.833e-01  2.018e-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.334e-01  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.37
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 5.26e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 1.96e-05 +/- 1.47e-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) = 5184.34885211
delta logL = 0.0728602429044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5184.34441792
delta logL = 0.0772944381069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9106       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9317       1.0000          .0000       10.000    
     3 'Normalizat'    .95970       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97162       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5184.344     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      235 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9107        3.3672        .11285E-03   -.67899E-03
   2  Index         1.9316        .83790        .99596E-02   -.48783E-04
   3  Normalizat    .95971        .23416        .28920E-03    .25159E-04
   4  Prefactor     .97162        .19269        .23917E-03    .31134E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.91067
  Index      = 1.93163
  Normalizat = 0.959715
  Prefactor  = 0.971617
 **********
 **   18 **HESSE 
 **********

 FCN=   5184.344     FROM HESSE     STATUS=OK            25 CALLS      260 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9107        3.4016        .22571E-04   -1.5312    
   2  Index         1.9316        .84558        .39838E-03   -.66070    
   3  Normalizat    .95971        .23422        .11568E-04   -.94393    
   4  Prefactor     .97162        .19279        .95669E-05   -.93682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03444e-10
Minuit parameter uncertainties:
  1  3.40181
  2  0.852179
  3  0.234472
  4  0.192929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165939': 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) = 5184.34441791
delta logL = 0.0772944432147

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  3.911e+00  3.402e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  1.932e+00  8.522e-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.716e-01  1.929e-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.597e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.51
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 1.93 +/- 0.85
Photon Flux (Free Index): 3.10e-08 +/- 4.74e-08
Energy Flux (Free Index): 2.55e-05 +/- 3.26e-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/165939/cmap_HighResolution_628128001_628387201_4FGL_J0401.9-2034_daily_bin1500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.26e-08', energy_flux2='2.55e-05', photon_flux_error='3.95e-08', dlogl='7.73e-02', energy_flux='1.96e-05', photon_flux2='3.10e-08', job_status='DONE', time_completed='2021-08-19 23:51:56.470287', photon_index_error2='0.85', photon_index2='1.93', ts='7.37', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.26e-05', EG='0.93', time_epoch_completed='1629442316.47', return_code='0', job_id='165939', GAL2='0.97', EG2='0.96', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='4.74e-08', ts2='7.51', photon_index='2.31' WHERE bin_id='1500' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:51:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 165939: <4FGL_J0401.9-2034_daily_bin1500> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1500 60.4867 -20.5804 628128001 628387201 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 :                                   644.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            688 sec.

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

