/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 195 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 = 7475
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0401.9-2034_daily_bin318
RA = 60.4867, Dec = -20.5804
tmin = 321753601, tmax = 322012801
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='159024', job_status='RUN', time_executed='2021-08-19 23:19:17.557897', time_epoch_executed='1629440357.56' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/159024

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/159024/ft1_4FGL_J0401.9-2034_daily_bin318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/159024/ft2_4FGL_J0401.9-2034_daily_bin318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/159024/ft1_4FGL_J0401.9-2034_daily_bin318.fits outfile=/scratch/kocevski/159024/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin318.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=321753601.0 tmax=322012801.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.05
user 3.15
sys 0.85

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/159024/ft2_4FGL_J0401.9-2034_daily_bin318.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/159024/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin318.fits evtable="EVENTS" outfile="/scratch/kocevski/159024/ft1_filtered_4FGL_J0401.9-2034_daily_bin318.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.17
user 0.31
sys 0.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/159024/ft1_filtered_4FGL_J0401.9-2034_daily_bin318.fits" evtable="EVENTS" scfile=/scratch/kocevski/159024/ft2_4FGL_J0401.9-2034_daily_bin318.fits sctable="SC_DATA" outfile=/scratch/kocevski/159024/ltcube_321753601_322012801_4FGL_J0401.9-2034_daily_bin318.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/159024/ft2_4FGL_J0401.9-2034_daily_bin318.fits
.....................!
real 12.43
user 11.31
sys 1.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/159024/ft1_filtered_4FGL_J0401.9-2034_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/159024/ft2_4FGL_J0401.9-2034_daily_bin318.fits sctable="SC_DATA" expcube=/scratch/kocevski/159024/ltcube_321753601_322012801_4FGL_J0401.9-2034_daily_bin318.fits outfile=/scratch/kocevski/159024/expmap_321753601_322012801_4FGL_J0401.9-2034_daily_bin318.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/159024/ltcube_321753601_322012801_4FGL_J0401.9-2034_daily_bin318.fits
.....................!
real 191.34
user 185.10
sys 5.89

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/159024/ft1_filtered_4FGL_J0401.9-2034_daily_bin318.fits scfile=/scratch/kocevski/159024/ft2_4FGL_J0401.9-2034_daily_bin318.fits outfile=/scratch/kocevski/159024/cmap_321753601_322012801_4FGL_J0401.9-2034_daily_bin318.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.18
user 0.36
sys 0.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/159024/ft1_filtered_4FGL_J0401.9-2034_daily_bin318.fits scfile=/scratch/kocevski/159024/ft2_4FGL_J0401.9-2034_daily_bin318.fits outfile=/scratch/kocevski/159024/cmap_HighResolution_321753601_322012801_4FGL_J0401.9-2034_daily_bin318.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.17
user 0.36
sys 0.81

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/159024/ft1_filtered_4FGL_J0401.9-2034_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/159024/ft2_4FGL_J0401.9-2034_daily_bin318.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/159024/Model_4FGL_J0401.9-2034_daily_bin318.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/159024/ft1_filtered_4FGL_J0401.9-2034_daily_bin318.fits.....................!
real 147.77
user 144.82
sys 2.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    2.9650       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5022       1.0000         .10000E-03   10000.    
     5 'Prefactor '    74.091       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.827       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9114       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .53731       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6093       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.163       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29193E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0396       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.4196       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .79040       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0341       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=   6622.213     FROM MIGRAD    STATUS=CONVERGED    981 CALLS     2829 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.916        .18142E-02** at limit **
   2  Prefactor     2.9651        2.8030        .12848E-03   -.21325E-04
   3  Prefactor     .10000E-03    18.158        .18142E-02** at limit **
   4  Prefactor     7.5024        11.138        .73210E-03   -.99229E-05
   5  Prefactor     74.099        41.493        .23322E-03   -.16037E-04
   6  Prefactor     13.828        20.524        .10772E-03   -.68602E-05
   7  Prefactor     .10000E-03    .96073        .15362E-03** at limit **
   8  Prefactor     4.9101        3.4282        .11866E-03   -.98400E-04
   9  Prefactor     .10000E-03    2.5512        .24987E-03** at limit **
  10  norm          .10000E-03    .13981        .29608E-03** at limit **
  11  Prefactor     .10000E-03    7.8563        .18142E-02** at limit **
  12  norm          .53704        1.0973        .11658E-03   -.41934E-04
  13  Prefactor     .10000E-03    12.068        .18142E-02** at limit **
  14  Prefactor     1.6094        1.7561        .10852E-03   -.65688E-04
  15  norm          .10000E-03    3.8248        .15534E-02** at limit **
  16  Prefactor     31.160        21.672        .71776E-04   -.16948E-04
  17  Prefactor     .10000E-03    6.3786        .45511E-01** at limit **
  18  Prefactor     4.0393        3.5257        .67489E-03   -.45398E-04
  19  Prefactor     8.4194        12.210        .13816E-03    .15635E-05
  20  Prefactor     .10000E-03    57.688        .36285E-03** at limit **
  21  Prefactor     .10000E-03    1.7225        .10404E-02** at limit **
  22  Prefactor     .10000E-03    6.8306        .18142E-02** at limit **
  23  Normalizat    .79063        .18469        .25718E-03   -.81779E-04
  24  Prefactor     1.0340        .15814        .20312E-03    .42481E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.9651
  Prefactor  = 0.0001
  Prefactor  = 7.50237
  Prefactor  = 74.0994
  Prefactor  = 13.8283
  Prefactor  = 0.0001
  Prefactor  = 4.91014
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.537036
  Prefactor  = 0.0001
  Prefactor  = 1.60944
  norm       = 0.0001
  Prefactor  = 31.1602
  Prefactor  = 0.0001
  Prefactor  = 4.03928
  Prefactor  = 8.41943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.790634
  Prefactor  = 1.03399
 **********
 **   18 **HESSE 
 **********

 FCN=   6622.213     FROM HESSE     STATUS=OK           387 CALLS     3216 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9651        2.8029        .51392E-05   -1.5364    
   3  Prefactor     .10000E-03    18.171        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.5024        11.137        .29284E-04   -1.5160    
   5  Prefactor     74.099        41.493        .46645E-04   -1.3984    
   6  Prefactor     13.828        20.526        .43087E-05   -1.4964    
   7  Prefactor     .10000E-03    .96073        .30724E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.9101        3.4281        .47462E-05   -1.5265    
   9  Prefactor     .10000E-03    2.5512        .49974E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .13981        .59216E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.8569        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .53704        1.0970        .46630E-05   -1.5561    
  13  Prefactor     .10000E-03    12.072        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6094        1.7559        .43406E-05   -1.5454    
  15  norm          .10000E-03    3.8248        .31069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.160        21.671        .28710E-05   -1.4591    
  17  Prefactor     .10000E-03    5.0540        .53150E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.0393        3.5247        .26995E-04   -1.5306    
  19  Prefactor     8.4194        12.209        .55262E-05   -1.5128    
  20  Prefactor     .10000E-03    57.693        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.7226        .20808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.8307        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .79063        .18482        .10287E-04   -1.0042    
  24  Prefactor     1.0340        .15828        .81249E-05   -.91605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09119e-11
