/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 182 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 = 7685
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0403.9-3605_daily_bin52
RA = 60.975, Dec = -36.087
tmin = 252806401, tmax = 253065601
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='186470', job_status='RUN', time_executed='2021-08-20 00:49:05.226699', time_epoch_executed='1629445745.23' WHERE source_name='4FGL J0403.9-3605' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186470

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186470/ft1_4FGL_J0403.9-3605_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186470/ft2_4FGL_J0403.9-3605_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186470/ft1_4FGL_J0403.9-3605_daily_bin52.fits outfile=/scratch/kocevski/186470/ft1_filteredMKT_4FGL_J0403.9-3605_daily_bin52.fits ra=60.975 dec=-36.087 rad=12.0 tmin=252806401.0 tmax=253065601.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 1.41
user 1.22
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/186470/ft2_4FGL_J0403.9-3605_daily_bin52.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/186470/ft1_filteredMKT_4FGL_J0403.9-3605_daily_bin52.fits evtable="EVENTS" outfile="/scratch/kocevski/186470/ft1_filtered_4FGL_J0403.9-3605_daily_bin52.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186470/ft1_filtered_4FGL_J0403.9-3605_daily_bin52.fits" evtable="EVENTS" scfile=/scratch/kocevski/186470/ft2_4FGL_J0403.9-3605_daily_bin52.fits sctable="SC_DATA" outfile=/scratch/kocevski/186470/ltcube_252806401_253065601_4FGL_J0403.9-3605_daily_bin52.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/186470/ft2_4FGL_J0403.9-3605_daily_bin52.fits
.....................!
real 12.78
user 12.45
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186470/ft1_filtered_4FGL_J0403.9-3605_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/186470/ft2_4FGL_J0403.9-3605_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/186470/ltcube_252806401_253065601_4FGL_J0403.9-3605_daily_bin52.fits outfile=/scratch/kocevski/186470/expmap_252806401_253065601_4FGL_J0403.9-3605_daily_bin52.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/186470/ltcube_252806401_253065601_4FGL_J0403.9-3605_daily_bin52.fits
.....................!
real 194.17
user 188.66
sys 5.19

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/186470/ft1_filtered_4FGL_J0403.9-3605_daily_bin52.fits scfile=/scratch/kocevski/186470/ft2_4FGL_J0403.9-3605_daily_bin52.fits outfile=/scratch/kocevski/186470/cmap_252806401_253065601_4FGL_J0403.9-3605_daily_bin52.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 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186470/ft1_filtered_4FGL_J0403.9-3605_daily_bin52.fits scfile=/scratch/kocevski/186470/ft2_4FGL_J0403.9-3605_daily_bin52.fits outfile=/scratch/kocevski/186470/cmap_HighResolution_252806401_253065601_4FGL_J0403.9-3605_daily_bin52.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 0.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/186470/ft1_filtered_4FGL_J0403.9-3605_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/186470/ft2_4FGL_J0403.9-3605_daily_bin52.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/186470/Model_4FGL_J0403.9-3605_daily_bin52.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/186470/ft1_filtered_4FGL_J0403.9-3605_daily_bin52.fits.....................!
real 133.67
user 132.27
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6684       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6010       1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.832       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .18946       1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.869       1.0000         .10000E-03   10000.    
    11 'norm      '    17.814       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1840       1.0000         .10000E-03   10000.    
    13 'norm      '    .96735       1.0000         .10000E-03   10000.    
    14 'norm      '    .49788       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6037       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12151E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    6.1951       1.0000         .10000E-03   10000.    
    21 'norm      '    2.5691       1.0000         .10000E-03   10000.    
    22 'Prefactor '    40.094       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68789       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0974       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=   6466.568     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2978 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6041       -.15449E-06** at limit **
   2  Prefactor     .10000E-03    7.5585        .11755E-05** at limit **
   3  norm          2.6688        2.2218       -.55824E-07   -.49140E-04
   4  norm          1.6011        .81189       -.40441E-07   -.29186E-03
   5  Prefactor     42.829        47.586       -.34525E-05    .63529E-06
   6  Prefactor     .10000E-03    19.860        .24435E-05** at limit **
   7  Prefactor     .10000E-03    1.6718        .11554E-06** at limit **
   8  Prefactor     .10000E-03    5.6384        .17910E-05** at limit **
   9  norm          .18976        .42704       -.34074E-06   -.40254E-02
  10  Prefactor     38.876        67.913        .10666E-04    .19890E-05
  11  norm          17.814        12.840       -.34087E-06    .16468E-04
  12  Prefactor     7.1850        20.925        .10560E-05   -.19462E-04
  13  norm          .96718        .32955       -.59513E-07   -.12423E-02
  14  norm          .51969        3.6111        .74138E-06   -.87640E-03
  15  Prefactor     .10000E-03    27.628       -.17280E-05** at limit **
  16  Prefactor     .10000E-03    7.5955        .89509E-06** at limit **
  17  Prefactor     .10000E-03    6.0580       -.31780E-05** at limit **
  18  norm          3.6037        .74013        .24898E-07    .84036E-03
  19  Prefactor     .10004E-03    1.5286       -.42224E-06** at limit **
  20  norm          6.1888        7.2729        .48666E-08    .85757E-04
  21  norm          2.5686        1.5637        .16598E-06    .32686E-03
  22  Prefactor     40.079        54.893       -.20619E-04    .16120E-04
  23  Prefactor     .10000E-03    2.3218       -.56496E-07** at limit **
  24  Normalizat    .68788        .15560        .12775E-05    .38010E-04
  25  Prefactor     1.0973        .17203       -.62406E-07    .80672E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.66876
  norm       = 1.60111
  Prefactor  = 42.8294
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.189756
  Prefactor  = 38.876
  norm       = 17.8141
  Prefactor  = 7.18501
  norm       = 0.967178
  norm       = 0.519688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.60366
  Prefactor  = 0.000100045
  norm       = 6.18878
  norm       = 2.56859
  Prefactor  = 40.0789
  Prefactor  = 0.0001
  Normalizat = 0.687878
  Prefactor  = 1.0973
 **********
 **   18 **HESSE 
 **********

 FCN=   6466.568     FROM HESSE     STATUS=OK           433 CALLS     3411 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6091        .16852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.5572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6688        2.2233        .10594E-03   -1.5381    
   4  norm          1.6011        .80770        .49393E-04   -1.5455    
   5  Prefactor     42.829        47.595        .61255E-04   -1.4398    
   6  Prefactor     .10000E-03    19.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.0094        .20191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .18976        .36092        .77355E-03   -1.5621    
  10  Prefactor     38.876        67.819        .64290E-04   -1.4460    
  11  norm          17.814        12.804        .94893E-04   -1.4864    
  12  Prefactor     7.1850        20.868        .14966E-03   -1.5172    
  13  norm          .96718        .32765        .24724E-04   -1.5511    
  14  norm          .51969        18.128        .28100E-02   -1.5564    
  15  Prefactor     .10000E-03    27.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.6630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.0820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6037        .73902        .29956E-04   -1.5328    
  19  Prefactor     .10004E-03    11.624        .18602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.1888        7.1264        .16129E-03   -1.5210    
  21  norm          2.5686        1.5581        .75170E-04   -1.5387    
  22  Prefactor     40.079        54.354        .63304E-04   -1.4441    
  23  Prefactor     .10000E-03    2.3338        .11965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .68788        .18004        .25802E-03   -1.0437    
  25  Prefactor     1.0973        .20212        .23960E-03   -.89553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.66449e-09
