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


Performing analysis on: 4FGL_J0403.9-3605_daily_bin673
RA = 60.975, Dec = -36.087
tmin = 413769601, tmax = 414028801
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='190578', job_status='RUN', time_executed='2021-08-20 01:01:08.140753', time_epoch_executed='1629446468.14' WHERE source_name='4FGL J0403.9-3605' and cadence='daily' and bin_id='673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/190578

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/190578/ft1_4FGL_J0403.9-3605_daily_bin673.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/190578/ft2_4FGL_J0403.9-3605_daily_bin673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/190578/ft1_4FGL_J0403.9-3605_daily_bin673.fits outfile=/scratch/kocevski/190578/ft1_filteredMKT_4FGL_J0403.9-3605_daily_bin673.fits ra=60.975 dec=-36.087 rad=12.0 tmin=413769601.0 tmax=414028801.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 6.92
user 5.87
sys 1.03

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/190578/ft2_4FGL_J0403.9-3605_daily_bin673.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/190578/ft1_filteredMKT_4FGL_J0403.9-3605_daily_bin673.fits evtable="EVENTS" outfile="/scratch/kocevski/190578/ft1_filtered_4FGL_J0403.9-3605_daily_bin673.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 1.26
user 0.32
sys 0.93

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/190578/ft1_filtered_4FGL_J0403.9-3605_daily_bin673.fits" evtable="EVENTS" scfile=/scratch/kocevski/190578/ft2_4FGL_J0403.9-3605_daily_bin673.fits sctable="SC_DATA" outfile=/scratch/kocevski/190578/ltcube_413769601_414028801_4FGL_J0403.9-3605_daily_bin673.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/190578/ft2_4FGL_J0403.9-3605_daily_bin673.fits
.....................!
real 12.60
user 11.33
sys 1.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/190578/ft1_filtered_4FGL_J0403.9-3605_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/190578/ft2_4FGL_J0403.9-3605_daily_bin673.fits sctable="SC_DATA" expcube=/scratch/kocevski/190578/ltcube_413769601_414028801_4FGL_J0403.9-3605_daily_bin673.fits outfile=/scratch/kocevski/190578/expmap_413769601_414028801_4FGL_J0403.9-3605_daily_bin673.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/190578/ltcube_413769601_414028801_4FGL_J0403.9-3605_daily_bin673.fits
.....................!
real 191.64
user 185.61
sys 5.45

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/190578/ft1_filtered_4FGL_J0403.9-3605_daily_bin673.fits scfile=/scratch/kocevski/190578/ft2_4FGL_J0403.9-3605_daily_bin673.fits outfile=/scratch/kocevski/190578/cmap_413769601_414028801_4FGL_J0403.9-3605_daily_bin673.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 1.31
user 0.39
sys 0.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/190578/ft1_filtered_4FGL_J0403.9-3605_daily_bin673.fits scfile=/scratch/kocevski/190578/ft2_4FGL_J0403.9-3605_daily_bin673.fits outfile=/scratch/kocevski/190578/cmap_HighResolution_413769601_414028801_4FGL_J0403.9-3605_daily_bin673.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 1.33
user 0.39
sys 0.91

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/190578/ft1_filtered_4FGL_J0403.9-3605_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/190578/ft2_4FGL_J0403.9-3605_daily_bin673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/190578/Model_4FGL_J0403.9-3605_daily_bin673.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/190578/ft1_filtered_4FGL_J0403.9-3605_daily_bin673.fits.....................!
real 114.07
user 111.51
sys 2.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.849       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .99409E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.379       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1190       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.375       1.0000         .10000E-03   10000.    
    12 'Prefactor '    55.805       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.104       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.446       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0459       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2142       1.0000         .10000E-03   10000.    
    20 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2439       1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.866       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.147       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80398       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80369       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=   5224.885     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2962 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.843        26.749       -.48020E-05    .50620E-04
   2  Prefactor     .10000E-03    12.401       -.12660E-04** at limit **
   3  norm          .10000E-03    1.1311        .85632E-07** at limit **
   4  norm          .99146E-01    .70703       -.27844E-06   -.44371E-03
   5  Prefactor     .10000E-03    66.382        .33328E-04** at limit **
   6  Prefactor     33.379        31.365       -.46044E-08    .26468E-04
   7  Prefactor     2.1194        3.1156       -.31556E-06   -.32310E-03
   8  Prefactor     .10000E-03    5.0328        .40648E-06** at limit **
   9  norm          .10000E-03    .24595        .41284E-07** at limit **
  10  Prefactor     .10000E-03    71.314       -.36622E-04** at limit **
  11  norm          12.375        11.638       -.14097E-06    .29374E-05
  12  Prefactor     55.806        31.295        .24758E-06    .11115E-04
  13  norm          .10000E-03    .83443E-01    .70088E-08** at limit **
  14  norm          .10000E-03    5.5763       -.41372E-07** at limit **
  15  Prefactor     .10000E-03    13.454        .99181E-05** at limit **
  16  Prefactor     17.106        12.661       -.12830E-05   -.18885E-05
  17  Prefactor     12.445        9.1837       -.13358E-05   -.19532E-02
  18  norm          4.0461        .93343        .12959E-06   -.47093E-03
  19  Prefactor     1.2135        1.8019       -.22128E-06   -.70849E-03
  20  norm          .10000E-03    10.106        .37065E-05** at limit **
  21  norm          2.2438        1.3643       -.15452E-07   -.16069E-03
  22  Prefactor     45.866        42.460       -.31695E-06   -.97860E-05
  23  Prefactor     10.148        6.8478       -.26815E-06   -.93932E-04
  24  Normalizat    .80382        .16168        .17115E-05   -.73308E-04
  25  Prefactor     .80383        .17974       -.30139E-06    .17660E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.843
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0991457
  Prefactor  = 0.0001
  Prefactor  = 33.3786
  Prefactor  = 2.11941
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.3751
  Prefactor  = 55.8061
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1056
  Prefactor  = 12.4446
  norm       = 4.04607
  Prefactor  = 1.21349
  norm       = 0.0001
  norm       = 2.24376
  Prefactor  = 45.8663
  Prefactor  = 10.1479
  Normalizat = 0.803822
  Prefactor  = 0.803828
 **********
 **   18 **HESSE 
 **********

 FCN=   5224.885     FROM HESSE     STATUS=OK           433 CALLS     3395 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.843        26.495        .77313E-04   -1.4671    
   2  Prefactor     .10000E-03    12.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.1396        .75030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .99146E-01    1.5462        .11080E-02   -1.5645    
   5  Prefactor     .10000E-03    66.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.379        31.365        .69359E-04   -1.4552    
   7  Prefactor     2.1194        3.0956        .14956E-03   -1.5417    
   8  Prefactor     .10000E-03    5.0447        .15836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .25090        .34926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    70.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.375        11.635        .11387E-03   -1.5004    
  12  Prefactor     55.806        31.283        .53698E-04   -1.4213    
  13  norm          .10000E-03    .13071        .40514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.7944        .33308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.106        12.658        .96843E-04   -1.4881    
  17  Prefactor     12.445        9.5056        .56773E-03   -1.5002    
  18  norm          4.0461        .95018        .28692E-04   -1.5306    
  19  Prefactor     1.2135        1.7626        .11453E-03   -1.5488    
  20  norm          .10000E-03    10.418        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2438        1.3638        .64005E-04   -1.5408    
  22  Prefactor     45.866        42.453        .59202E-04   -1.4352    
  23  Prefactor     10.148        6.8480        .12579E-03   -1.5071    
  24  Normalizat    .80382        .18842        .22469E-03   -.99927    
  25  Prefactor     .80383        .20993        .25572E-03   -.99587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51138e-08
