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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1225
RA = 60.4867, Dec = -20.5804
tmin = 556848001, tmax = 557107201
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='164464', job_status='RUN', time_executed='2021-08-19 23:37:26.755668', time_epoch_executed='1629441446.76' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164464

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164464/ft1_4FGL_J0401.9-2034_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164464/ft2_4FGL_J0401.9-2034_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164464/ft1_4FGL_J0401.9-2034_daily_bin1225.fits outfile=/scratch/kocevski/164464/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1225.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=556848001.0 tmax=557107201.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.65
user 3.35
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164464/ft1_filtered_4FGL_J0401.9-2034_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/164464/ft2_4FGL_J0401.9-2034_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/164464/ltcube_556848001_557107201_4FGL_J0401.9-2034_daily_bin1225.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/164464/ft2_4FGL_J0401.9-2034_daily_bin1225.fits
.....................!
real 12.18
user 11.74
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164464/ft1_filtered_4FGL_J0401.9-2034_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/164464/ft2_4FGL_J0401.9-2034_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/164464/ltcube_556848001_557107201_4FGL_J0401.9-2034_daily_bin1225.fits outfile=/scratch/kocevski/164464/expmap_556848001_557107201_4FGL_J0401.9-2034_daily_bin1225.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/164464/ltcube_556848001_557107201_4FGL_J0401.9-2034_daily_bin1225.fits
.....................!
real 189.52
user 184.88
sys 4.34

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/164464/ft1_filtered_4FGL_J0401.9-2034_daily_bin1225.fits scfile=/scratch/kocevski/164464/ft2_4FGL_J0401.9-2034_daily_bin1225.fits outfile=/scratch/kocevski/164464/cmap_556848001_557107201_4FGL_J0401.9-2034_daily_bin1225.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.59
user 0.38
sys 0.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164464/ft1_filtered_4FGL_J0401.9-2034_daily_bin1225.fits scfile=/scratch/kocevski/164464/ft2_4FGL_J0401.9-2034_daily_bin1225.fits outfile=/scratch/kocevski/164464/cmap_HighResolution_556848001_557107201_4FGL_J0401.9-2034_daily_bin1225.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.60
user 0.37
sys 0.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164464/ft1_filtered_4FGL_J0401.9-2034_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/164464/ft2_4FGL_J0401.9-2034_daily_bin1225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164464/Model_4FGL_J0401.9-2034_daily_bin1225.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/164464/ft1_filtered_4FGL_J0401.9-2034_daily_bin1225.fits.....................!
real 187.22
user 185.68
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3627       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5551       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1589       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4226       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7309       1.0000         .10000E-03   10000.    
    10 'norm      '    4.4900       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.499       1.0000         .10000E-03   10000.    
    12 'norm      '    .79942       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .51173       1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4942       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .88005       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.299       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8205       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.970       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0457       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98365       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=   8510.261     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2775 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    78.510       -.49259E-06** at limit **
   2  Prefactor     5.3635        3.5105       -.15231E-06   -.19977E-03
   3  Prefactor     .10000E-03    23.668        .13535E-05** at limit **
   4  Prefactor     6.5552        11.542       -.93290E-06   -.12407E-03
   5  Prefactor     .10000E-03    13.846        .55554E-06** at limit **
   6  Prefactor     .10000E-03    8.7926       -.12925E-06** at limit **
   7  Prefactor     1.1590        1.3118        .13628E-08   -.37445E-04
   8  Prefactor     4.4228        3.4568        .48231E-06    .36367E-03
   9  Prefactor     2.7308        2.6904       -.25006E-06   -.17930E-03
  10  norm          4.4900        1.1046       -.28184E-07   -.76069E-04
  11  Prefactor     29.498        18.823       -.16520E-06   -.47389E-04
  12  norm          .79902        1.0410        .75653E-08   -.63155E-04
  13  Prefactor     .10000E-03    5.6384        .15536E-06** at limit **
  14  Prefactor     .50755        1.6785       -.50496E-07   -.15146E-03
  15  norm          .10000E-03    5.3184       -.15522E-06** at limit **
  16  Prefactor     .10000E-03    4.7868        .38421E-07** at limit **
  17  Prefactor     5.4940        2.0545       -.56760E-07   -.78283E-03
  18  Prefactor     .10000E-03    1.6816       -.16866E-07** at limit **
  19  Prefactor     .92017        10.299        .25370E-05   -.60661E-03
  20  Prefactor     17.299        18.958       -.20811E-06   -.47523E-04
  21  Prefactor     1.8203        3.4889        .11811E-06   -.61390E-04
  22  Prefactor     20.966        26.568       -.34326E-05   -.30228E-03
  23  Normalizat    1.0457        .15594       -.17075E-06   -.28640E-03
  24  Prefactor     .98364        .13169        .14637E-06   -.28853E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.36351
  Prefactor  = 0.0001
  Prefactor  = 6.55519
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.15901
  Prefactor  = 4.4228
  Prefactor  = 2.73084
  norm       = 4.49003
  Prefactor  = 29.4979
  norm       = 0.799024
  Prefactor  = 0.0001
  Prefactor  = 0.507553
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.49403
  Prefactor  = 0.0001
  Prefactor  = 0.920166
  Prefactor  = 17.2987
  Prefactor  = 1.82032
  Prefactor  = 20.9658
  Normalizat = 1.04566
  Prefactor  = 0.983643
 **********
 **   18 **HESSE 
 **********

 FCN=   8510.261     FROM HESSE     STATUS=OK           405 CALLS     3180 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    78.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.3635        3.5142        .13588E-03   -1.5245    
   3  Prefactor     .10000E-03    24.560        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.5552        11.573        .15674E-03   -1.5196    
   5  Prefactor     .10000E-03    13.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.7947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1590        1.2869        .10726E-03   -1.5493    
   8  Prefactor     4.4228        3.4653        .13839E-03   -1.5287    
   9  Prefactor     2.7308        2.6746        .13847E-03   -1.5377    
  10  norm          4.4900        1.1083        .45241E-04   -1.5284    
  11  Prefactor     29.498        18.833        .73767E-04   -1.4621    
  12  norm          .79902        .88658        .96438E-03   -1.5529    
  13  Prefactor     .10000E-03    5.6475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .50755        2.3080        .19699E-02   -1.5565    
  15  norm          .10000E-03    5.3920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.4940        6.2221        .85708E-03   -1.5239    
  18  Prefactor     .10000E-03    1.7362        .23340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .92017        38.406        .43491E-02   -1.5516    
  20  Prefactor     17.299        18.977        .96296E-04   -1.4876    
  21  Prefactor     1.8203        3.4763        .23246E-03   -1.5438    
  22  Prefactor     20.966        26.793        .87466E-04   -1.4792    
  23  Normalizat    1.0457        .18378        .25874E-03   -.91516    
  24  Prefactor     .98364        .15369        .23230E-03   -.93277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37659e-08
