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


Performing analysis on: 4FGL_J0403.9-3605_daily_bin824
RA = 60.975, Dec = -36.087
tmin = 452908801, tmax = 453168001
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='191877', job_status='RUN', time_executed='2021-08-20 01:09:29.834067', time_epoch_executed='1629446969.83' WHERE source_name='4FGL J0403.9-3605' and cadence='daily' and bin_id='824'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191877/ft1_4FGL_J0403.9-3605_daily_bin824.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191877/ft2_4FGL_J0403.9-3605_daily_bin824.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191877/ft1_4FGL_J0403.9-3605_daily_bin824.fits outfile=/scratch/kocevski/191877/ft1_filteredMKT_4FGL_J0403.9-3605_daily_bin824.fits ra=60.975 dec=-36.087 rad=12.0 tmin=452908801.0 tmax=453168001.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 10.03
user 3.84
sys 6.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191877/ft2_4FGL_J0403.9-3605_daily_bin824.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/191877/ft1_filteredMKT_4FGL_J0403.9-3605_daily_bin824.fits evtable="EVENTS" outfile="/scratch/kocevski/191877/ft1_filtered_4FGL_J0403.9-3605_daily_bin824.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 6.42
user 0.34
sys 6.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191877/ft1_filtered_4FGL_J0403.9-3605_daily_bin824.fits" evtable="EVENTS" scfile=/scratch/kocevski/191877/ft2_4FGL_J0403.9-3605_daily_bin824.fits sctable="SC_DATA" outfile=/scratch/kocevski/191877/ltcube_452908801_453168001_4FGL_J0403.9-3605_daily_bin824.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/191877/ft2_4FGL_J0403.9-3605_daily_bin824.fits
.....................!
real 18.51
user 11.52
sys 6.95

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191877/ft1_filtered_4FGL_J0403.9-3605_daily_bin824.fits evtable="EVENTS" scfile=/scratch/kocevski/191877/ft2_4FGL_J0403.9-3605_daily_bin824.fits sctable="SC_DATA" expcube=/scratch/kocevski/191877/ltcube_452908801_453168001_4FGL_J0403.9-3605_daily_bin824.fits outfile=/scratch/kocevski/191877/expmap_452908801_453168001_4FGL_J0403.9-3605_daily_bin824.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/191877/ltcube_452908801_453168001_4FGL_J0403.9-3605_daily_bin824.fits
.....................!
real 199.06
user 185.43
sys 13.29

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/191877/ft1_filtered_4FGL_J0403.9-3605_daily_bin824.fits scfile=/scratch/kocevski/191877/ft2_4FGL_J0403.9-3605_daily_bin824.fits outfile=/scratch/kocevski/191877/cmap_452908801_453168001_4FGL_J0403.9-3605_daily_bin824.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 6.36
user 0.37
sys 5.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191877/ft1_filtered_4FGL_J0403.9-3605_daily_bin824.fits scfile=/scratch/kocevski/191877/ft2_4FGL_J0403.9-3605_daily_bin824.fits outfile=/scratch/kocevski/191877/cmap_HighResolution_452908801_453168001_4FGL_J0403.9-3605_daily_bin824.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 6.36
user 0.38
sys 5.96

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191877/ft1_filtered_4FGL_J0403.9-3605_daily_bin824.fits evtable="EVENTS" scfile=/scratch/kocevski/191877/ft2_4FGL_J0403.9-3605_daily_bin824.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191877/Model_4FGL_J0403.9-3605_daily_bin824.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/191877/ft1_filtered_4FGL_J0403.9-3605_daily_bin824.fits.....................!
real 119.14
user 109.97
sys 8.90

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/191877/ft1_filtered_4FGL_J0403.9-3605_daily_bin824.fits', '/scratch/kocevski/191877/ft2_4FGL_J0403.9-3605_daily_bin824.fits', expMap='/scratch/kocevski/191877/expmap_452908801_453168001_4FGL_J0403.9-3605_daily_bin824.fits', expCube='/scratch/kocevski/191877/ltcube_452908801_453168001_4FGL_J0403.9-3605_daily_bin824.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/191877/Model_4FGL_J0403.9-3605_daily_bin824.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/191877/ft1_filtered_4FGL_J0403.9-3605_daily_bin824.fits
Spacecraft file(s): /scratch/kocevski/191877/ft2_4FGL_J0403.9-3605_daily_bin824.fits
Exposure map: /scratch/kocevski/191877/expmap_452908801_453168001_4FGL_J0403.9-3605_daily_bin824.fits
Exposure cube: /scratch/kocevski/191877/ltcube_452908801_453168001_4FGL_J0403.9-3605_daily_bin824.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/191877/Model_4FGL_J0403.9-3605_daily_bin824.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) = 4985.64646973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3857       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11167E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .17818       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.975       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28253E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    162.34       1.0000         .10000E-03   10000.    
    11 'norm      '    9.1493       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.5325       1.0000         .10000E-03   10000.    
    14 'norm      '    49.093       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15145E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.902       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.094       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4713       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1515       1.0000         .10000E-03   10000.    
    20 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.2128       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11829E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .30661E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1501       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1019       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=   4985.474     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     2273 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8901        66.000       -.34342E-05    .62919E-04
   2  Prefactor     .10000E-03    17.978        .40335E-05** at limit **
   3  norm          .10027E-03    3.0478       -.99300E-06** at limit **
   4  norm          .17142        1.5281       -.13908E-06   -.25067E-03
   5  Prefactor     .10000E-03    16.693       -.36515E-05** at limit **
   6  Prefactor     26.846        46.974       -.46466E-04   -.50964E-05
   7  Prefactor     .10000E-03    5.1242        .40133E-06** at limit **
   8  Prefactor     .10000E-03    72.774       -.32668E-04** at limit **
   9  norm          .10000E-03    .42808        .13509E-06** at limit **
  10  Prefactor     162.42        138.70        .61402E-04    .38234E-04
  11  norm          9.1440        13.256        .29482E-06   -.15725E-04
  12  Prefactor     .10000E-03    15.281        .83416E-06** at limit **
  13  norm          2.5326        .71302       -.13143E-06    .29945E-02
  14  norm          49.104        16.833        .25128E-05    .21024E-03
  15  Prefactor     .10000E-03    40.014        .60317E-05** at limit **
  16  Prefactor     26.984        24.079       -.16917E-04   -.65169E-05
  17  Prefactor     14.108        20.197        .11858E-04    .37591E-04
  18  norm          3.4704        1.2013       -.10412E-06    .34248E-03
  19  Prefactor     5.1534        4.1966       -.26923E-06   -.17199E-03
  20  norm          .10000E-03    9.0073       -.11119E-06** at limit **
  21  norm          3.2129        2.0214       -.66533E-07    .33654E-04
  22  Prefactor     .10000E-03    31.721        .11239E-04** at limit **
  23  Prefactor     .11333E-03    9.1989       -.99631E-06** at limit **
  24  Normalizat    1.1495        .24658       -.33837E-05    .50965E-03
  25  Prefactor     1.1021        .25429        .32235E-05    .13803E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.89012
  Prefactor  = 0.0001
  norm       = 0.000100267
  norm       = 0.171421
  Prefactor  = 0.0001
  Prefactor  = 26.8462
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 162.424
  norm       = 9.14395
  Prefactor  = 0.0001
  norm       = 2.5326
  norm       = 49.1043
  Prefactor  = 0.0001
  Prefactor  = 26.9841
  Prefactor  = 14.1082
  norm       = 3.47037
  Prefactor  = 5.15335
  norm       = 0.0001
  norm       = 3.21287
  Prefactor  = 0.0001
  Prefactor  = 0.00011333
  Normalizat = 1.14949
  Prefactor  = 1.10208
 **********
 **   18 **HESSE 
 **********

 FCN=   4985.474     FROM HESSE     STATUS=OK           433 CALLS     2706 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8901        61.392        .17316E-03   -1.5223    
   2  Prefactor     .10000E-03    17.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10027E-03    28.566        .22610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .17142        2.8619        .14068E-02   -1.5625    
   5  Prefactor     .10000E-03    16.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.846        46.998        .77134E-04   -1.4671    
   7  Prefactor     .10000E-03    5.2968        .31206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    74.174        .19893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .43937        .90087E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     162.42        138.74        .15826E-03   -1.3152    
  11  norm          9.1440        13.272        .13250E-03   -1.5103    
  12  Prefactor     .10000E-03    15.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5326        .71620        .28828E-04   -1.5390    
  14  norm          49.104        16.864        .57232E-04   -1.4305    
  15  Prefactor     .10000E-03    40.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.984        24.060        .77238E-04   -1.4669    
  17  Prefactor     14.108        20.325        .10669E-03   -1.4957    
  18  norm          3.4704        1.2081        .38944E-04   -1.5335    
  19  Prefactor     5.1534        4.1935        .12536E-03   -1.5254    
  20  norm          .10000E-03    9.0522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.2129        2.0221        .77460E-04   -1.5349    
  22  Prefactor     .10000E-03    31.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .11333E-03    11.421        .65091E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1495        .30704        .28274E-03   -.88178    
  25  Prefactor     1.1021        .31537        .31088E-03   -.89400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30349e-08
