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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin693
RA = 60.4867, Dec = -20.5804
tmin = 418953601, tmax = 419212801
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='161841', job_status='RUN', time_executed='2021-08-19 23:26:08.980240', time_epoch_executed='1629440768.98' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161841

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161841/ft1_4FGL_J0401.9-2034_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161841/ft2_4FGL_J0401.9-2034_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161841/ft1_4FGL_J0401.9-2034_daily_bin693.fits outfile=/scratch/kocevski/161841/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin693.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=418953601.0 tmax=419212801.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 5.92
user 5.18
sys 0.72

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/161841/ft1_filtered_4FGL_J0401.9-2034_daily_bin693.fits" evtable="EVENTS" scfile=/scratch/kocevski/161841/ft2_4FGL_J0401.9-2034_daily_bin693.fits sctable="SC_DATA" outfile=/scratch/kocevski/161841/ltcube_418953601_419212801_4FGL_J0401.9-2034_daily_bin693.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/161841/ft2_4FGL_J0401.9-2034_daily_bin693.fits
.....................!
real 12.48
user 11.61
sys 0.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161841/ft1_filtered_4FGL_J0401.9-2034_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/161841/ft2_4FGL_J0401.9-2034_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/161841/ltcube_418953601_419212801_4FGL_J0401.9-2034_daily_bin693.fits outfile=/scratch/kocevski/161841/expmap_418953601_419212801_4FGL_J0401.9-2034_daily_bin693.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/161841/ltcube_418953601_419212801_4FGL_J0401.9-2034_daily_bin693.fits
.....................!
real 192.97
user 186.70
sys 5.94

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/161841/ft1_filtered_4FGL_J0401.9-2034_daily_bin693.fits scfile=/scratch/kocevski/161841/ft2_4FGL_J0401.9-2034_daily_bin693.fits outfile=/scratch/kocevski/161841/cmap_418953601_419212801_4FGL_J0401.9-2034_daily_bin693.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.02
user 0.37
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161841/ft1_filtered_4FGL_J0401.9-2034_daily_bin693.fits scfile=/scratch/kocevski/161841/ft2_4FGL_J0401.9-2034_daily_bin693.fits outfile=/scratch/kocevski/161841/cmap_HighResolution_418953601_419212801_4FGL_J0401.9-2034_daily_bin693.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.96
user 0.38
sys 0.58

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/161841/ft1_filtered_4FGL_J0401.9-2034_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/161841/ft2_4FGL_J0401.9-2034_daily_bin693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/161841/Model_4FGL_J0401.9-2034_daily_bin693.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/161841/ft1_filtered_4FGL_J0401.9-2034_daily_bin693.fits.....................!
real 147.24
user 145.09
sys 1.78

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32680E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .29638E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.216       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2365       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4361       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1031       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5836       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.687       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5054       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .77865       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7487       1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.748       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .71099       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0402       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=   6375.937     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2735 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    468.88       -.26929E-03** at limit **
   2  Prefactor     .10003E-03    1.5044        .41352E-06** at limit **
   3  Prefactor     .10000E-03    4.6041        .26299E-06** at limit **
   4  Prefactor     .10000E-03    2.7498        .43502E-06** at limit **
   5  Prefactor     18.217        21.901        .35789E-05    .21531E-04
   6  Prefactor     .10000E-03    12.345        .39653E-05** at limit **
   7  Prefactor     1.2364        1.4893       -.42814E-07   -.16142E-03
   8  Prefactor     .10000E-03    1.6476       -.49554E-06** at limit **
   9  Prefactor     1.4364        1.8010       -.18549E-07    .16390E-03
  10  norm          .10000E-03    .35110       -.26937E-07** at limit **
  11  Prefactor     8.1028        24.527       -.26255E-05   -.37792E-04
  12  norm          1.5837        1.0684       -.22930E-07   -.93085E-04
  13  Prefactor     16.689        19.118        .24589E-05   -.51141E-05
  14  Prefactor     .10000E-03    .79235        .23620E-07** at limit **
  15  norm          .10000E-03    5.3551       -.15720E-05** at limit **
  16  Prefactor     3.5062        11.243        .81458E-06   -.86415E-04
  17  Prefactor     .10000E-03    4.3316        .11158E-05** at limit **
  18  Prefactor     .77813        2.3166       -.88219E-06   -.12956E-02
  19  Prefactor     4.7483        12.279       -.16176E-05   -.81113E-04
  20  Prefactor     41.747        23.027       -.13244E-05    .29271E-05
  21  Prefactor     .10000E-03    1.4635        .20446E-07** at limit **
  22  Prefactor     .10000E-03    12.807       -.39402E-05** at limit **
  23  Normalizat    .71100        .15004        .30426E-06    .30909E-03
  24  Prefactor     1.0402        .13177        .18055E-06    .28825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2174
  Prefactor  = 0.0001
  Prefactor  = 1.23643
  Prefactor  = 0.0001
  Prefactor  = 1.43645
  norm       = 0.0001
  Prefactor  = 8.10277
  norm       = 1.58365
  Prefactor  = 16.6893
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.5062
  Prefactor  = 0.0001
  Prefactor  = 0.778132
  Prefactor  = 4.74835
  Prefactor  = 41.7472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.711003
  Prefactor  = 1.04025
 **********
 **   18 **HESSE 
 **********

 FCN=   6375.937     FROM HESSE     STATUS=OK           405 CALLS     3140 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    466.19        .21353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    13.128        .19051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.6151        .16731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7540        .12932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.217        21.865        .46921E-03   -1.4854    
   6  Prefactor     .10000E-03    12.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2364        1.4588        .10179E-03   -1.5486    
   8  Prefactor     .10000E-03    3.0268        .19374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4364        1.7585        .11401E-03   -1.5468    
  10  norm          .10000E-03    1.1053        .90889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.1028        24.364        .14085E-03   -1.5139    
  12  norm          1.5837        1.0536        .63998E-04   -1.5456    
  13  Prefactor     16.689        19.001        .98045E-04   -1.4891    
  14  Prefactor     .10000E-03    1.3413        .13650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.3906        .18044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.5062        11.213        .21594E-03   -1.5333    
  17  Prefactor     .10000E-03    4.4141        .16215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .77813        2.2671        .19993E-03   -1.5532    
  19  Prefactor     4.7483        12.256        .18464E-03   -1.5272    
  20  Prefactor     41.747        23.055        .62041E-04   -1.4415    
  21  Prefactor     .10000E-03    1.4670        .94335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .71100        .16664        .25234E-03   -1.0346    
  24  Prefactor     1.0402        .14962        .19464E-03   -.91400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59545e-09
