/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 227 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 = 7397
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0505.3+0459_daily_bin322
RA = 76.3431, Dec = 4.9994
tmin = 322790401, tmax = 323049601
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='946789', job_status='RUN', time_executed='2021-08-21 19:19:37.265944', time_epoch_executed='1629598777.27' WHERE source_name='4FGL J0505.3+0459' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946789

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946789/ft1_4FGL_J0505.3+0459_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946789/ft2_4FGL_J0505.3+0459_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946789/ft1_4FGL_J0505.3+0459_daily_bin322.fits outfile=/scratch/kocevski/946789/ft1_filteredMKT_4FGL_J0505.3+0459_daily_bin322.fits ra=76.3431 dec=4.9994 rad=12.0 tmin=322790401.0 tmax=323049601.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.87
user 11.57
sys 1.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/946789/ft2_4FGL_J0505.3+0459_daily_bin322.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/946789/ft2_4FGL_J0505.3+0459_daily_bin322.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/946789/ft1_filteredMKT_4FGL_J0505.3+0459_daily_bin322.fits evtable="EVENTS" outfile="/scratch/kocevski/946789/ft1_filtered_4FGL_J0505.3+0459_daily_bin322.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.43
user 0.33
sys 1.08

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946789/ft1_filtered_4FGL_J0505.3+0459_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/946789/ft2_4FGL_J0505.3+0459_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/946789/ltcube_322790401_323049601_4FGL_J0505.3+0459_daily_bin322.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/946789/ft2_4FGL_J0505.3+0459_daily_bin322.fits
.....................!
real 12.40
user 10.94
sys 1.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946789/ft1_filtered_4FGL_J0505.3+0459_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/946789/ft2_4FGL_J0505.3+0459_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/946789/ltcube_322790401_323049601_4FGL_J0505.3+0459_daily_bin322.fits outfile=/scratch/kocevski/946789/expmap_322790401_323049601_4FGL_J0505.3+0459_daily_bin322.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/946789/ltcube_322790401_323049601_4FGL_J0505.3+0459_daily_bin322.fits
.....................!
real 191.85
user 185.75
sys 5.61

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
Added 141 point sources and 0 extended sources

Setting source of interest to:
4FGL J0505.3+0459 @ 76.3431 4.9994

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/946789/ft1_filtered_4FGL_J0505.3+0459_daily_bin322.fits scfile=/scratch/kocevski/946789/ft2_4FGL_J0505.3+0459_daily_bin322.fits outfile=/scratch/kocevski/946789/cmap_322790401_323049601_4FGL_J0505.3+0459_daily_bin322.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=76.3431 yref=4.9994 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.45
user 0.36
sys 1.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946789/ft1_filtered_4FGL_J0505.3+0459_daily_bin322.fits scfile=/scratch/kocevski/946789/ft2_4FGL_J0505.3+0459_daily_bin322.fits outfile=/scratch/kocevski/946789/cmap_HighResolution_322790401_323049601_4FGL_J0505.3+0459_daily_bin322.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=76.3431 yref=4.9994 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.45
user 0.39
sys 1.06

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/946789/ft1_filtered_4FGL_J0505.3+0459_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/946789/ft2_4FGL_J0505.3+0459_daily_bin322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/946789/Model_4FGL_J0505.3+0459_daily_bin322.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 GAL_V02
Working on...
/scratch/kocevski/946789/ft1_filtered_4FGL_J0505.3+0459_daily_bin322.fits......................!
real 57.36
user 54.80
sys 2.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/946789/ft1_filtered_4FGL_J0505.3+0459_daily_bin322.fits', '/scratch/kocevski/946789/ft2_4FGL_J0505.3+0459_daily_bin322.fits', expMap='/scratch/kocevski/946789/expmap_322790401_323049601_4FGL_J0505.3+0459_daily_bin322.fits', expCube='/scratch/kocevski/946789/ltcube_322790401_323049601_4FGL_J0505.3+0459_daily_bin322.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/946789/Model_4FGL_J0505.3+0459_daily_bin322.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0505.3+0459'

4FGL J0505.3+0459
   Spectrum: LogParabola
