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


Performing analysis on: 4FGL_J0403.9-3605_daily_bin843
RA = 60.975, Dec = -36.087
tmin = 457833601, tmax = 458092801
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='191904', job_status='RUN', time_executed='2021-08-20 01:08:41.490234', time_epoch_executed='1629446921.49' WHERE source_name='4FGL J0403.9-3605' and cadence='daily' and bin_id='843'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191904

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191904/ft1_4FGL_J0403.9-3605_daily_bin843.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191904/ft2_4FGL_J0403.9-3605_daily_bin843.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191904/ft1_4FGL_J0403.9-3605_daily_bin843.fits outfile=/scratch/kocevski/191904/ft1_filteredMKT_4FGL_J0403.9-3605_daily_bin843.fits ra=60.975 dec=-36.087 rad=12.0 tmin=457833601.0 tmax=458092801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.66
user 3.45
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191904/ft1_filtered_4FGL_J0403.9-3605_daily_bin843.fits" evtable="EVENTS" scfile=/scratch/kocevski/191904/ft2_4FGL_J0403.9-3605_daily_bin843.fits sctable="SC_DATA" outfile=/scratch/kocevski/191904/ltcube_457833601_458092801_4FGL_J0403.9-3605_daily_bin843.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/191904/ft2_4FGL_J0403.9-3605_daily_bin843.fits
.....................!
real 11.80
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191904/ft1_filtered_4FGL_J0403.9-3605_daily_bin843.fits evtable="EVENTS" scfile=/scratch/kocevski/191904/ft2_4FGL_J0403.9-3605_daily_bin843.fits sctable="SC_DATA" expcube=/scratch/kocevski/191904/ltcube_457833601_458092801_4FGL_J0403.9-3605_daily_bin843.fits outfile=/scratch/kocevski/191904/expmap_457833601_458092801_4FGL_J0403.9-3605_daily_bin843.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/191904/ltcube_457833601_458092801_4FGL_J0403.9-3605_daily_bin843.fits
.....................!
real 191.00
user 185.88
sys 4.80

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/191904/ft1_filtered_4FGL_J0403.9-3605_daily_bin843.fits scfile=/scratch/kocevski/191904/ft2_4FGL_J0403.9-3605_daily_bin843.fits outfile=/scratch/kocevski/191904/cmap_457833601_458092801_4FGL_J0403.9-3605_daily_bin843.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191904/ft1_filtered_4FGL_J0403.9-3605_daily_bin843.fits scfile=/scratch/kocevski/191904/ft2_4FGL_J0403.9-3605_daily_bin843.fits outfile=/scratch/kocevski/191904/cmap_HighResolution_457833601_458092801_4FGL_J0403.9-3605_daily_bin843.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191904/ft1_filtered_4FGL_J0403.9-3605_daily_bin843.fits evtable="EVENTS" scfile=/scratch/kocevski/191904/ft2_4FGL_J0403.9-3605_daily_bin843.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191904/Model_4FGL_J0403.9-3605_daily_bin843.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/191904/ft1_filtered_4FGL_J0403.9-3605_daily_bin843.fits.....................!
real 111.69
user 110.24
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.530       1.0000         .10000E-03   10000.    
     3 'norm      '    11.030       1.0000         .10000E-03   10000.    
     4 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3622       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.9238       1.0000         .10000E-03   10000.    
    14 'norm      '    5.7668       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.591       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.829       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2866       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .13853       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13069E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0443       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2554       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=   5211.494     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2904 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    70.871        .17129E-05** at limit **
   2  Prefactor     38.532        39.486       -.42857E-08    .16857E-04
   3  norm          11.030        5.3184        .12139E-06   -.12821E-03
   4  norm          .10000E-03    .73389        .10805E-06** at limit **
   5  Prefactor     .10000E-03    50.244        .87745E-06** at limit **
   6  Prefactor     .10000E-03    28.372       -.14272E-05** at limit **
   7  Prefactor     4.3633        5.3747        .44752E-05   -.32481E-03
   8  Prefactor     .10000E-03    6.3791        .18229E-07** at limit **
   9  norm          .10000E-03    .31624       -.11814E-06** at limit **
  10  Prefactor     .10000E-03    85.289       -.71621E-06** at limit **
  11  norm          .10000E-03    22.495        .37138E-06** at limit **
  12  Prefactor     .10000E-03    13.912       -.31944E-06** at limit **
  13  norm          2.9239        .64759        .12938E-07   -.21487E-03
  14  norm          5.7693        9.7095        .37438E-06   -.19381E-04
  15  Prefactor     20.585        44.275        .14271E-06   -.39817E-04
  16  Prefactor     .10000E-03    21.757        .67996E-06** at limit **
  17  Prefactor     30.831        17.809        .48075E-06   -.36813E-04
  18  norm          2.2869        1.0267        .67328E-08   -.40820E-04
  19  Prefactor     .10000E-03    1.0246       -.20637E-07** at limit **
  20  norm          .10000E-03    8.0361       -.11119E-06** at limit **
  21  norm          .14121        1.5490        .26660E-06   -.23417E-03
  22  Prefactor     .10023E-03    280.42       -.12533E-04** at limit **
  23  Prefactor     .10000E-03    11.372        .33726E-06** at limit **
  24  Normalizat    1.0443        .22710       -.99413E-06   -.36398E-04
  25  Prefactor     1.2552        .23746       -.88738E-06   -.42395E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 38.5324
  norm       = 11.0301
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100005
  Prefactor  = 4.36326
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.92385
  norm       = 5.76927
  Prefactor  = 20.5845
  Prefactor  = 0.000100001
  Prefactor  = 30.8307
  norm       = 2.28686
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.141214
  Prefactor  = 0.000100233
  Prefactor  = 0.0001
  Normalizat = 1.04434
  Prefactor  = 1.25521
 **********
 **   18 **HESSE 
 **********

 FCN=   5211.494     FROM HESSE     STATUS=OK           425 CALLS     3329 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    71.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.532        39.496        .64571E-04   -1.4466    
   3  norm          11.030        5.2917        .11065E-03   -1.5044    
   4  norm          .10000E-03    2.2103        .11890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    50.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3633        5.3843        .89707E-03   -1.5290    
   8  Prefactor     .10000E-03    6.3825        .17807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .32274        .39663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    85.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    22.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9239        .65113        .25425E-04   -1.5366    
  14  norm          5.7693        9.7087        .16725E-03   -1.5228    
  15  Prefactor     20.585        44.412        .88268E-04   -1.4800    
  16  Prefactor     .10000E-03    21.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.831        17.905        .36081E-03   -1.4597    
  18  norm          2.2869        1.0288        .42650E-04   -1.5406    
  19  Prefactor     .10000E-03    1.0264        .71349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.1010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .14121        3.8852        .17381E-02   -1.5633    
  22  Prefactor     .10023E-03    284.52        .20576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0443        .27695        .28862E-03   -.91559    
  25  Prefactor     1.2552        .28928        .28898E-03   -.84649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2387e-08