Minuit parameter uncertainties:
  1  2.07112e-06
  2  4.50752e-06
  3  2.22338
  4  0.807705
  5  47.6376
  6  1.02962e-05
  7  0.000157548
  8  1.14323e-05
  9  0.360921
  10  67.9542
  11  12.8062
  12  20.8893
  13  0.327647
  14  6.14008
  15  7.79269e-06
  16  8.12557e-06
  17  1.6753e-05
  18  0.739019
  19  0.00144336
  20  7.1274
  21  1.55815
  22  54.421
  23  1.05361e-06
  24  0.180196
  25  0.202261
Done.

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

Extracting fit parameters...

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  9.672e-01  3.276e-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.097e+00  2.023e-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.879e-01  1.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.04
Ra Dec: 60.975 -36.087
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 4.21e-08
Energy Flux (Fixed Index): 3.44e-05 +/- 1.16e-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) = 6466.19968838
delta logL = 0.368665290476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6466.19279707
delta logL = 0.37555660884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93009       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7372       1.0000          .0000       5.0000    
     3 'Normalizat'    .65633       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1226       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=   6466.193     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      208 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93009        4.4653        .52097E-02   -.87014E-03
   2  alpha         2.7372        3.7656        .26661        .70346E-05
   3  Normalizat    .65632        .11843        .59621E-01    .41521E-05
   4  Prefactor     1.1226        .16238        .53661E-01    .33965E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.930088
  alpha      = 2.73723
  Normalizat = 0.656325
  Prefactor  = 1.12258
 **********
 **   18 **HESSE 
 **********

 FCN=   6466.193     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93009        .31546        .23126E-04   -1.5515    
   2  alpha         2.7372        .41429        .11381E-01    .95033E-01
   3  Normalizat    .65632        .18079        .26373E-03   -1.0564    
   4  Prefactor     1.1226        .20405        .23725E-03   -.88748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38395e-11
Minuit parameter uncertainties:
  1  0.315464
  2  0.416228
  3  0.180957
  4  0.204195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186470': 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) = 6466.19279707
delta logL = 0.375556609069

Extracting fit parameters...

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  9.301e-01  3.155e-01  1.000e-04  1.000e+04 ( 1.000e-10)
281        alpha:  2.737e+00  4.162e-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.123e+00  2.042e-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.563e-01  1.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.87
Ra Dec: 60.975 -36.087
Photon Index (Free Index): 2.74 +/- 0.42
Photon Flux (Free Index): 1.47e-07 +/- 5.17e-08
Energy Flux (Free Index): 3.28e-05 +/- 1.06e-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/186470/cmap_HighResolution_252806401_253065601_4FGL_J0403.9-3605_daily_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='3.28e-05', photon_flux_error='4.21e-08', dlogl='3.76e-01', energy_flux='3.44e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-08-20 01:01:05.222249', photon_index_error2='0.42', photon_index2='2.74', ts='19.04', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.06e-05', EG='0.69', time_epoch_completed='1629446465.22', return_code='0', job_id='186470', GAL2='1.12', EG2='0.66', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='5.17e-08', ts2='19.87', photon_index='2.39' WHERE bin_id='52' AND source_name='4FGL J0403.9-3605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 01:01:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 186470: <4FGL_J0403.9-3605_daily_bin52> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0403.9-3605_daily_bin52 60.975 -36.087 252806401 253065601 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 :                                   719.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            913 sec.

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