176         norm:  1.489e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
177        alpha:  2.321e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
178         beta:  1.056e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
179           Eb:  8.216e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/946789/ft1_filtered_4FGL_J0505.3+0459_daily_bin322.fits
Spacecraft file(s): /scratch/kocevski/946789/ft2_4FGL_J0505.3+0459_daily_bin322.fits
Exposure map: /scratch/kocevski/946789/expmap_322790401_323049601_4FGL_J0505.3+0459_daily_bin322.fits
Exposure cube: /scratch/kocevski/946789/ltcube_322790401_323049601_4FGL_J0505.3+0459_daily_bin322.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/946789/Model_4FGL_J0505.3+0459_daily_bin322.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) = 3060.80580053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    173.00       1.0000         .10000E-03   10000.    
     2 'norm      '    104.92       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4613       1.0000         .10000E-03   10000.    
     4 'Prefactor '    86.387       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .91110E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.470       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0978       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.6064       1.0000         .10000E-03   10000.    
    11 'Prefactor '    154.39       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7372       1.0000         .10000E-03   10000.    
    15 'norm      '    .68856       1.0000         .10000E-03   10000.    
    16 'Prefactor '    125.08       1.0000         .10000E-03   10000.    
    17 'norm      '    10.624       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.659       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .42549E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.6624       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    209.78       1.0000         .10000E-03   10000.    
    27 'norm      '    .10448E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .12703       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89426       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4770E+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.

 FCN=   3060.774     FROM MIGRAD    STATUS=CONVERGED   1322 CALLS     4902 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     172.97        102.55        .15339E-03    .16602E-04
   2  norm          104.89        110.37        .19629E-03    .38602E-04
   3  Prefactor     5.4601        5.3839        .11842E-03    .19633E-04
   4  Prefactor     86.399        77.397        .43224E-04    .91530E-05
   5  Prefactor     .10002E-03    171.53        .20948    ** at limit **
   6  norm          .10000E-03    7.7622        .14940E-02** at limit **
   7  Prefactor     50.464        65.763        .56450E-04    .68273E-05
   8  norm          2.0897        12.251        .14248E-02    .58215E-03
   9  Prefactor     .10000E-03    15.083        .18142E-02** at limit **
  10  norm          6.6054        4.5305        .92078E-04    .21274E-03
  11  Prefactor     154.40        122.59        .32444E-04    .56731E-04
  12  norm          .10000E-03    6.1431        .13311E-02** at limit **
  13  Prefactor     .10000E-03    54.867        .18142E-02** at limit **
  14  Prefactor     4.7358        9.3153        .18487E-03    .38527E-04
  15  norm          .68927        1.4909        .95144E-03    .62100E-03
  16  Prefactor     125.08        99.168        .35992E-04    .25017E-04
  17  norm          10.623        11.640        .12292E-03    .12426E-03
  18  Prefactor     .10000E-03    8.0185        .15160E-02** at limit **
  19  Prefactor     25.654        13.084        .79083E-04    .80791E-04
  20  norm          .10000E-03    39.059        .18142E-02** at limit **
  21  Prefactor     .10000E-03    439.68        .21235E-02** at limit **
  22  Prefactor     .10000E-03    9.7712        .16876E-02** at limit **
  23  norm          .10000E-03    5.0552        .12128E-02** at limit **
  24  norm          1.6617        2.6330        .10567E-03    .99251E-04
  25  Prefactor     .10000E-03    80.302        .18142E-02** at limit **
  26  Prefactor     209.75        80.947        .13956E-03    .23869E-04
  27  norm          .10000E-03    317.23        .18142E-02** at limit **
  28  Normalizat    .12672        .87741        .13180E-01    .33850E-04
  29  Prefactor     .89432        .13896        .14481E-03    .15650E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 172.971
  norm       = 104.886
  Prefactor  = 5.46014
  Prefactor  = 86.3993
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 50.4639
  norm       = 2.08966
  Prefactor  = 0.0001
  norm       = 6.60538
  Prefactor  = 154.404
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.73575
  norm       = 0.689272
  Prefactor  = 125.076
  norm       = 10.6231
  Prefactor  = 0.0001
  Prefactor  = 25.6544
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.66166
  Prefactor  = 0.000100001
  Prefactor  = 209.751
  norm       = 0.0001
  Normalizat = 0.126721
  Prefactor  = 0.89432
 **********
 **   18 **HESSE 
 **********

 FCN=   3060.774     FROM HESSE     STATUS=OK           537 CALLS     5439 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     172.97        102.54        .61357E-05   -1.3070    
   2  norm          104.89        110.33        .78516E-05   -1.3656    
   3  Prefactor     5.4601        5.3842        .47367E-05   -1.5241    
   4  Prefactor     86.399        77.260        .86449E-05   -1.3846    
   5  Prefactor     .10002E-03    175.08        .20562       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.7642        .29881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     50.464        65.757        .11290E-04   -1.4286    
   8  norm          2.0897        11.688        .56991E-04   -1.5419    
   9  Prefactor     .10000E-03    15.085        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.6054        4.5268        .36831E-05   -1.5194    
  11  Prefactor     154.40        121.19        .64888E-05   -1.3216    
  12  norm          .10000E-03    6.1440        .26623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    54.868        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7358        9.3151        .73948E-05   -1.5273    
  15  norm          .68927        1.4860        .38058E-04   -1.5542    
  16  Prefactor     125.08        98.528        .71983E-05   -1.3467    
  17  norm          10.623        11.620        .49169E-05   -1.5056    
  18  Prefactor     .10000E-03    8.0219        .30321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.654        13.082        .31633E-05   -1.4695    
  20  norm          .10000E-03    39.059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    439.98        .42470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.7718        .33751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.0555        .24257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.6617        2.6327        .42267E-05   -1.5450    
  25  Prefactor     .10000E-03    80.303        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     209.75        80.868        .55823E-05   -1.2801    
  27  norm          .10000E-03    317.35        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .12672        .74883        .52719E-03   -1.3542    
  29  Prefactor     .89432        .13133        .28961E-04   -.96340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4202e-09