Minuit parameter uncertainties:
  1  38.0818
  2  7.0675e-05
  3  0.00553015
  4  1.40051
  5  2.13265e-06
  6  47.0633
  7  5.4727e-05
  8  0.000432887
  9  1.11547e-05
  10  139.016
  11  13.2762
  12  4.17896e-06
  13  0.716201
  14  16.8661
  15  7.04332e-05
  16  24.0688
  17  20.3349
  18  1.20815
  19  4.19369
  20  2.11028e-05
  21  2.02215
  22  2.62862e-05
  23  0.024682
  24  0.307521
  25  0.315908
Done.

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

Extracting fit parameters...

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  2.533e+00  7.162e-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:  1.102e+00  3.159e-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:  1.149e+00  3.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.35
Ra Dec: 60.975 -36.087
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 3.26e-07 +/- 9.21e-08
Energy Flux (Fixed Index): 9.00e-05 +/- 2.54e-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) = 4983.4012574
delta logL = 2.07237597386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4983.3913004
delta logL = 2.08233297965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2196       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1325       1.0000          .0000       5.0000    
     3 'Normalizat'    .99613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2274       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=   4983.391     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      233 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2196        7.3597        .54084E-02    .34201E-03
   2  alpha         3.1326        4.0583        .18980        .18423E-04
   3  Normalizat    .99615        .17481        .67645E-01    .11790E-04
   4  Prefactor     1.2274        .21801        .67115E-01    .56429E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.21956
  alpha      = 3.13257
  Normalizat = 0.996149
  Prefactor  = 1.22738
 **********
 **   18 **HESSE 
 **********

 FCN=   4983.391     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2196        .68245        .23949E-04   -1.5410    
   2  alpha         3.1326        .38929        .83195E-03    .25581    
   3  Normalizat    .99615        .30125        .29922E-03   -.93160    
   4  Prefactor     1.2274        .32062        .29689E-03   -.85493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0533e-12