Minuit parameter uncertainties:
  1  0.000122943
  2  2.80298
  3  1.49538e-05
  4  11.1406
  5  41.509
  6  20.5364
  7  1.76176e-06
  8  3.42828
  9  6.04256e-07
  10  1.97158e-07
  11  1.30365e-06
  12  1.09708
  13  2.24363e-06
  14  1.756
  15  8.45773e-07
  16  21.6766
  17  1.55608e-05
  18  3.52493
  19  12.2122
  20  0.000208498
  21  2.96981e-07
  22  3.91175e-07
  23  0.184968
  24  0.158349
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.609e+00  1.756e+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:  1.034e+00  1.583e-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:  7.906e-01  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.53
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 2.11e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 7.88e-06 +/- 8.59e-06

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

Saving results to:
/scratch/kocevski/159024/likelihoodResults_321753601_322012801_4FGL_J0401.9-2034_daily_bin318.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) = 6622.21062022
delta logL = 0.00250720216445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6622.21015144
delta logL = 0.0029759807212

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6637       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2505       1.0000          .0000       10.000    
     3 'Normalizat'    .79172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0335       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=   6622.210     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      221 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6638        1.9523        .11114E-03   -.63904E-03
   2  Index         2.2505        .77110        .93429E-02   -.68433E-04
   3  Normalizat    .79186        .17520        .25700E-03   -.24330E-04
   4  Prefactor     1.0334        .15645        .20317E-03    .16537E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66383
  Index      = 2.25048
  Normalizat = 0.79186
  Prefactor  = 1.03339
 **********
 **   18 **HESSE 
 **********

 FCN=   6622.210     FROM HESSE     STATUS=OK            25 CALLS      246 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6638        1.9154        .44454E-05   -1.5450    
   2  Index         2.2505        .75662        .37372E-03   -.58225    
   3  Normalizat    .79186        .17530        .10280E-04   -1.0037    
   4  Prefactor     1.0334        .15655        .40635E-04   -.91625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79673e-10
Minuit parameter uncertainties:
  1  1.91543
  2  0.760822
  3  0.175428
  4  0.156619
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/159024': 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) = 6622.21015109
delta logL = 0.0029763307457

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.664e+00  1.915e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.250e+00  7.608e-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:  1.033e+00  1.566e-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:  7.919e-01  1.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.53
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 2.25 +/- 0.76
Photon Flux (Free Index): 2.00e-08 +/- 2.61e-08
Energy Flux (Free Index): 8.23e-06 +/- 1.02e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/159024/cmap_HighResolution_321753601_322012801_4FGL_J0401.9-2034_daily_bin318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-03', comment='SUCCESS', photon_flux='2.11e-08', energy_flux2='8.23e-06', photon_flux_error='2.30e-08', dlogl='2.98e-03', energy_flux='7.88e-06', photon_flux2='2.00e-08', job_status='DONE', time_completed='2021-08-19 23:31:30.133876', photon_index_error2='0.76', photon_index2='2.25', ts='1.53', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='7.87e-08', energy_flux_error2='1.02e-05', EG='0.79', time_epoch_completed='1629441090.13', return_code='0', job_id='159024', GAL2='1.03', EG2='0.79', return_code2='0', energy_flux_error='8.59e-06', photon_flux_error2='2.61e-08', ts2='1.53', photon_index='2.31' WHERE bin_id='318' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:31:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 159024: <4FGL_J0401.9-2034_daily_bin318> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin318 60.4867 -20.5804 321753601 322012801 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 :                                   741.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            953 sec.

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

