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


Performing analysis on: 4FGL_J0403.9-3605_daily_bin775
RA = 60.975, Dec = -36.087
tmin = 440208001, tmax = 440467201
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='191806', job_status='RUN', time_executed='2021-08-20 01:09:00.463493', time_epoch_executed='1629446940.46' WHERE source_name='4FGL J0403.9-3605' and cadence='daily' and bin_id='775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191806

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191806/ft1_4FGL_J0403.9-3605_daily_bin775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191806/ft2_4FGL_J0403.9-3605_daily_bin775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191806/ft1_4FGL_J0403.9-3605_daily_bin775.fits outfile=/scratch/kocevski/191806/ft1_filteredMKT_4FGL_J0403.9-3605_daily_bin775.fits ra=60.975 dec=-36.087 rad=12.0 tmin=440208001.0 tmax=440467201.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.23
user 3.22
sys 4.97

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191806/ft2_4FGL_J0403.9-3605_daily_bin775.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/191806/ft1_filteredMKT_4FGL_J0403.9-3605_daily_bin775.fits evtable="EVENTS" outfile="/scratch/kocevski/191806/ft1_filtered_4FGL_J0403.9-3605_daily_bin775.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.36
user 0.33
sys 5.00

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191806/ft1_filtered_4FGL_J0403.9-3605_daily_bin775.fits" evtable="EVENTS" scfile=/scratch/kocevski/191806/ft2_4FGL_J0403.9-3605_daily_bin775.fits sctable="SC_DATA" outfile=/scratch/kocevski/191806/ltcube_440208001_440467201_4FGL_J0403.9-3605_daily_bin775.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/191806/ft2_4FGL_J0403.9-3605_daily_bin775.fits
.....................!
real 17.28
user 11.48
sys 5.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191806/ft1_filtered_4FGL_J0403.9-3605_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/191806/ft2_4FGL_J0403.9-3605_daily_bin775.fits sctable="SC_DATA" expcube=/scratch/kocevski/191806/ltcube_440208001_440467201_4FGL_J0403.9-3605_daily_bin775.fits outfile=/scratch/kocevski/191806/expmap_440208001_440467201_4FGL_J0403.9-3605_daily_bin775.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/191806/ltcube_440208001_440467201_4FGL_J0403.9-3605_daily_bin775.fits
.....................!
real 197.60
user 185.53
sys 11.69

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/191806/ft1_filtered_4FGL_J0403.9-3605_daily_bin775.fits scfile=/scratch/kocevski/191806/ft2_4FGL_J0403.9-3605_daily_bin775.fits outfile=/scratch/kocevski/191806/cmap_440208001_440467201_4FGL_J0403.9-3605_daily_bin775.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 5.24
user 0.36
sys 4.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191806/ft1_filtered_4FGL_J0403.9-3605_daily_bin775.fits scfile=/scratch/kocevski/191806/ft2_4FGL_J0403.9-3605_daily_bin775.fits outfile=/scratch/kocevski/191806/cmap_HighResolution_440208001_440467201_4FGL_J0403.9-3605_daily_bin775.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 5.27
user 0.38
sys 4.86

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191806/ft1_filtered_4FGL_J0403.9-3605_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/191806/ft2_4FGL_J0403.9-3605_daily_bin775.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191806/Model_4FGL_J0403.9-3605_daily_bin775.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/191806/ft1_filtered_4FGL_J0403.9-3605_daily_bin775.fits.....................!
real 117.09
user 109.37
sys 7.52

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.706       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.910       1.0000         .10000E-03   10000.    
     4 'norm      '    .93205E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    51.331       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2561       1.0000         .10000E-03   10000.    
    14 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.871       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.390       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0138       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.2796       1.0000         .10000E-03   10000.    
    20 'norm      '    12.418       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2590       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.2039       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0491       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0223       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=   5051.589     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2983 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.674        41.168       -.25793E-05   -.13401E-03
   2  Prefactor     .10000E-03    22.803       -.76602E-06** at limit **
   3  norm          10.910        5.3161        .49984E-06    .60860E-03
   4  norm          .10003E-03    .57768       -.14958E-06** at limit **
   5  Prefactor     .10000E-03    85.928        .22032E-05** at limit **
   6  Prefactor     .10000E-03    41.437       -.26369E-06** at limit **
   7  Prefactor     .10002E-03    5.9827       -.38114E-05** at limit **
   8  Prefactor     .10000E-03    5.5475       -.61451E-06** at limit **
   9  norm          .10000E-03    .49676       -.30145E-06** at limit **
  10  Prefactor     50.932        122.09       -.69425E-05   -.96032E-04
  11  norm          .10000E-03    5.5752        .15561E-06** at limit **
  12  Prefactor     .10000E-03    17.567        .44379E-06** at limit **
  13  norm          2.2560        .57820       -.66027E-07   -.85158E-03
  14  norm          .10000E-03    11.215        .17099E-05** at limit **
  15  Prefactor     .10000E-03    8.4014        .18965E-06** at limit **
  16  Prefactor     27.868        21.903       -.84765E-08    .71118E-05
  17  Prefactor     14.382        16.723       -.66753E-06    .44821E-04
  18  norm          4.0141        1.2109        .41846E-07    .69015E-05
  19  Prefactor     6.2791        4.2249       -.56692E-07    .30248E-04
  20  norm          12.419        12.888        .14383E-07   -.19925E-05
  21  norm          1.2588        1.3798       -.30407E-07   -.94916E-04
  22  Prefactor     6.2109        69.685        .21197E-05   -.74747E-06
  23  Prefactor     .10000E-03    3.0645        .38310E-06** at limit **
  24  Normalizat    1.0499        .27242        .12258E-04   -.79159E-04
  25  Prefactor     1.0215        .28336       -.13853E-04   -.10183E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.674
  Prefactor  = 0.0001
  norm       = 10.9103
  norm       = 0.000100027
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 50.932
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.25596
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 27.8682
  Prefactor  = 14.3822
  norm       = 4.01411
  Prefactor  = 6.27908
  norm       = 12.4185
  norm       = 1.25885
  Prefactor  = 6.21088
  Prefactor  = 0.0001
  Normalizat = 1.04986
  Prefactor  = 1.02149
 **********
 **   18 **HESSE 
 **********

 FCN=   5051.589     FROM HESSE     STATUS=OK           433 CALLS     3416 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.674        41.206        .54232E-04   -1.4228    
   2  Prefactor     .10000E-03    22.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.910        5.3094        .54525E-03   -1.5047    
   4  norm          .10003E-03    16.397        .10190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    86.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    41.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    12.596        .29594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.5642        .16368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .88447        .96063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     50.932        123.60        .27988E-03   -1.4279    
  11  norm          .10000E-03    5.5820        .16392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2560        .57830        .25816E-04   -1.5408    
  14  norm          .10000E-03    11.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.4036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.868        21.900        .75886E-04   -1.4652    
  17  Prefactor     14.382        16.842        .10559E-03   -1.4949    
  18  norm          4.0141        1.2239        .35811E-04   -1.5307    
  19  Prefactor     6.2791        4.2176        .10940E-03   -1.5207    
  20  norm          12.419        12.839        .11367E-03   -1.5003    
  21  norm          1.2588        1.3786        .83895E-04   -1.5484    
  22  Prefactor     6.2109        69.600        .16117E-03   -1.5209    
  23  Prefactor     .10000E-03    3.0766        .12159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0499        .28421        .27485E-03   -.91378    
  25  Prefactor     1.0215        .29334        .30109E-03   -.92017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71873e-09
