/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 146 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_J0403.9-3605_daily_bin318
RA = 60.975, Dec = -36.087
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='187877', job_status='RUN', time_executed='2021-08-20 00:53:28.937949', time_epoch_executed='1629446008.94' WHERE source_name='4FGL J0403.9-3605' and cadence='daily' and bin_id='318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/187877

Creating custom pfile directory:
/scratch/kocevski/187877/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/187877/ft1_4FGL_J0403.9-3605_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/187877/ft2_4FGL_J0403.9-3605_daily_bin318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/187877/ft1_4FGL_J0403.9-3605_daily_bin318.fits outfile=/scratch/kocevski/187877/ft1_filteredMKT_4FGL_J0403.9-3605_daily_bin318.fits ra=60.975 dec=-36.087 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 3.91
user 3.15
sys 0.74

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/187877/ft2_4FGL_J0403.9-3605_daily_bin318.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/187877/ft2_4FGL_J0403.9-3605_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/187877/ft1_filteredMKT_4FGL_J0403.9-3605_daily_bin318.fits evtable="EVENTS" outfile="/scratch/kocevski/187877/ft1_filtered_4FGL_J0403.9-3605_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.13
user 0.31
sys 0.78

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/187877/ft1_filtered_4FGL_J0403.9-3605_daily_bin318.fits" evtable="EVENTS" scfile=/scratch/kocevski/187877/ft2_4FGL_J0403.9-3605_daily_bin318.fits sctable="SC_DATA" outfile=/scratch/kocevski/187877/ltcube_321753601_322012801_4FGL_J0403.9-3605_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/187877/ft2_4FGL_J0403.9-3605_daily_bin318.fits
.....................!
real 16.31
user 15.26
sys 1.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/187877/ft1_filtered_4FGL_J0403.9-3605_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/187877/ft2_4FGL_J0403.9-3605_daily_bin318.fits sctable="SC_DATA" expcube=/scratch/kocevski/187877/ltcube_321753601_322012801_4FGL_J0403.9-3605_daily_bin318.fits outfile=/scratch/kocevski/187877/expmap_321753601_322012801_4FGL_J0403.9-3605_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/187877/ltcube_321753601_322012801_4FGL_J0403.9-3605_daily_bin318.fits
.....................!
real 191.72
user 185.61
sys 5.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 178 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 J0403.9-3605 @ 60.975 -36.087

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/187877/ft1_filtered_4FGL_J0403.9-3605_daily_bin318.fits scfile=/scratch/kocevski/187877/ft2_4FGL_J0403.9-3605_daily_bin318.fits outfile=/scratch/kocevski/187877/cmap_321753601_322012801_4FGL_J0403.9-3605_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.975 yref=-36.087 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.14
user 0.37
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/187877/ft1_filtered_4FGL_J0403.9-3605_daily_bin318.fits scfile=/scratch/kocevski/187877/ft2_4FGL_J0403.9-3605_daily_bin318.fits outfile=/scratch/kocevski/187877/cmap_HighResolution_321753601_322012801_4FGL_J0403.9-3605_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.975 yref=-36.087 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.37
sys 0.78

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/187877/ft1_filtered_4FGL_J0403.9-3605_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/187877/ft2_4FGL_J0403.9-3605_daily_bin318.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/187877/Model_4FGL_J0403.9-3605_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/187877/ft1_filtered_4FGL_J0403.9-3605_daily_bin318.fits.....................!
real 140.27
user 137.96
sys 1.98

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/187877/ft1_filtered_4FGL_J0403.9-3605_daily_bin318.fits', '/scratch/kocevski/187877/ft2_4FGL_J0403.9-3605_daily_bin318.fits', expMap='/scratch/kocevski/187877/expmap_321753601_322012801_4FGL_J0403.9-3605_daily_bin318.fits', expCube='/scratch/kocevski/187877/ltcube_321753601_322012801_4FGL_J0403.9-3605_daily_bin318.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/187877/Model_4FGL_J0403.9-3605_daily_bin318.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0403.9-3605'

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  1.306e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
281        alpha:  2.393e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  1.376e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  3.485e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/187877/ft1_filtered_4FGL_J0403.9-3605_daily_bin318.fits
Spacecraft file(s): /scratch/kocevski/187877/ft2_4FGL_J0403.9-3605_daily_bin318.fits
Exposure map: /scratch/kocevski/187877/expmap_321753601_322012801_4FGL_J0403.9-3605_daily_bin318.fits
Exposure cube: /scratch/kocevski/187877/ltcube_321753601_322012801_4FGL_J0403.9-3605_daily_bin318.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/187877/Model_4FGL_J0403.9-3605_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) = 6395.45246419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .88325       1.0000         .10000E-03   10000.    
     4 'norm      '    4.4053       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    74.783       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2486       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0810       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    178.75       1.0000         .10000E-03   10000.    
    11 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    51.700       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4420       1.0000         .10000E-03   10000.    
    14 'norm      '    7.2615       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.297       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.777       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0880       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1513       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24214       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9810       1.0000         .10000E-03   10000.    
    22 'Prefactor '    47.564       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.6964       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78898       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77856       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6395.329     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2893 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.874       -.10311E-05** at limit **
   2  Prefactor     .10000E-03    9.1870       -.14025E-05** at limit **
   3  norm          .88287        2.1492       -.44106E-06   -.11486E-02
   4  norm          4.4051        1.1069        .76122E-07    .14889E-03
   5  Prefactor     .10000E-03    10.901        .18847E-05** at limit **
   6  Prefactor     74.788        41.000        .46028E-05   -.80718E-05
   7  Prefactor     3.2487        3.1968        .26729E-05   -.18844E-03
   8  Prefactor     2.0809        8.0091       -.11962E-05   -.34579E-03
   9  norm          .10000E-03    .14325       -.54499E-07** at limit **
  10  Prefactor     178.77        120.20        .95132E-05    .50483E-06
  11  norm          .10000E-03    3.8081        .14258E-07** at limit **
  12  Prefactor     51.701        27.445        .10589E-05   -.16228E-04
  13  norm          1.4420        .36167        .78979E-08   -.12929E-03
  14  norm          7.2619        6.0937       -.11562E-06   -.13156E-03
  15  Prefactor     25.298        24.381        .64735E-06    .29159E-05
  16  Prefactor     10.777        9.7672        .18017E-06    .72456E-05
  17  Prefactor     2.0900        6.3319       -.16934E-05   -.71046E-03
  18  norm          1.1513        .49132        .83895E-07    .12070E-03
  19  Prefactor     .24430        1.4681       -.24204E-06   -.94443E-03
  20  norm          .10000E-03    2.1337        .41127E-07** at limit **
  21  norm          2.9810        1.4316        .30332E-07    .14736E-03
  22  Prefactor     47.565        37.706        .16908E-05    .21960E-05
  23  Prefactor     6.6973        5.7585       -.19188E-06   -.17730E-03
  24  Normalizat    .78885        .15868       -.19800E-05    .13724E-03
  25  Prefactor     .77863        .16591        .48177E-06   -.31859E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.88287
  norm       = 4.40514
  Prefactor  = 0.0001
  Prefactor  = 74.7875
  Prefactor  = 3.24866
  Prefactor  = 2.08093
  norm       = 0.0001
  Prefactor  = 178.765
  norm       = 0.0001
  Prefactor  = 51.701
  norm       = 1.44202
  norm       = 7.26186
  Prefactor  = 25.2977
  Prefactor  = 10.7766
  Prefactor  = 2.09004
  norm       = 1.15133
  Prefactor  = 0.244295
  norm       = 0.0001
  norm       = 2.98096
  Prefactor  = 47.5654
  Prefactor  = 6.69727
  Normalizat = 0.788853
  Prefactor  = 0.778627
 **********
 **   18 **HESSE 
 **********

 FCN=   6395.329     FROM HESSE     STATUS=OK           437 CALLS     3330 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.1896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .88287        2.0375        .17626E-02   -1.5520    
   4  norm          4.4051        1.1037        .39907E-04   -1.5288    
   5  Prefactor     .10000E-03    10.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     74.788        40.632        .23215E-03   -1.3976    
   7  Prefactor     3.2487        3.1045        .13269E-03   -1.5347    
   8  Prefactor     2.0809        8.0390        .28627E-03   -1.5419    
   9  norm          .10000E-03    .14457        .29572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     178.77        119.08        .30189E-04   -1.3026    
  11  norm          .10000E-03    3.8101        .15238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     51.701        27.386        .55778E-04   -1.4269    
  13  norm          1.4420        .36213        .22352E-04   -1.5468    
  14  norm          7.2619        6.0942        .14885E-03   -1.5169    
  15  Prefactor     25.298        24.376        .79645E-04   -1.4702    
  16  Prefactor     10.777        9.7335        .12205E-03   -1.5051    
  17  Prefactor     2.0900        6.4487        .28572E-03   -1.5419    
  18  norm          1.1513        .48917        .33167E-04   -1.5493    
  19  Prefactor     .24430        3.2187        .18702E-02   -1.5609    
  20  norm          .10000E-03    2.1366        .11403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9810        1.4327        .64279E-04   -1.5363    
  22  Prefactor     47.565        37.683        .58141E-04   -1.4328    
  23  Prefactor     6.6973        5.7712        .15506E-03   -1.5190    
  24  Normalizat    .78885        .18252        .23536E-03   -1.0048    
  25  Prefactor     .77863        .19179        .26392E-03   -1.0052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00652e-09
