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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1083
RA = 60.4867, Dec = -20.5804
tmin = 520041601, tmax = 520300801
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='163190', job_status='RUN', time_executed='2021-08-19 23:32:45.569913', time_epoch_executed='1629441165.57' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163190

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163190/ft1_4FGL_J0401.9-2034_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163190/ft2_4FGL_J0401.9-2034_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163190/ft1_4FGL_J0401.9-2034_daily_bin1083.fits outfile=/scratch/kocevski/163190/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1083.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=520041601.0 tmax=520300801.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 8.97
user 4.01
sys 4.90

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163190/ft1_filtered_4FGL_J0401.9-2034_daily_bin1083.fits" evtable="EVENTS" scfile=/scratch/kocevski/163190/ft2_4FGL_J0401.9-2034_daily_bin1083.fits sctable="SC_DATA" outfile=/scratch/kocevski/163190/ltcube_520041601_520300801_4FGL_J0401.9-2034_daily_bin1083.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/163190/ft2_4FGL_J0401.9-2034_daily_bin1083.fits
.....................!
real 17.53
user 11.90
sys 5.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163190/ft1_filtered_4FGL_J0401.9-2034_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/163190/ft2_4FGL_J0401.9-2034_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/163190/ltcube_520041601_520300801_4FGL_J0401.9-2034_daily_bin1083.fits outfile=/scratch/kocevski/163190/expmap_520041601_520300801_4FGL_J0401.9-2034_daily_bin1083.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/163190/ltcube_520041601_520300801_4FGL_J0401.9-2034_daily_bin1083.fits
.....................!
real 197.54
user 186.49
sys 10.72

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/163190/ft1_filtered_4FGL_J0401.9-2034_daily_bin1083.fits scfile=/scratch/kocevski/163190/ft2_4FGL_J0401.9-2034_daily_bin1083.fits outfile=/scratch/kocevski/163190/cmap_520041601_520300801_4FGL_J0401.9-2034_daily_bin1083.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 4.99
user 0.38
sys 4.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163190/ft1_filtered_4FGL_J0401.9-2034_daily_bin1083.fits scfile=/scratch/kocevski/163190/ft2_4FGL_J0401.9-2034_daily_bin1083.fits outfile=/scratch/kocevski/163190/cmap_HighResolution_520041601_520300801_4FGL_J0401.9-2034_daily_bin1083.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 5.20
user 0.40
sys 4.72

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/163190/ft1_filtered_4FGL_J0401.9-2034_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/163190/ft2_4FGL_J0401.9-2034_daily_bin1083.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/163190/Model_4FGL_J0401.9-2034_daily_bin1083.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/163190/ft1_filtered_4FGL_J0401.9-2034_daily_bin1083.fits.....................!
real 166.74
user 159.10
sys 7.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28316E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .76886       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .98885       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .87338       1.0000         .10000E-03   10000.    
    10 'norm      '    3.8294       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.004       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3018       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.170       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.057       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.6752       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5204       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94329       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99286       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=   7081.615     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2745 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    92.220        .19566E-07** at limit **
   2  Prefactor     .10000E-03    .98104        .27343E-08** at limit **
   3  Prefactor     .10000E-03    5.2859       -.21852E-08** at limit **
   4  Prefactor     .33050E-03    5.7070        .10626E-06** at limit **
   5  Prefactor     .10000E-03    30.652        .37122E-07** at limit **
   6  Prefactor     .10003E-03    15.817        .74618E-06** at limit **
   7  Prefactor     .76911        2.0290       -.14170E-06   -.32605E-03
   8  Prefactor     .98901        3.1734       -.18580E-06   -.27938E-03
   9  Prefactor     .87281        2.8746       -.12648E-06   -.29360E-03
  10  norm          3.8294        1.0199        .49946E-08   -.23496E-03
  11  Prefactor     10.003        18.140        .41129E-07   -.13026E-03
  12  norm          1.3016        1.0597        .75889E-08   -.12808E-04
  13  Prefactor     25.169        21.777       -.19075E-07   -.67834E-04
  14  Prefactor     .10000E-03    .60177       -.35052E-08** at limit **
  15  norm          .10000E-03    4.2053       -.45442E-09** at limit **
  16  Prefactor     22.056        19.237       -.37764E-08   -.56099E-04
  17  Prefactor     8.6751        6.8805       -.12646E-06    .53871E-03
  18  Prefactor     .10000E-03    2.0456       -.21985E-09** at limit **
  19  Prefactor     4.5190        6.2263       -.13873E-05   -.44626E-03
  20  Prefactor     .10001E-03    16.566       -.44894E-06** at limit **
  21  Prefactor     .10000E-03    3.9627        .45519E-08** at limit **
  22  Prefactor     .10001E-03    14.832       -.33682E-06** at limit **
  23  Normalizat    .94332        .15779        .31999E-06   -.65228E-04
  24  Prefactor     .99281        .13527       -.11232E-07   -.57796E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000330497
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 0.769105
  Prefactor  = 0.989011
  Prefactor  = 0.872814
  norm       = 3.82936
  Prefactor  = 10.0027
  norm       = 1.3016
  Prefactor  = 25.1692
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.0557
  Prefactor  = 8.67506
  Prefactor  = 0.0001
  Prefactor  = 4.51903
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 0.943321
  Prefactor  = 0.992808
 **********
 **   18 **HESSE 
 **********

 FCN=   7081.615     FROM HESSE     STATUS=OK           405 CALLS     3150 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    92.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .98424        .81394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.3028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .33050E-03    9.3964        .70234E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    15.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .76911        1.9929        .17634E-03   -1.5533    
   8  Prefactor     .98901        3.0337        .23325E-03   -1.5509    
   9  Prefactor     .87281        2.7085        .22316E-03   -1.5521    
  10  norm          3.8294        1.0148        .41062E-04   -1.5317    
  11  Prefactor     10.003        18.108        .12669E-03   -1.5075    
  12  norm          1.3016        1.0287        .72255E-04   -1.5480    
  13  Prefactor     25.169        21.767        .79846E-04   -1.4704    
  14  Prefactor     .10000E-03    .60755        .63720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.2115        .16851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.056        19.233        .85287E-04   -1.4768    
  17  Prefactor     8.6751        6.8908        .13609E-03   -1.5119    
  18  Prefactor     .10000E-03    2.0832        .11742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.5190        11.768        .94678E-03   -1.5283    
  20  Prefactor     .10001E-03    16.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.0301        .16357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    14.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .94332        .18227        .25255E-03   -.94954    
  24  Prefactor     .99281        .15469        .21964E-03   -.92970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98382e-09