Minuit parameter uncertainties:
  1  0.0027848
  2  0.00120022
  3  1.59849e-06
  4  5.83635e-07
  5  21.8751
  6  3.56278e-07
  7  1.45887
  8  5.24279e-05
  9  1.75854
  10  1.18221e-05
  11  24.3936
  12  1.05363
  13  19.0078
  14  4.60198e-06
  15  1.67012e-06
  16  11.2197
  17  1.31911e-05
  18  2.26735
  19  12.2625
  20  23.0599
  21  6.45599e-07
  22  5.05693e-06
  23  0.166755
  24  0.14968
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  4.602e-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:  1.040e+00  1.497e-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.110e-01  1.668e-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: 5.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/161841/likelihoodResults_418953601_419212801_4FGL_J0401.9-2034_daily_bin693.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) = 6375.9405532
delta logL = -0.00355219688026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6375.93700134
delta logL = -3.33234311256e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3170       1.0000          .0000       10.000    
     3 'Normalizat'    .71101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0403       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=   6375.937     FROM MIGRAD    STATUS=FAILED        91 CALLS      248 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10046E-03    21.219        .14673E-02** at limit **
   2  Index         2.3624        8.0244        .50000       -.37825E-04
   3  Normalizat    .71100        .14802E-01    .25234E-03   -.14124E-03
   4  Prefactor     1.0403        .13666E-01    .19464E-03   -.12751E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6375.937     FROM SIMPLEX   STATUS=PROGRESS     132 CALLS      380 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    21.219        .13581E-03** at limit **
   2  Index         2.3606        8.0244        .57170E-03   -.37825E-04
   3  Normalizat    .71099        .14802E-01    .35022E-05   -.14124E-03
   4  Prefactor     1.0402        .13666E-01    .24046E-05   -.12751E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6375.937     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      430 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    82.760        .29345E-03** at limit **
   2  Index         2.5183        8.1938        .50000        .89344E-06
   3  Normalizat    .71100        .30604E-01    .10094E-04    .12119E-03
   4  Prefactor     1.0402        .28227E-01    .38928E-04    .12324E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.51834
  Normalizat = 0.711002
  Prefactor  = 1.04025
 **********
 **   18 **HESSE 
 **********

 FCN=   6375.937     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      459 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    278.62        .58691E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5183        7.7176        .50000       -.51937    
   3  Normalizat    .71100        .85143E-01    .20187E-05   -1.0346    
   4  Prefactor     1.0402        .77145E-01    .77856E-05   -.91400    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06454e-10
Minuit parameter uncertainties:
  1  0.00034709
  2  641.409
  3  0.0851589
  4  0.0771528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161841': 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) = 6375.93699975
delta logL = 1.25433143694e-06

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  3.471e-04  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.518e+00  6.414e+02  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.040e+00  7.715e-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:  7.110e-01  8.516e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/161841/cmap_HighResolution_418953601_419212801_4FGL_J0401.9-2034_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.12e-08', time_completed='2021-08-19 23:38:40.683562', job_id='161841', GAL2='1.04', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1629441520.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.25e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='693' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:38:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 161841: <4FGL_J0401.9-2034_daily_bin693> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin693> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 23:25:48 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:25:50 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:25:50 2021
Terminated at Thu Aug 19 23:38:43 2021
Results reported at Thu Aug 19 23:38:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin693 60.4867 -20.5804 418953601 419212801 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 :                                   748.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             345.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            775 sec.

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

