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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1106
RA = 60.4867, Dec = -20.5804
tmin = 526003201, tmax = 526262401
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='163224', job_status='RUN', time_executed='2021-08-19 23:33:22.960392', time_epoch_executed='1629441202.96' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163224

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163224/ft1_4FGL_J0401.9-2034_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163224/ft2_4FGL_J0401.9-2034_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163224/ft1_4FGL_J0401.9-2034_daily_bin1106.fits outfile=/scratch/kocevski/163224/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1106.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=526003201.0 tmax=526262401.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.56
user 3.48
sys 1.07

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163224/ft1_filtered_4FGL_J0401.9-2034_daily_bin1106.fits" evtable="EVENTS" scfile=/scratch/kocevski/163224/ft2_4FGL_J0401.9-2034_daily_bin1106.fits sctable="SC_DATA" outfile=/scratch/kocevski/163224/ltcube_526003201_526262401_4FGL_J0401.9-2034_daily_bin1106.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/163224/ft2_4FGL_J0401.9-2034_daily_bin1106.fits
.....................!
real 12.90
user 11.56
sys 1.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163224/ft1_filtered_4FGL_J0401.9-2034_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/163224/ft2_4FGL_J0401.9-2034_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/163224/ltcube_526003201_526262401_4FGL_J0401.9-2034_daily_bin1106.fits outfile=/scratch/kocevski/163224/expmap_526003201_526262401_4FGL_J0401.9-2034_daily_bin1106.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/163224/ltcube_526003201_526262401_4FGL_J0401.9-2034_daily_bin1106.fits
.....................!
real 191.49
user 185.84
sys 5.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/163224/ft1_filtered_4FGL_J0401.9-2034_daily_bin1106.fits scfile=/scratch/kocevski/163224/ft2_4FGL_J0401.9-2034_daily_bin1106.fits outfile=/scratch/kocevski/163224/cmap_526003201_526262401_4FGL_J0401.9-2034_daily_bin1106.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=60.4867 yref=-20.5804 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.39
user 0.37
sys 1.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163224/ft1_filtered_4FGL_J0401.9-2034_daily_bin1106.fits scfile=/scratch/kocevski/163224/ft2_4FGL_J0401.9-2034_daily_bin1106.fits outfile=/scratch/kocevski/163224/cmap_HighResolution_526003201_526262401_4FGL_J0401.9-2034_daily_bin1106.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=60.4867 yref=-20.5804 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.40
user 0.37
sys 1.02

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/163224/ft1_filtered_4FGL_J0401.9-2034_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/163224/ft2_4FGL_J0401.9-2034_daily_bin1106.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/163224/Model_4FGL_J0401.9-2034_daily_bin1106.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/163224/ft1_filtered_4FGL_J0401.9-2034_daily_bin1106.fits.....................!
real 123.84
user 121.32
sys 2.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.287       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4900       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.064       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .78639E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.815       1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.604       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .69282       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8949       1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.746       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2051       1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.923       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4753       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6517       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.783       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13555E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2770       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86008       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=   5238.667     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     3168 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.314        546.71        .79331E-04    .15091E-05
   2  Prefactor     7.4895        7.0716        .81034E-07   -.80404E-04
   3  Prefactor     20.067        28.913        .18384E-05    .37583E-04
   4  Prefactor     .10006E-03    8.9278       -.11136E-05** at limit **
   5  Prefactor     23.771        51.808       -.55280E-04   -.17456E-06
   6  Prefactor     51.564        56.762       -.37416E-04    .15791E-04
   7  Prefactor     .69222        2.6755       -.63947E-06   -.10335E-02
   8  Prefactor     .10000E-03    7.9482        .22151E-06** at limit **
   9  Prefactor     .10000E-03    2.7240        .43743E-07** at limit **
  10  norm          1.8955        1.1270        .49746E-06    .33181E-03
  11  Prefactor     37.751        31.053        .17514E-05    .37534E-04
  12  norm          1.2047        1.9459        .11305E-06   -.44556E-03
  13  Prefactor     33.925        33.904       -.12285E-05    .34083E-04
  14  Prefactor     .10000E-03    1.5367       -.38595E-07** at limit **
  15  norm          .10000E-03    8.7304        .28587E-07** at limit **
  16  Prefactor     1.4641        72.629        .15773E-05   -.96518E-04
  17  Prefactor     5.6515        7.4245       -.60642E-06   -.11666E-03
  18  Prefactor     .10000E-03    2.1239       -.98906E-07** at limit **
  19  Prefactor     .10000E-03    7.6124        .35550E-07** at limit **
  20  Prefactor     20.760        28.461       -.35366E-05    .68972E-05
  21  Prefactor     .10027E-03    5.7626       -.77090E-07** at limit **
  22  Prefactor     .10000E-03    22.239       -.10540E-08** at limit **
  23  Normalizat    1.2769        .21535        .31857E-05   -.22763E-05
  24  Prefactor     .86022        .16867        .17775E-05    .13779E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3143
  Prefactor  = 7.48954
  Prefactor  = 20.0667
  Prefactor  = 0.00010006
  Prefactor  = 23.7711
  Prefactor  = 51.5639
  Prefactor  = 0.692216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.89546
  Prefactor  = 37.7508
  norm       = 1.20475
  Prefactor  = 33.925
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.46407
  Prefactor  = 5.65153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.7605
  Prefactor  = 0.000100275
  Prefactor  = 0.0001
  Normalizat = 1.27694
  Prefactor  = 0.860222
 **********
 **   18 **HESSE 
 **********

 FCN=   5238.667     FROM HESSE     STATUS=OK           413 CALLS     3581 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.314        544.72        .12493E-03   -1.5066    
   2  Prefactor     7.4895        7.0605        .14654E-03   -1.5161    
   3  Prefactor     20.067        28.968        .89418E-04   -1.4812    
   4  Prefactor     .10006E-03    63.352        .41898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.771        51.896        .82081E-04   -1.4732    
   6  Prefactor     51.564        56.644        .55829E-04   -1.4271    
   7  Prefactor     .69222        2.5531        .20567E-03   -1.5542    
   8  Prefactor     .10000E-03    8.1915        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.056        .22031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8955        1.1287        .55656E-04   -1.5433    
  11  Prefactor     37.751        31.033        .65235E-04   -1.4478    
  12  norm          1.2047        1.8374        .11181E-03   -1.5488    
  13  Prefactor     33.925        33.930        .68802E-04   -1.4542    
  14  Prefactor     .10000E-03    1.5604        .87505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.7728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4641        72.935        .35360E-03   -1.5466    
  17  Prefactor     5.6515        7.4190        .16897E-03   -1.5232    
  18  Prefactor     .10000E-03    2.1643        .10297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.6212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.760        28.460        .87860E-04   -1.4796    
  21  Prefactor     .10027E-03    6.4725        .57432E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2769        .24643        .25442E-03   -.84257    
  24  Prefactor     .86022        .19343        .25096E-03   -.97545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46455e-09