Minuit parameter uncertainties:
  1  0.00100124
  2  39.5228
  3  5.29187
  4  2.74195e-07
  5  0.000565745
  6  0.000737049
  7  5.38488
  8  2.18434e-06
  9  3.41939e-06
  10  0.00068967
  11  0.000131941
  12  0.000116301
  13  0.651128
  14  9.71139
  15  44.4829
  16  0.00028803
  17  17.9081
  18  1.02882
  19  4.7606e-07
  20  2.5115e-06
  21  1.481
  22  0.0163692
  23  6.59148e-05
  24  0.277337
  25  0.289649
Done.

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

Extracting fit parameters...

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  2.924e+00  6.511e-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.255e+00  2.896e-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.044e+00  2.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 60.85
Ra Dec: 60.975 -36.087
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 3.76e-07 +/- 8.37e-08
Energy Flux (Fixed Index): 1.04e-04 +/- 2.31e-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) = 5211.09972329
delta logL = 0.394489978105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5211.08828461
delta logL = 0.405928654739

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8855       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6488       1.0000          .0000       5.0000    
     3 'Normalizat'    .98479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3010       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=   5211.088     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .70E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8855        .79370        .54964E-02    .23068E-04
   2  alpha         2.6485        .36028        .17222        .45969E-05
   3  Normalizat    .98486        .22282        .66796E-01    .12979E-04
   4  Prefactor     1.3012        .23893        .64344E-01    .54473E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.88555
  alpha      = 2.64853
  Normalizat = 0.984864
  Prefactor  = 1.30119
 **********
 **   18 **HESSE 
 **********

 FCN=   5211.088     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .36E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8855        .62268        .24307E-04   -1.5368    
   2  alpha         2.6485        .28807        .75035E-03    .59448E-01
   3  Normalizat    .98486        .27401        .29546E-03   -.93539    
   4  Prefactor     1.3012        .29149        .28459E-03   -.83272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6031e-14
Minuit parameter uncertainties:
  1  0.62268
  2  0.288717
  3  0.274401
  4  0.291853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191904': 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) = 5211.08828306
delta logL = 0.405930206047

Extracting fit parameters...

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  2.886e+00  6.227e-01  1.000e-04  1.000e+04 ( 1.000e-10)
281        alpha:  2.649e+00  2.887e-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.301e+00  2.919e-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.849e-01  2.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 62.22
Ra Dec: 60.975 -36.087
Photon Index (Free Index): 2.65 +/- 0.29
Photon Flux (Free Index): 4.31e-07 +/- 1.08e-07
Energy Flux (Free Index): 1.01e-04 +/- 2.14e-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/191904/cmap_HighResolution_457833601_458092801_4FGL_J0403.9-3605_daily_bin843.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.76e-07', energy_flux2='1.01e-04', photon_flux_error='8.37e-08', dlogl='4.06e-01', energy_flux='1.04e-04', photon_flux2='4.31e-07', job_status='DONE', time_completed='2021-08-20 01:19:21.305999', photon_index_error2='0.29', photon_index2='2.65', ts='60.85', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='2.14e-05', EG='1.04', time_epoch_completed='1629447561.31', return_code='0', job_id='191904', GAL2='1.30', EG2='0.98', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='1.08e-07', ts2='62.22', photon_index='2.39' WHERE bin_id='843' AND source_name='4FGL J0403.9-3605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 01:19:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 191904: <4FGL_J0403.9-3605_daily_bin843> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0403.9-3605_daily_bin843 60.975 -36.087 457833601 458092801 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 :                                   638.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            832 sec.

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

