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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1595
RA = 60.4867, Dec = -20.5804
tmin = 652752001, tmax = 653011201
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='49925', job_status='RUN', time_executed='2021-09-11 00:02:24.723260', time_epoch_executed='1631343744.72' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49925

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49925/ft1_4FGL_J0401.9-2034_daily_bin1595.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49925/ft2_4FGL_J0401.9-2034_daily_bin1595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49925/ft1_4FGL_J0401.9-2034_daily_bin1595.fits outfile=/scratch/kocevski/49925/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1595.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=652752001.0 tmax=653011201.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 3.13
user 2.93
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49925/ft1_filtered_4FGL_J0401.9-2034_daily_bin1595.fits" evtable="EVENTS" scfile=/scratch/kocevski/49925/ft2_4FGL_J0401.9-2034_daily_bin1595.fits sctable="SC_DATA" outfile=/scratch/kocevski/49925/ltcube_652752001_653011201_4FGL_J0401.9-2034_daily_bin1595.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/49925/ft2_4FGL_J0401.9-2034_daily_bin1595.fits
.....................!
real 12.33
user 11.96
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49925/ft1_filtered_4FGL_J0401.9-2034_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/49925/ft2_4FGL_J0401.9-2034_daily_bin1595.fits sctable="SC_DATA" expcube=/scratch/kocevski/49925/ltcube_652752001_653011201_4FGL_J0401.9-2034_daily_bin1595.fits outfile=/scratch/kocevski/49925/expmap_652752001_653011201_4FGL_J0401.9-2034_daily_bin1595.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/49925/ltcube_652752001_653011201_4FGL_J0401.9-2034_daily_bin1595.fits
.....................!
real 190.62
user 185.77
sys 4.48

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/49925/ft1_filtered_4FGL_J0401.9-2034_daily_bin1595.fits scfile=/scratch/kocevski/49925/ft2_4FGL_J0401.9-2034_daily_bin1595.fits outfile=/scratch/kocevski/49925/cmap_652752001_653011201_4FGL_J0401.9-2034_daily_bin1595.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 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49925/ft1_filtered_4FGL_J0401.9-2034_daily_bin1595.fits scfile=/scratch/kocevski/49925/ft2_4FGL_J0401.9-2034_daily_bin1595.fits outfile=/scratch/kocevski/49925/cmap_HighResolution_652752001_653011201_4FGL_J0401.9-2034_daily_bin1595.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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/49925/ft1_filtered_4FGL_J0401.9-2034_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/49925/ft2_4FGL_J0401.9-2034_daily_bin1595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/49925/Model_4FGL_J0401.9-2034_daily_bin1595.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/49925/ft1_filtered_4FGL_J0401.9-2034_daily_bin1595.fits.....................!
real 157.20
user 155.58
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.499       1.0000         .10000E-03   10000.    
     5 'Prefactor '    76.118       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.7064       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.997       1.0000         .10000E-03   10000.    
    12 'norm      '    .10188E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.240       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7243       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9801       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9312       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.580       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.021       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.101       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0099       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0061       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=   6867.321     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2723 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.758        .84028E-06** at limit **
   2  Prefactor     .10000E-03    1.2420        .53148E-07** at limit **
   3  Prefactor     .10000E-03    5.0953        .11329E-05** at limit **
   4  Prefactor     12.499        14.000       -.53683E-06   -.25497E-04
   5  Prefactor     76.117        71.565       -.91439E-06    .36000E-05
   6  Prefactor     .10000E-03    11.940       -.18910E-07** at limit **
   7  Prefactor     .10000E-03    1.3580       -.16527E-06** at limit **
   8  Prefactor     .10000E-03    1.3430       -.15635E-07** at limit **
   9  Prefactor     .10000E-03    1.7305       -.73028E-07** at limit **
  10  norm          9.7066        1.7387       -.56450E-07    .18538E-03
  11  Prefactor     14.998        18.772       -.88588E-06    .41438E-05
  12  norm          .10000E-03    .85339       -.12737E-06** at limit **
  13  Prefactor     13.243        20.509        .10618E-05    .34363E-05
  14  Prefactor     6.7250        3.2051       -.16271E-06    .36262E-04
  15  norm          .10000E-03    5.0376       -.14156E-05** at limit **
  16  Prefactor     .10000E-03    13.640       -.23838E-06** at limit **
  17  Prefactor     4.9800        5.4571       -.10604E-07   -.18756E-03
  18  Prefactor     3.9331        4.4308       -.17890E-06   -.41810E-03
  19  Prefactor     19.569        23.604       -.92930E-05    .14722E-05
  20  Prefactor     16.020        15.178       -.94819E-07    .54448E-05
  21  Prefactor     .10000E-03    3.8832       -.99787E-07** at limit **
  22  Prefactor     38.099        38.384       -.24194E-05    .95836E-05
  23  Normalizat    1.0095        .19205        .20247E-05    .47665E-04
  24  Prefactor     1.0064        .15160        .67966E-06    .11981E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4989
  Prefactor  = 76.1168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.7066
  Prefactor  = 14.9977
  norm       = 0.0001
  Prefactor  = 13.243
  Prefactor  = 6.72501
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.98003
  Prefactor  = 3.93311
  Prefactor  = 19.5688
  Prefactor  = 16.0204
  Prefactor  = 0.0001
  Prefactor  = 38.0985
  Normalizat = 1.00954
  Prefactor  = 1.00636
 **********
 **   18 **HESSE 
 **********

 FCN=   6867.321     FROM HESSE     STATUS=OK           399 CALLS     3122 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.2445        .90184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.0961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.499        14.006        .11330E-03   -1.5001    
   5  Prefactor     76.117        71.737        .46024E-04   -1.3961    
   6  Prefactor     .10000E-03    11.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.2800        .18309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.3487        .93744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.7466        .10636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.7066        1.7476        .42576E-04   -1.5085    
  11  Prefactor     14.998        18.755        .10343E-03   -1.4933    
  12  norm          .10000E-03    1.5921        .14416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.243        20.493        .11008E-03   -1.4980    
  14  Prefactor     6.7250        3.1860        .96051E-04   -1.5189    
  15  norm          .10000E-03    5.0672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.9800        5.4528        .18021E-03   -1.5262    
  18  Prefactor     3.9331        4.4314        .17218E-03   -1.5311    
  19  Prefactor     19.569        23.526        .90516E-04   -1.4823    
  20  Prefactor     16.020        15.182        .10006E-03   -1.4907    
  21  Prefactor     .10000E-03    3.9636        .15944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     38.099        38.368        .64932E-04   -1.4473    
  23  Normalizat    1.0095        .21637        .28087E-03   -.92711    
  24  Prefactor     1.0064        .17154        .23907E-03   -.92518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1682e-10
