/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 12 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 = 7379
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0403.9-3605_daily_bin1532
RA = 60.975, Dec = -36.087
tmin = 636422401, tmax = 636681601
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='195013', job_status='RUN', time_executed='2021-08-20 01:18:21.558778', time_epoch_executed='1629447501.56' WHERE source_name='4FGL J0403.9-3605' and cadence='daily' and bin_id='1532'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195013

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195013/ft1_4FGL_J0403.9-3605_daily_bin1532.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195013/ft2_4FGL_J0403.9-3605_daily_bin1532.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195013/ft1_4FGL_J0403.9-3605_daily_bin1532.fits outfile=/scratch/kocevski/195013/ft1_filteredMKT_4FGL_J0403.9-3605_daily_bin1532.fits ra=60.975 dec=-36.087 rad=12.0 tmin=636422401.0 tmax=636681601.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 12.68
user 3.39
sys 9.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/195013/ft1_filtered_4FGL_J0403.9-3605_daily_bin1532.fits" evtable="EVENTS" scfile=/scratch/kocevski/195013/ft2_4FGL_J0403.9-3605_daily_bin1532.fits sctable="SC_DATA" outfile=/scratch/kocevski/195013/ltcube_636422401_636681601_4FGL_J0403.9-3605_daily_bin1532.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/195013/ft2_4FGL_J0403.9-3605_daily_bin1532.fits
.....................!
real 25.67
user 14.99
sys 10.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195013/ft1_filtered_4FGL_J0403.9-3605_daily_bin1532.fits evtable="EVENTS" scfile=/scratch/kocevski/195013/ft2_4FGL_J0403.9-3605_daily_bin1532.fits sctable="SC_DATA" expcube=/scratch/kocevski/195013/ltcube_636422401_636681601_4FGL_J0403.9-3605_daily_bin1532.fits outfile=/scratch/kocevski/195013/expmap_636422401_636681601_4FGL_J0403.9-3605_daily_bin1532.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/195013/ltcube_636422401_636681601_4FGL_J0403.9-3605_daily_bin1532.fits
.....................!
real 204.61
user 187.18
sys 16.84

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/195013/ft1_filtered_4FGL_J0403.9-3605_daily_bin1532.fits scfile=/scratch/kocevski/195013/ft2_4FGL_J0403.9-3605_daily_bin1532.fits outfile=/scratch/kocevski/195013/cmap_636422401_636681601_4FGL_J0403.9-3605_daily_bin1532.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 9.43
user 0.38
sys 9.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/195013/ft1_filtered_4FGL_J0403.9-3605_daily_bin1532.fits scfile=/scratch/kocevski/195013/ft2_4FGL_J0403.9-3605_daily_bin1532.fits outfile=/scratch/kocevski/195013/cmap_HighResolution_636422401_636681601_4FGL_J0403.9-3605_daily_bin1532.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 9.39
user 0.39
sys 8.97

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/195013/ft1_filtered_4FGL_J0403.9-3605_daily_bin1532.fits evtable="EVENTS" scfile=/scratch/kocevski/195013/ft2_4FGL_J0403.9-3605_daily_bin1532.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/195013/Model_4FGL_J0403.9-3605_daily_bin1532.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/195013/ft1_filtered_4FGL_J0403.9-3605_daily_bin1532.fits.....................!
real 126.59
user 113.15
sys 13.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.958       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.5744       1.0000         .10000E-03   10000.    
     4 'norm      '    2.9605       1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.723       1.0000         .10000E-03   10000.    
     6 'Prefactor '    71.277       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5914       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.212       1.0000         .10000E-03   10000.    
     9 'norm      '    7.8202       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14260E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2574       1.0000         .10000E-03   10000.    
    14 'norm      '    48.455       1.0000         .10000E-03   10000.    
    15 'Prefactor '    57.752       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.316       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .72970       1.0000         .10000E-03   10000.    
    18 'norm      '    5.2784       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    86.636       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .62850       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4276       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=   5292.618     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2894 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.954        29.241       -.49747E-06   -.94234E-05
   2  Prefactor     .10000E-03    45.431        .23871E-06** at limit **
   3  norm          4.5742        3.3216        .35897E-07   -.14332E-03
   4  norm          2.9605        1.3370        .49196E-07    .76855E-04
   5  Prefactor     36.717        57.852        .10239E-05   -.10439E-05
   6  Prefactor     71.276        59.235        .25897E-06   -.87160E-05
   7  Prefactor     5.5921        7.3946        .32659E-06    .30802E-03
   8  Prefactor     32.209        26.256       -.62736E-06   -.37224E-04
   9  norm          7.8199        1.9824        .99113E-08   -.16703E-03
  10  Prefactor     .10000E-03    353.05        .40920E-05** at limit **
  11  norm          .10000E-03    6.4934        .18647E-07** at limit **
  12  Prefactor     .10000E-03    18.637        .39609E-07** at limit **
  13  norm          1.2573        .60520        .19450E-07   -.67905E-04
  14  norm          48.457        17.837        .13356E-06   -.35431E-04
  15  Prefactor     57.763        57.010       -.19836E-05   -.12266E-04
  16  Prefactor     16.337        32.748       -.30600E-05   -.17180E-04
  17  Prefactor     .71599        128.61        .31764E-04   -.16326E-04
  18  norm          5.2792        1.4722       -.48590E-06    .38296E-03
  19  Prefactor     .10000E-03    1.7204        .50537E-07** at limit **
  20  norm          86.638        20.824        .34352E-07   -.16030E-04
  21  norm          .10000E-03    .53792       -.35237E-08** at limit **
  22  Prefactor     .10000E-03    27.936       -.17410E-07** at limit **
  23  Prefactor     .10000E-03    5.4495        .56043E-07** at limit **
  24  Normalizat    .62845        .26801       -.38446E-05   -.10563E-03
  25  Prefactor     1.4276        .27158        .16019E-05    .12166E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.9543
  Prefactor  = 0.0001
  norm       = 4.57424
  norm       = 2.96049
  Prefactor  = 36.7174
  Prefactor  = 71.2763
  Prefactor  = 5.59208
  Prefactor  = 32.2091
  norm       = 7.8199
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25727
  norm       = 48.4565
  Prefactor  = 57.7635
  Prefactor  = 16.3371
  Prefactor  = 0.71599
  norm       = 5.27922
  Prefactor  = 0.0001
  norm       = 86.6384
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.628454
  Prefactor  = 1.42763
 **********
 **   18 **HESSE 
 **********

 FCN=   5292.618     FROM HESSE     STATUS=OK           431 CALLS     3325 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.954        29.173        .75767E-04   -1.4650    
   2  Prefactor     .10000E-03    45.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.5742        3.3225        .10947E-03   -1.5280    
   4  norm          2.9605        1.3365        .53886E-04   -1.5364    
   5  Prefactor     36.717        57.859        .66135E-04   -1.4495    
   6  Prefactor     71.276        59.244        .47550E-04   -1.4017    
   7  Prefactor     5.5921        7.4039        .16989E-03   -1.5235    
   8  Prefactor     32.209        26.188        .70600E-04   -1.4572    
   9  norm          7.8199        1.9837        .48134E-04   -1.5149    
  10  Prefactor     .10000E-03    353.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.4964        .18106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2573        .60049        .35162E-04   -1.5484    
  14  norm          48.457        17.802        .57606E-04   -1.4315    
  15  Prefactor     57.763        57.089        .52790E-04   -1.4186    
  16  Prefactor     16.337        33.498        .99153E-04   -1.4899    
  17  Prefactor     .71599        151.85        .49529E-02   -1.5539    
  18  norm          5.2792        1.5266        .37367E-04   -1.5248    
  19  Prefactor     .10000E-03    1.7300        .93139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          86.638        20.795        .43163E-04   -1.3844    
  21  norm          .10000E-03    .53839        .52104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.4810        .16585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .62845        .31182        .38852E-03   -1.0679    
  25  Prefactor     1.4276        .31966        .29477E-03   -.79587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88673e-08