Minuit parameter uncertainties:
  1  0.682454
  2  0.390989
  3  0.301766
  4  0.32113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191877': 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) = 4983.39130036
delta logL = 2.08233302125

Extracting fit parameters...

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  2.220e+00  6.825e-01  1.000e-04  1.000e+04 ( 1.000e-10)
281        alpha:  3.133e+00  3.910e-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:  1.227e+00  3.211e-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:  9.961e-01  3.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 36.45
Ra Dec: 60.975 -36.087
Photon Index (Free Index): 3.13 +/- 0.39
Photon Flux (Free Index): 4.66e-07 +/- 1.25e-07
Energy Flux (Free Index): 8.78e-05 +/- 2.16e-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/191877/cmap_HighResolution_452908801_453168001_4FGL_J0403.9-3605_daily_bin824.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.26e-07', energy_flux2='8.78e-05', photon_flux_error='9.21e-08', dlogl='2.08e+00', energy_flux='9.00e-05', photon_flux2='4.66e-07', job_status='DONE', time_completed='2021-08-20 01:21:03.680815', photon_index_error2='0.39', photon_index2='3.13', ts='30.35', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.16e-05', EG='1.15', time_epoch_completed='1629447663.68', return_code='0', job_id='191877', GAL2='1.23', EG2='1.00', return_code2='0', energy_flux_error='2.54e-05', photon_flux_error2='1.25e-07', ts2='36.45', photon_index='2.39' WHERE bin_id='824' AND source_name='4FGL J0403.9-3605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 01:21:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0056>
Subject: Job 191877: <4FGL_J0403.9-3605_daily_bin824> in cluster <slac> Done

Job <4FGL_J0403.9-3605_daily_bin824> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 01:05:28 2021
Job was executed on host(s) <bullet0056>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 01:05:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 01:05:30 2021
Terminated at Fri Aug 20 01:21:05 2021
Results reported at Fri Aug 20 01:21:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0403.9-3605_daily_bin824 60.975 -36.087 452908801 453168001 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 :                                   785.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            937 sec.

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