Minuit parameter uncertainties:
  1  41.2271
  2  0.000156872
  3  5.3096
  4  0.00132339
  5  0.000834079
  6  4.25334e-05
  7  0.000973303
  8  5.93318e-05
  9  1.53431e-05
  10  124.232
  11  1.94535e-05
  12  8.89674e-05
  13  0.578304
  14  0.000239437
  15  1.96621e-05
  16  21.9064
  17  16.8473
  18  1.22393
  19  4.21783
  20  12.8416
  21  1.37861
  22  41.6438
  23  2.51516e-05
  24  0.284623
  25  0.293798
Done.

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

Extracting fit parameters...

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  2.256e+00  5.783e-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.021e+00  2.938e-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.050e+00  2.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 41.76
Ra Dec: 60.975 -36.087
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 2.90e-07 +/- 7.44e-08
Energy Flux (Fixed Index): 8.02e-05 +/- 2.05e-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) = 5051.31323139
delta logL = 0.275834217816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5051.29077677
delta logL = 0.298288837106

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2399       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1501       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0962       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98101       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=   5051.291     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2399        .58573        .59285E-02    .22053E-03
   2  alpha         2.1501        .29272        .18673        .17154E-04
   3  Normalizat    1.0962        .21911        .61039E-01    .36353E-04
   4  Prefactor     .98099        .23506        .69238E-01   -.12261E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.23986
  alpha      = 2.15011
  Normalizat = 1.09618
  Prefactor  = 0.980988
 **********
 **   18 **HESSE 
 **********

 FCN=   5051.291     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2399        .58733        .26226E-04   -1.5409    
   2  alpha         2.1501        .30430        .80024E-02   -.14042    
   3  Normalizat    1.0962        .27286        .26996E-03   -.89875    
   4  Prefactor     .98099        .29071        .30628E-03   -.93366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12117e-11
Minuit parameter uncertainties:
  1  0.58733
  2  0.305077
  3  0.273214
  4  0.29118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191806': 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) = 5051.29077676
delta logL = 0.298288841496

Extracting fit parameters...

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  2.240e+00  5.873e-01  1.000e-04  1.000e+04 ( 1.000e-10)
281        alpha:  2.150e+00  3.051e-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:  9.810e-01  2.912e-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.096e+00  2.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 42.03
Ra Dec: 60.975 -36.087
Photon Index (Free Index): 2.15 +/- 0.31
Photon Flux (Free Index): 2.56e-07 +/- 7.97e-08
Energy Flux (Free Index): 8.71e-05 +/- 2.50e-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/191806/cmap_HighResolution_440208001_440467201_4FGL_J0403.9-3605_daily_bin775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.90e-07', energy_flux2='8.71e-05', photon_flux_error='7.44e-08', dlogl='2.98e-01', energy_flux='8.02e-05', photon_flux2='2.56e-07', job_status='DONE', time_completed='2021-08-20 01:20:51.169426', photon_index_error2='0.31', photon_index2='2.15', ts='41.76', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.50e-05', EG='1.05', time_epoch_completed='1629447651.17', return_code='0', job_id='191806', GAL2='0.98', EG2='1.10', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='7.97e-08', ts2='42.03', photon_index='2.39' WHERE bin_id='775' AND source_name='4FGL J0403.9-3605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 01:20:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 191806: <4FGL_J0403.9-3605_daily_bin775> in cluster <slac> Done

Job <4FGL_J0403.9-3605_daily_bin775> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 01:05:24 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 01:05:25 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:25 2021
Terminated at Fri Aug 20 01:20:52 2021
Results reported at Fri Aug 20 01:20:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0403.9-3605_daily_bin775 60.975 -36.087 440208001 440467201 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 :                                   783.53 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            928 sec.

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