Minuit parameter uncertainties:
  1  0.000104106
  2  3.51435
  3  0.000163714
  4  11.5766
  5  4.84664e-05
  6  8.68799e-06
  7  1.28697
  8  3.4655
  9  2.67468
  10  1.10827
  11  18.8365
  12  0.886597
  13  9.93423e-06
  14  2.16458
  15  8.41151e-06
  16  1.79497e-06
  17  6.22282
  18  2.25856e-06
  19  11.897
  20  18.9835
  21  3.47666
  22  26.8086
  23  0.183891
  24  0.153754
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  5.076e-01  2.165e+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.836e-01  1.538e-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.046e+00  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 60.487 -20.580
Photon Flux Upper Limit: 7.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164464/likelihoodResults_556848001_557107201_4FGL_J0401.9-2034_daily_bin1225.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) = 8510.19622611
delta logL = 0.0643175850673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8510.19305872
delta logL = 0.0674849704537

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40522       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9850       1.0000          .0000       10.000    
     3 'Normalizat'    1.0346       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98858       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8510.193     FROM MIGRAD    STATUS=FAILED        94 CALLS      252 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40134        63.378        .12613E-03    .48673E-05
   2  Index         2.9890        6.8153        .13442E-01    .31436E-03
   3  Normalizat    1.0347        .19921        .25981E-03    .13128E-05
   4  Prefactor     .98856        .18243        .23179E-03    .49047E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8510.193     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      349 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40134        63.378        .12438E-03   -1.5581    
   2  Index         2.9890        6.8153        .11974E-02   -.41392    
   3  Normalizat    1.0347        .19921        .10425E-03   -.91877    
   4  Prefactor     .98856        .18243        .84223E-04   -.93112    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8510.193     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      378 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40134        1.9776        .50451E-05    .48673E-05
   2  Index         2.9890        2.3503        .26884E-02    .12483E-04
   3  Normalizat    1.0347        .17702        .10392E-04    .13128E-05
   4  Prefactor     .98856        .15278        .92716E-05    .98095E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.401343
  Index      = 2.98898
  Normalizat = 1.03468
  Prefactor  = 0.988561
 **********
 **   18 **HESSE 
 **********

 FCN=   8510.193     FROM HESSE     STATUS=OK            25 CALLS      403 TOTAL
                     EDM=   .29E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40134        1.7334        .50451E-05   -1.5581    
   2  Index         2.9890        2.2127        .53768E-03   -.41392    
   3  Normalizat    1.0347        .17705        .20784E-05   -.91877    
   4  Prefactor     .98856        .15275        .18543E-05   -.93112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86576e-14
Minuit parameter uncertainties:
  1  1.66802
  2  2.30938
  3  0.177155
  4  0.152814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164464': 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) = 8510.19305547
delta logL = 0.0674882190469

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  4.013e-01  1.668e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.989e+00  2.309e+00  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.886e-01  1.528e-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.035e+00  1.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 60.487 -20.580

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/164464/cmap_HighResolution_556848001_557107201_4FGL_J0401.9-2034_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.44e-03', job_status='DONE', photon_flux_upper_limit='7.09e-08', time_completed='2021-08-19 23:51:47.193451', job_id='164464', GAL2='0.99', fit_tolerance='1e-08', EG2='1.03', EG='1.05', time_epoch_completed='1629442307.19', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='6.75e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1225' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:51:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 164464: <4FGL_J0401.9-2034_daily_bin1225> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1225> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 23:35:32 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:35:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 23:35:33 2021
Terminated at Thu Aug 19 23:51:47 2021
Results reported at Thu Aug 19 23:51:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1225 60.4867 -20.5804 556848001 557107201 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 :                                   857.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            975 sec.

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