Minuit parameter uncertainties:
  1  8.95404e-05
  2  2.07498e-06
  3  2.31131e-06
  4  0.0930917
  5  9.9435e-05
  6  0.00126649
  7  1.99303
  8  3.03417
  9  2.70893
  10  1.01481
  11  18.1176
  12  1.02874
  13  21.7742
  14  8.09758e-07
  15  1.34632e-06
  16  19.2386
  17  6.89143
  18  2.29031e-06
  19  11.7737
  20  0.000775612
  21  4.27904e-06
  22  0.00056788
  23  0.182385
  24  0.15476
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  8.098e-07  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  9.928e-01  1.548e-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.433e-01  1.824e-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: 3.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163190/likelihoodResults_520041601_520300801_4FGL_J0401.9-2034_daily_bin1083.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) = 7081.6224555
delta logL = -0.00770430969533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7081.61475058
delta logL = 6.14034433966e-07

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 'Index     '    2.2960       1.0000          .0000       10.000    
     3 'Normalizat'    .94332       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99281       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=   7081.615     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      208 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9192        .90712E-02** at limit **
   2  Index         1.9205        5.9258        .50000       -.27176E-06
   3  Normalizat    .94332        .83159E-02    .45453E-01   -.98559E-03
   4  Prefactor     .99281        .74389E-02    .46177E-01   -.11787E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.92049
  Normalizat = 0.94332
  Prefactor  = 0.992807
 **********
 **   18 **HESSE 
 **********

 FCN=   7081.615     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      237 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.634        .67711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9205        7.5172        .50000       -.66353    
   3  Normalizat    .94332        .38615E-01    .25255E-03   -.94954    
   4  Prefactor     .99281        .34545E-01    .21964E-03   -.92970    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.99422e-08
Minuit parameter uncertainties:
  1  0.00026367
  2  432.097
  3  0.038616
  4  0.0345459
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163190': 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) = 7081.6147422
delta logL = 8.98662437976e-06

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  2.637e-04  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  1.920e+00  4.321e+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:  9.928e-01  3.455e-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:  9.433e-01  3.862e-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/163190/cmap_HighResolution_520041601_520300801_4FGL_J0401.9-2034_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-03', job_status='DONE', photon_flux_upper_limit='3.97e-08', time_completed='2021-08-19 23:46:45.169379', job_id='163190', GAL2='0.99', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1629442005.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='8.99e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1083' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:46:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0131>
Subject: Job 163190: <4FGL_J0401.9-2034_daily_bin1083> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1083 60.4867 -20.5804 520041601 520300801 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 :                                   900.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            958 sec.

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