Minuit parameter uncertainties:
  1  29.1876
  2  8.08562e-06
  3  3.32265
  4  1.3365
  5  57.9479
  6  59.2933
  7  7.40508
  8  26.1975
  9  1.98375
  10  0.000951176
  11  1.12303e-06
  12  2.36647e-06
  13  0.600497
  14  17.804
  15  57.1428
  16  33.5369
  17  20.9063
  18  1.52662
  19  2.56339e-06
  20  20.7968
  21  2.02987e-06
  22  1.08107e-05
  23  8.78118e-08
  24  0.312702
  25  0.320111
Done.

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

Extracting fit parameters...

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  1.257e+00  6.005e-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.428e+00  3.201e-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:  6.285e-01  3.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.33
Ra Dec: 60.975 -36.087
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.62e-07 +/- 7.72e-08
Energy Flux (Fixed Index): 4.47e-05 +/- 2.13e-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) = 5292.34070996
delta logL = 0.276796603757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5292.34029956
delta logL = 0.277207001048

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2760       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7960       1.0000          .0000       5.0000    
     3 'Normalizat'    .57179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4716       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=   5292.340     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2762        10.069        .73197E-02    .31248E-03
   2  alpha         2.7955        3.3468        .32969        .86884E-05
   3  Normalizat    .57202        .14801        .91481E-01    .31630E-04
   4  Prefactor     1.4714        .19585        .65801E-01    .57040E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.27617
  alpha      = 2.79545
  Normalizat = 0.572024
  Prefactor  = 1.47141
 **********
 **   18 **HESSE 
 **********

 FCN=   5292.340     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2762        .55652        .32525E-04   -1.5482    
   2  alpha         2.7955        .54656        .13719E-01    .11846    
   3  Normalizat    .57202        .29844        .40539E-03   -1.0919    
   4  Prefactor     1.4714        .32083        .29099E-03   -.78344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00912e-11