Minuit parameter uncertainties:
  1  5.01166e-05
  2  1.52578e-05
  3  2.0377
  4  1.10371
  5  3.02827e-06
  6  40.6467
  7  3.1047
  8  8.04317
  9  2.58853e-06
  10  119.24
  11  7.49528e-06
  12  27.3927
  13  0.362129
  14  6.09474
  15  24.3859
  16  9.73494
  17  6.45081
  18  0.489173
  19  1.77324
  20  3.01528e-06
  21  1.43274
  22  37.7021
  23  5.77171
  24  0.182662
  25  0.191958
Done.

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

Extracting fit parameters...

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  1.442e+00  3.621e-01  1.000e-04  1.000e+04 ( 1.000e-10)
281        alpha:  2.393e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  1.376e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  3.485e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  7.786e-01  1.920e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  7.889e-01  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 39.73
Ra Dec: 60.975 -36.087
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.86e-07 +/- 4.66e-08
Energy Flux (Fixed Index): 5.12e-05 +/- 1.29e-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) = 6395.27842189
delta logL = 0.0503719573317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6395.27424703
delta logL = 0.054546824138

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4184       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4991       1.0000          .0000       5.0000    
     3 'Normalizat'    .77671       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78935       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6395.274     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      195 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4184        .64585        .49481E-02   -.20312E-02
   2  alpha         2.4991        .56502        .21439        .14319E-04
   3  Normalizat    .77670        .15115        .43306E-01   -.98889E-05
   4  Prefactor     .78936        .16859        .43578E-01    .37708E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.41842
  alpha      = 2.49912
  Normalizat = 0.776704
  Prefactor  = 0.789355
 **********
 **   18 **HESSE 
 **********

 FCN=   6395.274     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4184        .35889        .21913E-04   -1.5470    
   2  alpha         2.4991        .32679        .91937E-02   -.35060E-03
   3  Normalizat    .77670        .17550        .23692E-03   -1.0094    
   4  Prefactor     .78936        .19314        .26236E-03   -1.0012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84158e-11
