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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1111
RA = 66.8294, Dec = 5.08
tmin = 527299201, tmax = 527558401
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='453798', job_status='RUN', time_executed='2021-08-20 15:51:10.087971', time_epoch_executed='1629499870.09' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1111'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453798

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453798/ft1_4FGL_J0427.3+0504_daily_bin1111.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453798/ft2_4FGL_J0427.3+0504_daily_bin1111.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453798/ft1_4FGL_J0427.3+0504_daily_bin1111.fits outfile=/scratch/kocevski/453798/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1111.fits ra=66.8294 dec=5.08 rad=12.0 tmin=527299201.0 tmax=527558401.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 5.07
user 4.54
sys 0.46

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/453798/ft2_4FGL_J0427.3+0504_daily_bin1111.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/453798/ft2_4FGL_J0427.3+0504_daily_bin1111.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/453798/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1111.fits evtable="EVENTS" outfile="/scratch/kocevski/453798/ft1_filtered_4FGL_J0427.3+0504_daily_bin1111.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.77
user 0.31
sys 0.45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/453798/ft1_filtered_4FGL_J0427.3+0504_daily_bin1111.fits" evtable="EVENTS" scfile=/scratch/kocevski/453798/ft2_4FGL_J0427.3+0504_daily_bin1111.fits sctable="SC_DATA" outfile=/scratch/kocevski/453798/ltcube_527299201_527558401_4FGL_J0427.3+0504_daily_bin1111.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/453798/ft2_4FGL_J0427.3+0504_daily_bin1111.fits
.....................!
real 12.61
user 11.80
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453798/ft1_filtered_4FGL_J0427.3+0504_daily_bin1111.fits evtable="EVENTS" scfile=/scratch/kocevski/453798/ft2_4FGL_J0427.3+0504_daily_bin1111.fits sctable="SC_DATA" expcube=/scratch/kocevski/453798/ltcube_527299201_527558401_4FGL_J0427.3+0504_daily_bin1111.fits outfile=/scratch/kocevski/453798/expmap_527299201_527558401_4FGL_J0427.3+0504_daily_bin1111.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/453798/ltcube_527299201_527558401_4FGL_J0427.3+0504_daily_bin1111.fits
.....................!
real 193.92
user 185.43
sys 5.78

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