Minuit parameter uncertainties:
  1  151.388
  2  7.06127
  3  28.9878
  4  0.00391317
  5  51.9948
  6  56.7029
  7  2.5535
  8  9.86992e-05
  9  3.25072e-05
  10  1.12866
  11  31.0465
  12  1.83752
  13  33.9493
  14  5.8059e-06
  15  2.23061e-05
  16  20.6931
  17  7.42024
  18  1.10159e-05
  19  1.74595e-05
  20  28.4782
  21  0.00266645
  22  3.01903e-05
  23  0.246653
  24  0.193587
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  5.806e-06  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:  8.602e-01  1.936e-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.277e+00  2.467e-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.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163224/likelihoodResults_526003201_526262401_4FGL_J0401.9-2034_daily_bin1106.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) = 5238.66993471
delta logL = -0.00303435882506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5238.66690048
delta logL = -1.30586158775e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3107       1.0000          .0000       10.000    
     3 'Normalizat'    1.2770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86025       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=   5238.667     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    30.439        .87506E-03** at limit **
   2  Index         2.3522        6.0469        .50000       -.29527E-05
   3  Normalizat    1.2769        .24161E-01    .25442E-03    .35301E-05
   4  Prefactor     .86022        .20052E-01    .25096E-03    .74747E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5238.667     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      374 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    30.439        .23279E-03** at limit **
   2  Index         2.3522        6.0469        .66105E-04   -.29527E-05
   3  Normalizat    1.2769        .24161E-01    .71990E-06    .35301E-05
   4  Prefactor     .86022        .20052E-01    .65351E-06    .74747E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5238.447     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      485 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .77895E-02    .27866E-03** at limit **
   2  Index         7.7761        3.3690        .20000        .15494E-03
   3  Normalizat    1.2247        .45927E-01    .10177E-04   -.90486E-04
   4  Prefactor     .88803        .37635E-01    .10038E-04   -.47793E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.77611
  Normalizat = 1.22473
  Prefactor  = 0.888031
 **********
 **   18 **HESSE 
 **********

 FCN=   5238.447     FROM HESSE     STATUS=OK            31 CALLS      516 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .15933E-02    .15924E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.7761        .75407        .85163E-02    .58863    
   3  Normalizat    1.2247        .23888        .20354E-05   -.85842    
   4  Prefactor     .88803        .19363        .20077E-05   -.96561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57809e-10
Minuit parameter uncertainties:
  1  1.69017e-08
  2  0.758269
  3  0.239097
  4  0.193778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163224': 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) = 5238.44712629
delta logL = 0.219774054913

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  1.690e-08  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  7.776e+00  7.583e-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:  8.880e-01  1.938e-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.225e+00  2.391e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/163224/cmap_HighResolution_526003201_526262401_4FGL_J0401.9-2034_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-03', job_status='DONE', photon_flux_upper_limit='7.85e-08', time_completed='2021-08-19 23:44:49.304124', job_id='163224', GAL2='0.89', fit_tolerance='1e-08', EG2='1.22', EG='1.28', time_epoch_completed='1629441889.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.20e-01', ts2='0.49', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1106' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:44:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 163224: <4FGL_J0401.9-2034_daily_bin1106> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1106> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 19 23:30:50 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:30:52 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:30:52 2021
Terminated at Thu Aug 19 23:44:50 2021
Results reported at Thu Aug 19 23:44:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1106 60.4867 -20.5804 526003201 526262401 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 :                                   696.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            840 sec.

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

