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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1115
RA = 60.4867, Dec = -20.5804
tmin = 528336001, tmax = 528595201
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='164307', job_status='RUN', time_executed='2021-08-19 23:38:12.721778', time_epoch_executed='1629441492.72' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164307

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164307/ft1_4FGL_J0401.9-2034_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164307/ft2_4FGL_J0401.9-2034_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164307/ft1_4FGL_J0401.9-2034_daily_bin1115.fits outfile=/scratch/kocevski/164307/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1115.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=528336001.0 tmax=528595201.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.96
user 3.20
sys 1.71

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164307/ft1_filtered_4FGL_J0401.9-2034_daily_bin1115.fits" evtable="EVENTS" scfile=/scratch/kocevski/164307/ft2_4FGL_J0401.9-2034_daily_bin1115.fits sctable="SC_DATA" outfile=/scratch/kocevski/164307/ltcube_528336001_528595201_4FGL_J0401.9-2034_daily_bin1115.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/164307/ft2_4FGL_J0401.9-2034_daily_bin1115.fits
.....................!
real 13.67
user 11.59
sys 2.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164307/ft1_filtered_4FGL_J0401.9-2034_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/164307/ft2_4FGL_J0401.9-2034_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/164307/ltcube_528336001_528595201_4FGL_J0401.9-2034_daily_bin1115.fits outfile=/scratch/kocevski/164307/expmap_528336001_528595201_4FGL_J0401.9-2034_daily_bin1115.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/164307/ltcube_528336001_528595201_4FGL_J0401.9-2034_daily_bin1115.fits
.....................!
real 192.72
user 185.25
sys 6.98

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/164307/ft1_filtered_4FGL_J0401.9-2034_daily_bin1115.fits scfile=/scratch/kocevski/164307/ft2_4FGL_J0401.9-2034_daily_bin1115.fits outfile=/scratch/kocevski/164307/cmap_528336001_528595201_4FGL_J0401.9-2034_daily_bin1115.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.02
user 0.37
sys 1.63

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164307/ft1_filtered_4FGL_J0401.9-2034_daily_bin1115.fits scfile=/scratch/kocevski/164307/ft2_4FGL_J0401.9-2034_daily_bin1115.fits outfile=/scratch/kocevski/164307/cmap_HighResolution_528336001_528595201_4FGL_J0401.9-2034_daily_bin1115.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.03
user 0.37
sys 1.64

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164307/ft1_filtered_4FGL_J0401.9-2034_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/164307/ft2_4FGL_J0401.9-2034_daily_bin1115.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164307/Model_4FGL_J0401.9-2034_daily_bin1115.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/164307/ft1_filtered_4FGL_J0401.9-2034_daily_bin1115.fits.....................!
real 158.65
user 154.94
sys 3.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    2.9868       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   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 '    .96648       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1839       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2158       1.0000         .10000E-03   10000.    
    12 'norm      '    3.2794       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.426       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .99575E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.530       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0946       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1249       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90432       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0326       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=   7030.641     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2752 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.812        .90712E-02** at limit **
   2  Prefactor     2.9870        2.7438        .58725E-02   -.12394E-03
   3  Prefactor     .10000E-03    9.9435        .90712E-02** at limit **
   4  Prefactor     .10000E-03    2.6912        .90712E-02** at limit **
   5  Prefactor     .10003E-03    20.554        .90712E-02** at limit **
   6  Prefactor     .10002E-03    14.920        .90712E-02** at limit **
   7  Prefactor     .96617        1.4765        .23459E-01    .27735E-03
   8  Prefactor     .10000E-03    1.8340        .90712E-02** at limit **
   9  Prefactor     .10000E-03    1.9968        .90712E-02** at limit **
  10  norm          2.1839        .76907        .69636E-02    .34505E-04
  11  Prefactor     7.2179        20.738        .37331E-02    .10084E-03
  12  norm          3.2803        1.4703        .55900E-02    .48365E-03
  13  Prefactor     15.423        18.214        .25494E-02    .60991E-04
  14  Prefactor     .10000E-03    1.0316        .60894E-01** at limit **
  15  norm          .10000E-03    14.911        .90712E-02** at limit **
  16  Prefactor     13.531        14.059        .27224E-02    .20359E-03
  17  Prefactor     .10000E-03    6.5276        .90712E-02** at limit **
  18  Prefactor     2.0958        3.7234        .71302E-02    .92134E-03
  19  Prefactor     .10000E-03    5.3598        .90712E-02** at limit **
  20  Prefactor     .10008E-03    17.501        .90712E-02** at limit **
  21  Prefactor     3.1248        3.2622        .57338E-02   -.13755E-03
  22  Prefactor     .10000E-03    11.067        .90712E-02** at limit **
  23  Normalizat    .90433        .15828        .44957E-01    .72288E-04
  24  Prefactor     1.0326        .13495        .41061E-01    .59614E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 2.98696
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 0.000100016
  Prefactor  = 0.966169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18393
  Prefactor  = 7.21794
  norm       = 3.28028
  Prefactor  = 15.4232
  Prefactor  = 0.000100004
  norm       = 0.000100001
  Prefactor  = 13.5308
  Prefactor  = 0.0001
  Prefactor  = 2.09577
  Prefactor  = 0.0001
  Prefactor  = 0.000100082
  Prefactor  = 3.12476
  Prefactor  = 0.000100002
  Normalizat = 0.904328
  Prefactor  = 1.03259
 **********
 **   18 **HESSE 
 **********

 FCN=   7030.641     FROM HESSE     STATUS=OK           407 CALLS     3159 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9870        2.7510        .12955E-03   -1.5362    
   3  Prefactor     .10000E-03    10.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6921        .13434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    20.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    14.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .96617        1.2196        .11907E-02   -1.5511    
   8  Prefactor     .10000E-03    1.9055        .22146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.0513        .23100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1839        .77018        .42107E-04   -1.5412    
  11  Prefactor     7.2179        20.635        .14932E-03   -1.5171    
  12  norm          3.2803        1.4545        .62852E-04   -1.5346    
  13  Prefactor     15.423        18.145        .10198E-03   -1.4922    
  14  Prefactor     .10000E-03    3.2213        .27561E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    15.346        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.531        14.052        .10889E-03   -1.4972    
  17  Prefactor     .10000E-03    6.7141        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0958        3.7002        .20008E-03   -1.5418    
  19  Prefactor     .10000E-03    5.3734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10008E-03    17.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.1248        3.2663        .15083E-03   -1.5354    
  22  Prefactor     .10000E-03    11.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .90433        .17954        .25434E-03   -.96308    
  24  Prefactor     1.0326        .15386        .21239E-03   -.91651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.58741e-09