Minuit parameter uncertainties:
  1  5.4347e-06
  2  1.66943e-06
  3  6.78554e-06
  4  14.0101
  5  71.8189
  6  5.35303e-06
  7  3.06842e-05
  8  2.0229e-06
  9  4.24247e-06
  10  1.7476
  11  18.7621
  12  1.63766e-05
  13  20.5035
  14  3.1861
  15  2.72202e-06
  16  1.37629e-05
  17  5.4533
  18  4.43173
  19  23.5376
  20  15.1861
  21  5.23214e-06
  22  38.3929
  23  0.216563
  24  0.171636
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  6.725e+00  3.186e+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.006e+00  1.716e-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.010e+00  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.66
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 8.82e-08 +/- 4.18e-08
Energy Flux (Fixed Index): 3.29e-05 +/- 1.56e-05

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) = 6867.32010458
delta logL = 0.000919067457289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6867.31973091
delta logL = 0.00129274545998

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8063       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2863       1.0000          .0000       10.000    
     3 'Normalizat'    1.0120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0052       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=   6867.320     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      198 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8063        54.038        .38448E-02    .47351E-03
   2  Index         2.2863        3.2540        .16826        .81533E-04
   3  Normalizat    1.0120        .12040        .45014E-01    .15380E-04
   4  Prefactor     1.0052        .65788E-01    .44152E-01    .73576E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.80634
  Index      = 2.28628
  Normalizat = 1.01196
  Prefactor  = 1.00519
 **********
 **   18 **HESSE 
 **********

 FCN=   6867.320     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8063        3.6397        .97248E-04   -1.5186    
   2  Index         2.2863        .46411        .57966E-02   -.57370    
   3  Normalizat    1.0120        .20614        .28057E-03   -.92631    
   4  Prefactor     1.0052        .17109        .23919E-03   -.92557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16931e-09
Minuit parameter uncertainties:
  1  3.63983
  2  0.465057
  3  0.206304
  4  0.171181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49925': 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) = 6867.31973091
delta logL = 0.00129274602114

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  6.806e+00  3.640e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.286e+00  4.651e-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.005e+00  1.712e-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.012e+00  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.60
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 2.29 +/- 0.47
Photon Flux (Free Index): 8.63e-08 +/- 5.48e-08
Energy Flux (Free Index): 3.34e-05 +/- 1.91e-05

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/49925/cmap_HighResolution_652752001_653011201_4FGL_J0401.9-2034_daily_bin1595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.82e-08', energy_flux2='3.34e-05', photon_flux_error='4.18e-08', dlogl='1.29e-03', energy_flux='3.29e-05', photon_flux2='8.63e-08', job_status='DONE', time_completed='2021-09-11 00:13:45.781608', photon_index_error2='0.47', photon_index2='2.29', ts='10.66', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.91e-05', EG='1.01', time_epoch_completed='1631344425.78', return_code='0', job_id='49925', GAL2='1.01', EG2='1.01', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='5.48e-08', ts2='10.60', photon_index='2.31' WHERE bin_id='1595' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:13:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 49925: <4FGL_J0401.9-2034_daily_bin1595> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1595> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 00:01:52 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:01:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:01:53 2021
Terminated at Sat Sep 11 00:13:46 2021
Results reported at Sat Sep 11 00:13:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1595 60.4867 -20.5804 652752001 653011201 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 :                                   683.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             409.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            714 sec.

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