Minuit parameter uncertainties:
  1  26.5067
  2  1.7093e-06
  3  4.8955e-06
  4  0.782688
  5  0.000250851
  6  31.38
  7  3.09587
  8  1.03087e-06
  9  5.53358e-07
  10  1.37168e-05
  11  11.6366
  12  31.2922
  13  3.14945e-07
  14  3.62705e-06
  15  1.33718e-05
  16  12.6597
  17  9.50679
  18  0.950185
  19  1.76264
  20  4.55438e-05
  21  1.36384
  22  42.4807
  23  6.84853
  24  0.188572
  25  0.210141
Done.

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

Extracting fit parameters...

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  1.000e-04  3.149e-07  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:  8.038e-01  2.101e-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:  8.038e-01  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 60.975 -36.087
Photon Flux Upper Limit: 4.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/190578/likelihoodResults_413769601_414028801_4FGL_J0403.9-3605_daily_bin673.txt

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) = 5224.88663138
delta logL = -0.0019648351099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5224.88456167
delta logL = 0.000104881896732

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1295       1.0000          .0000       5.0000    
     3 'Normalizat'    .80374       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80375       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5224.885     FROM MIGRAD    STATUS=FAILED        90 CALLS      273 TOTAL
                     EDM=   .82E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    .19951        .37445E-03** at limit **
   2  alpha         3.1501        2.8062        .17174       -.81925E-05
   3  Normalizat    .80381        .18202        .22469E-03    .11157E-03
   4  Prefactor     .80384        .20841        .25572E-03    .80867E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5224.885     FROM SIMPLEX   STATUS=UNCHANGED    116 CALLS      389 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    .19951        .51531E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.1501        2.8062        .13979E-02    .26306    
   3  Normalizat    .80381        .18202        .92001E-04   -.99928    
   4  Prefactor     .80384        .20841        .84082E-04   -.99587    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5224.885     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      416 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .18187        .74890E-04** at limit **
   2  alpha         3.1570        3.3359        .68696E-02   -.22318E-05
   3  Normalizat    .80381        .18223        .89877E-05   -.15483E-03
   4  Prefactor     .80384        .20866        .10229E-04   -.92026E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.15696
  Normalizat = 0.803809
  Prefactor  = 0.803837
 **********
 **   18 **HESSE 
 **********

 FCN=   5224.885     FROM HESSE     STATUS=OK            23 CALLS      439 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .18190        .14978E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.1570        3.3360        .13739E-02    .26591    
   3  Normalizat    .80381        .18210        .17975E-05   -.99928    
   4  Prefactor     .80384        .20850        .20458E-05   -.99587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87126e-09
Minuit parameter uncertainties:
  1  7.88048e-06
  2  52.6786
  3  0.182237
  4  0.208707
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/190578': 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) = 5224.88455939
delta logL = 0.000107162536551

Extracting fit parameters...

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  1.000e-04  7.880e-06  1.000e-04  1.000e+04 ( 1.000e-10)
281        alpha:  3.157e+00  5.268e+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:  8.038e-01  2.087e-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:  8.038e-01  1.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 60.975 -36.087

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/190578/cmap_HighResolution_413769601_414028801_4FGL_J0403.9-3605_daily_bin673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-05', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2021-08-20 01:13:42.570861', job_id='190578', GAL2='0.80', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1629447222.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.07e-04', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='673' AND source_name='4FGL J0403.9-3605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 01:13:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 190578: <4FGL_J0403.9-3605_daily_bin673> in cluster <slac> Done

Job <4FGL_J0403.9-3605_daily_bin673> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 01:00:44 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 01:00:46 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:00:46 2021
Terminated at Fri Aug 20 01:13:43 2021
Results reported at Fri Aug 20 01:13:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0403.9-3605_daily_bin673 60.975 -36.087 413769601 414028801 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 :                                   762.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            779 sec.

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