Minuit parameter uncertainties:
  1  0.000612322
  2  2.75111
  3  0.000146443
  4  3.85533e-07
  5  0.00154559
  6  0.000975063
  7  1.21959
  8  5.79487e-08
  9  2.06655e-07
  10  0.77018
  11  20.6553
  12  1.45455
  13  18.1511
  14  0.000236752
  15  0.000271958
  16  14.0551
  17  1.98621e-07
  18  3.70065
  19  4.11565e-06
  20  0.00240174
  21  3.26652
  22  0.000329109
  23  0.17966
  24  0.153924
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  2.368e-04  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.033e+00  1.539e-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.043e-01  1.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/164307/likelihoodResults_528336001_528595201_4FGL_J0401.9-2034_daily_bin1115.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): 102
logL (Free Index) = 7030.64103992
delta logL = -5.39911015949e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7030.29906316
delta logL = 0.341922767199

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 'Index     '    7.4677       1.0000          .0000       10.000    
     3 'Normalizat'    .87143       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0512       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=   7030.299     FROM MIGRAD    STATUS=FAILED       217 CALLS      492 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .68505E-02    .29433E-03** at limit **
   2  Index         7.4678        3.1941        .20000        .28881E-02
   3  Normalizat    .87140        .33764E-01    .25434E-03    .30981E-03
   4  Prefactor     1.0511        .29865E-01    .21239E-03    .16051E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7030.299     FROM SIMPLEX   STATUS=UNCHANGED    141 CALLS      633 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .68505E-02    .71654E-05** at limit **
   2  Index         7.4678        3.1941        .11204E-02    .28881E-02
   3  Normalizat    .87140        .33764E-01    .32495E-04    .30981E-03
   4  Prefactor     1.0511        .29865E-01    .12859E-04    .16051E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7030.299     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      727 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .20190E-01    .26708E-03** at limit **
   2  Index         7.4678        8.6349        .11536E-02    .27544E-04
   3  Normalizat    .87140        .66828E-01    .20347E-05    .33301E-03
   4  Prefactor     1.0511        .59436E-01    .84955E-05    .11910E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.46784
  Normalizat = 0.871398
  Prefactor  = 1.05115
 **********
 **   18 **HESSE 
 **********

 FCN=   7030.299     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      760 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .20855E-01    .26360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.4678        8.6430        .46145E-04    .51619    
   3  Normalizat    .87140        .67575E-01    .40694E-06   -.97473    
   4  Prefactor     1.0511        .60265E-01    .16991E-05   -.91043    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73789e-09
Minuit parameter uncertainties:
  1  6.91784e-07
  2  7.89889
  3  0.067582
  4  0.0602685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164307': 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): 102
logL (Free Index) = 7030.29906126
delta logL = 0.341924670407

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  6.918e-07  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  7.468e+00  7.899e+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:  1.051e+00  6.027e-02  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  8.714e-01  6.758e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/164307/cmap_HighResolution_528336001_528595201_4FGL_J0401.9-2034_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.63e-03', job_status='DONE', photon_flux_upper_limit='7.34e-08', time_completed='2021-08-19 23:51:45.523867', job_id='164307', GAL2='1.05', fit_tolerance='1e-08', EG2='0.87', EG='0.90', time_epoch_completed='1629442305.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.42e-01', ts2='0.73', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1115' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:51:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 164307: <4FGL_J0401.9-2034_daily_bin1115> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1115 60.4867 -20.5804 528336001 528595201 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 :                             342.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