Setting source of interest to:
4FGL J0427.3+0504 @ 66.8294 5.08

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/453798/ft1_filtered_4FGL_J0427.3+0504_daily_bin1111.fits scfile=/scratch/kocevski/453798/ft2_4FGL_J0427.3+0504_daily_bin1111.fits outfile=/scratch/kocevski/453798/cmap_527299201_527558401_4FGL_J0427.3+0504_daily_bin1111.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=66.8294 yref=5.08 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.75
user 0.37
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453798/ft1_filtered_4FGL_J0427.3+0504_daily_bin1111.fits scfile=/scratch/kocevski/453798/ft2_4FGL_J0427.3+0504_daily_bin1111.fits outfile=/scratch/kocevski/453798/cmap_HighResolution_527299201_527558401_4FGL_J0427.3+0504_daily_bin1111.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=66.8294 yref=5.08 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.86
user 0.37
sys 0.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/453798/ft1_filtered_4FGL_J0427.3+0504_daily_bin1111.fits evtable="EVENTS" scfile=/scratch/kocevski/453798/ft2_4FGL_J0427.3+0504_daily_bin1111.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/453798/Model_4FGL_J0427.3+0504_daily_bin1111.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/453798/ft1_filtered_4FGL_J0427.3+0504_daily_bin1111.fits.....................!
real 148.52
user 145.05
sys 1.68

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/453798/ft1_filtered_4FGL_J0427.3+0504_daily_bin1111.fits', '/scratch/kocevski/453798/ft2_4FGL_J0427.3+0504_daily_bin1111.fits', expMap='/scratch/kocevski/453798/expmap_527299201_527558401_4FGL_J0427.3+0504_daily_bin1111.fits', expCube='/scratch/kocevski/453798/ltcube_527299201_527558401_4FGL_J0427.3+0504_daily_bin1111.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/453798/Model_4FGL_J0427.3+0504_daily_bin1111.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0427.3+0504'

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  8.580e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/453798/ft1_filtered_4FGL_J0427.3+0504_daily_bin1111.fits
Spacecraft file(s): /scratch/kocevski/453798/ft2_4FGL_J0427.3+0504_daily_bin1111.fits
Exposure map: /scratch/kocevski/453798/expmap_527299201_527558401_4FGL_J0427.3+0504_daily_bin1111.fits
Exposure cube: /scratch/kocevski/453798/ltcube_527299201_527558401_4FGL_J0427.3+0504_daily_bin1111.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/453798/Model_4FGL_J0427.3+0504_daily_bin1111.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) = 10148.3572294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.676       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.8373       1.0000         .10000E-03   10000.    
     9 'norm      '    .54417E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6931       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.782       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8662       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.4383       1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.375       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2041       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.154       1.0000         .10000E-03   10000.    
    21 'norm      '    9.7875       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.588       1.0000         .10000E-03   10000.    
    23 'norm      '    .99542       1.0000         .10000E-03   10000.    
    24 'norm      '    43.863       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.9006       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1587       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98252       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10148.36     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3253 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.670        34.884        .11585E-05    .76513E-04
   2  Prefactor     .10000E-03    6.0294       -.12374E-07** at limit **
   3  norm          .10000E-03    7.2113        .18164E-06** at limit **
   4  Prefactor     .10000E-03    10.579        .90669E-07** at limit **
   5  norm          .10000E-03    1.3188        .11764E-06** at limit **
   6  Prefactor     .10000E-03    6.9625        .24524E-06** at limit **
   7  norm          .10000E-03    8.3321        .22783E-06** at limit **
   8  norm          2.8322        30.953       -.54504E-06   -.68138E-04
   9  norm          .58474E-01    3.1008        .43451E-05   -.79287E-03
  10  Prefactor     .10000E-03    .63289        .57599E-06** at limit **
  11  Prefactor     3.6891        17.795        .90236E-06    .45046E-04
  12  Prefactor     18.755        38.517       -.43055E-05   -.19085E-03
  13  Prefactor     9.8605        12.452       -.79199E-06   -.28555E-03
  14  Prefactor     .10000E-03    8.4840       -.92958E-07** at limit **
  15  norm          2.4378        2.4372       -.15237E-07   -.13698E-03
  16  Prefactor     48.379        42.063       -.11221E-06   -.77855E-04
  17  norm          .10000E-03    .53063        .16340E-06** at limit **
  18  Prefactor     .10000E-03    3.4750        .17525E-06** at limit **
  19  norm          3.2045        2.1479        .11184E-06    .32169E-03
  20  Prefactor     15.154        30.679       -.14080E-06    .25562E-04
  21  norm          9.7867        3.1297       -.95241E-07   -.90132E-03
  22  Prefactor     12.573        35.665        .17555E-05    .18332E-03
  23  norm          .99564        .97898        .91180E-07    .98236E-03
  24  norm          43.863        8.2959       -.88834E-07   -.70558E-04
  25  Prefactor     1.9008        2.6362        .85868E-08    .10598E-03
  26  Normalizat    1.1591        .25764        .65532E-06   -.19975E-03
  27  Prefactor     .98240        .73457E-01   -.93187E-06   -.18646E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.6701
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.83217
  norm       = 0.0584737
  Prefactor  = 0.0001
  Prefactor  = 3.68906
  Prefactor  = 18.7545
  Prefactor  = 9.86047
  Prefactor  = 0.0001
  norm       = 2.43778
  Prefactor  = 48.3795
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.20453
  Prefactor  = 15.1539
  norm       = 9.78669
  Prefactor  = 12.573
  norm       = 0.995637
  norm       = 43.8626
  Prefactor  = 1.90075
  Normalizat = 1.15913
  Prefactor  = 0.982398
 **********
 **   18 **HESSE 
 **********

 FCN=   10148.36     FROM HESSE     STATUS=OK           486 CALLS     3739 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.670        34.948        .90294E-04   -1.4821    
   2  Prefactor     .10000E-03    6.0414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.2214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.3212        .11299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.9741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.3527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.8322        30.879        .24141E-03   -1.5371    
   9  norm          .58474E-01    3.3370        .12611E-02   -1.5660    
  10  Prefactor     .10000E-03    .64598        .78295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6891        17.556        .21016E-03   -1.5324    
  12  Prefactor     18.755        38.979        .92417E-04   -1.4842    
  13  Prefactor     9.8605        12.560        .12757E-03   -1.5080    
  14  Prefactor     .10000E-03    8.5152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4378        2.4087        .14578E-03   -1.5396    
  16  Prefactor     48.379        42.075        .57654E-04   -1.4316    
  17  norm          .10000E-03    .53560        .71772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.4987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2045        2.1468        .11531E-03   -1.5350    
  20  Prefactor     15.154        30.564        .10289E-03   -1.4929    
  21  norm          9.7867        3.1495        .96460E-04   -1.5082    
  22  Prefactor     12.573        35.095        .11290E-03   -1.4999    
  23  norm          .99564        .92098        .77178E-04   -1.5508    
  24  norm          43.863        8.2123        .60533E-04   -1.4382    
  25  Prefactor     1.9008        2.6173        .18673E-03   -1.5432    
  26  Normalizat    1.1591        .28246        .46311E-03   -.87875    
  27  Prefactor     .98240        .82936E-01    .15962E-03   -.93319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83885e-09