Minuit parameter uncertainties:
  1  0.358888
  2  0.327725
  3  0.17563
  4  0.193306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/187877': 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) = 6395.27424703
delta logL = 0.0545468245327

Extracting fit parameters...

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  1.418e+00  3.589e-01  1.000e-04  1.000e+04 ( 1.000e-10)
281        alpha:  2.499e+00  3.277e-01  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  1.376e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  3.485e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  7.894e-01  1.933e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  7.767e-01  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 39.81
Ra Dec: 60.975 -36.087
Photon Index (Free Index): 2.50 +/- 0.33
Photon Flux (Free Index): 1.94e-07 +/- 5.22e-08
Energy Flux (Free Index): 4.96e-05 +/- 1.30e-05

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/187877/cmap_HighResolution_321753601_322012801_4FGL_J0403.9-3605_daily_bin318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.86e-07', energy_flux2='4.96e-05', photon_flux_error='4.66e-08', dlogl='5.45e-02', energy_flux='5.12e-05', photon_flux2='1.94e-07', job_status='DONE', time_completed='2021-08-20 01:05:54.686136', photon_index_error2='0.33', photon_index2='2.50', ts='39.73', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='0.79', time_epoch_completed='1629446754.69', return_code='0', job_id='187877', GAL2='0.79', EG2='0.78', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='5.22e-08', ts2='39.81', photon_index='2.39' WHERE bin_id='318' AND source_name='4FGL J0403.9-3605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 01:05:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 187877: <4FGL_J0403.9-3605_daily_bin318> in cluster <slac> Done

Job <4FGL_J0403.9-3605_daily_bin318> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 00:50:43 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 00:50:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 00:50:45 2021
Terminated at Fri Aug 20 01:05:55 2021
Results reported at Fri Aug 20 01:05:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0403.9-3605_daily_bin318 60.975 -36.087 321753601 322012801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0403.9-3605 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   751.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