Minuit parameter uncertainties:
  1  0.556525
  2  0.551073
  3  0.299278
  4  0.321266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195013': 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) = 5292.3402989
delta logL = 0.277207663438

Extracting fit parameters...

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  1.276e+00  5.565e-01  1.000e-04  1.000e+04 ( 1.000e-10)
281        alpha:  2.795e+00  5.511e-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.471e+00  3.213e-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:  5.720e-01  2.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.16
Ra Dec: 60.975 -36.087
Photon Index (Free Index): 2.80 +/- 0.55
Photon Flux (Free Index): 2.10e-07 +/- 1.05e-07
Energy Flux (Free Index): 4.55e-05 +/- 1.92e-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/195013/cmap_HighResolution_636422401_636681601_4FGL_J0403.9-3605_daily_bin1532.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-07', energy_flux2='4.55e-05', photon_flux_error='7.72e-08', dlogl='2.77e-01', energy_flux='4.47e-05', photon_flux2='2.10e-07', job_status='DONE', time_completed='2021-08-20 01:31:50.930334', photon_index_error2='0.55', photon_index2='2.80', ts='10.33', fit_tolerance='1e-08', GAL='1.43', photon_index_error='0.00', energy_flux_error2='1.92e-05', EG='0.63', time_epoch_completed='1629448310.93', return_code='0', job_id='195013', GAL2='1.47', EG2='0.57', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='1.05e-07', ts2='11.16', photon_index='2.39' WHERE bin_id='1532' AND source_name='4FGL J0403.9-3605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 01:31:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 195013: <4FGL_J0403.9-3605_daily_bin1532> in cluster <slac> Done

Job <4FGL_J0403.9-3605_daily_bin1532> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 01:15:32 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 01:15:35 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:15:35 2021
Terminated at Fri Aug 20 01:31:53 2021
Results reported at Fri Aug 20 01:31:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0403.9-3605_daily_bin1532 60.975 -36.087 636422401 636681601 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 :                                   931.31 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             259.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            981 sec.

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