Minuit parameter uncertainties:
  1  34.9838
  2  8.34657e-07
  3  3.48648e-05
  4  2.25041e-06
  5  5.87499e-06
  6  4.6723e-05
  7  3.99679e-05
  8  18.7152
  9  0.882761
  10  4.95682e-07
  11  16.103
  12  39.0322
  13  12.5637
  14  1.26119e-06
  15  2.40875
  16  42.1011
  17  5.44593e-06
  18  2.67936e-05
  19  2.14688
  20  30.5952
  21  3.1496
  22  35.1529
  23  0.920991
  24  8.21252
  25  2.6175
  26  0.282834
  27  0.0829464
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  3.689e+00  1.610e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  9.824e-01  8.295e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.159e+00  2.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 66.829 5.080
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/453798/likelihoodResults_527299201_527558401_4FGL_J0427.3+0504_daily_bin1111.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) = 10148.1195021
delta logL = 0.235579226875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10147.9412825
delta logL = 0.413798831205

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.339       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8457       1.0000          .0000       10.000    
     3 'Normalizat'    1.1682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97661       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10147.94     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      239 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.331        16.887       -.57108E-05   -.23997E-03
   2  Index         1.8456        .65533       -.36218E-04    .50783E-04
   3  Normalizat    1.1683        .22424        .89551E-06    .28118E-03
   4  Prefactor     .97658        .72201E-01    .23617E-06    .90919E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3313
  Index      = 1.84556
  Normalizat = 1.16833
  Prefactor  = 0.976583
 **********
 **   18 **HESSE 
 **********

 FCN=   10147.94     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.331        16.648        .11404E-03   -1.5006    
   2  Index         1.8456        .64310        .10795E-01   -.68270    
   3  Normalizat    1.1683        .24694        .46147E-03   -.87587    
   4  Prefactor     .97658        .79848E-01    .15998E-03   -.93514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84469e-10
Minuit parameter uncertainties:
  1  16.6547
  2  0.646079
  3  0.24719
  4  0.0798572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453798': 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) = 10147.9412822
delta logL = 0.413799124435

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.233e+01  1.665e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  1.846e+00  6.461e-01  0.000e+00  1.000e+01 (-1.000e+00)
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  9.766e-01  7.986e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.168e+00  2.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 66.829 5.080

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/453798/cmap_HighResolution_527299201_527558401_4FGL_J0427.3+0504_daily_bin1111.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2021-08-20 16:06:58.748926', job_id='453798', GAL2='0.98', fit_tolerance='1e-08', EG2='1.17', EG='1.16', time_epoch_completed='1629500818.75', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.14e-01', ts2='0.89', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1111' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:06:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 453798: <4FGL_J0427.3+0504_daily_bin1111> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1111> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 15:50:36 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 15:50:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 15:50:39 2021
Terminated at Fri Aug 20 16:06:59 2021
Results reported at Fri Aug 20 16:06:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1111 66.8294 5.08 527299201 527558401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0427.3+0504 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   943.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