Minuit parameter uncertainties:
  1  102.642
  2  110.548
  3  5.38469
  4  77.3497
  5  0.00335149
  6  6.0163e-06
  7  65.8513
  8  9.88697
  9  5.91921e-05
  10  4.52702
  11  121.384
  12  1.31053e-05
  13  6.94388e-05
  14  9.31794
  15  1.48609
  16  98.658
  17  11.6225
  18  2.90969e-06
  19  13.0839
  20  4.3392e-06
  21  0.000986446
  22  5.95415e-06
  23  1.38034e-05
  24  2.63292
  25  0.000694462
  26  80.911
  27  0.000794828
  28  0.602695
  29  0.131379
Done.

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

Extracting fit parameters...

4FGL J0505.3+0459
   Spectrum: LogParabola
176         norm:  6.893e-01  1.486e+00  1.000e-04  1.000e+04 ( 1.000e-11)
177        alpha:  2.321e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
178         beta:  1.056e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
179           Eb:  8.216e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
474    Prefactor:  8.943e-01  1.314e-01  0.000e+00  1.000e+01 ( 1.000e+00)
475        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
476        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
473   Normalization:  1.267e-01  6.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 76.343 4.999
Photon Flux Upper Limit: 3.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/946789/likelihoodResults_322790401_323049601_4FGL_J0505.3+0459_daily_bin322.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) = 3060.77353913
delta logL = 0.000361981744845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3060.77349567
delta logL = 0.000405435285302

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .67572       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3566       1.0000          .0000       5.0000    
     3 'Normalizat'    .12513       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89455       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3060.773     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      246 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67692        52.409        .20104E-01    .79860E-03
   2  alpha         2.3585        3.0083        .41238       -.70887E-06
   3  Normalizat    .12533        .10706        .33968        .30752E-04
   4  Prefactor     .89451        .31671E-01    .32764E-01   -.38480E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.676916
  alpha      = 2.35851
  Normalizat = 0.125329
  Prefactor  = 0.894506
 **********
 **   18 **HESSE 
 **********

 FCN=   3060.773     FROM HESSE     STATUS=OK            37 CALLS      283 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .67692        1.4738        .93886E-03   -1.5543    
   2  alpha         2.3585        1.3074        .22312E-01   -.56626E-01
   3  Normalizat    .12533        .55902        .13228E-01   -1.3555    
   4  Prefactor     .89451        .12727        .14479E-03   -.96333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80796e-11
Minuit parameter uncertainties:
  1  1.47384
  2  1.37611
  3  0.51582
  4  0.127314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946789': 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) = 3060.77349323
delta logL = 0.000407882067066

Extracting fit parameters...

4FGL J0505.3+0459
   Spectrum: LogParabola
176         norm:  6.769e-01  1.474e+00  1.000e-04  1.000e+04 ( 1.000e-11)
177        alpha:  2.359e+00  1.376e+00  0.000e+00  5.000e+00 ( 1.000e+00)
178         beta:  1.056e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
179           Eb:  8.216e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
474    Prefactor:  8.945e-01  1.273e-01  0.000e+00  1.000e+01 ( 1.000e+00)
475        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
476        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
473   Normalization:  1.253e-01  5.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
Ra Dec: 76.343 4.999

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/946789/cmap_HighResolution_322790401_323049601_4FGL_J0505.3+0459_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-04', job_status='DONE', photon_flux_upper_limit='3.59e-07', time_completed='2021-08-21 19:30:23.345811', job_id='946789', GAL2='0.89', fit_tolerance='1e-08', EG2='0.13', EG='0.13', time_epoch_completed='1629599423.35', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.08e-04', ts2='0.38', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='322' AND source_name='4FGL J0505.3+0459' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 19:30:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 946789: <4FGL_J0505.3+0459_daily_bin322> in cluster <slac> Done

Job <4FGL_J0505.3+0459_daily_bin322> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 21 19:15:25 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 19:15:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 19:15:26 2021
Terminated at Sat Aug 21 19:30:24 2021
Results reported at Sat Aug 21 19:30:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0505.3+0459_daily_bin322 76.3431 4.9994 322790401 323049601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0505.3+0459 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   639.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             250.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            899 sec.

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

