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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1566
RA = 66.8294, Dec = 5.08
tmin = 645235201, tmax = 645494401
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='459049', job_status='RUN', time_executed='2021-08-20 16:09:05.190758', time_epoch_executed='1629500945.19' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1566'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/459049

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/459049/ft1_4FGL_J0427.3+0504_daily_bin1566.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/459049/ft2_4FGL_J0427.3+0504_daily_bin1566.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/459049/ft1_4FGL_J0427.3+0504_daily_bin1566.fits outfile=/scratch/kocevski/459049/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1566.fits ra=66.8294 dec=5.08 rad=12.0 tmin=645235201.0 tmax=645494401.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 7.79
user 2.56
sys 5.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/459049/ft2_4FGL_J0427.3+0504_daily_bin1566.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/459049/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1566.fits evtable="EVENTS" outfile="/scratch/kocevski/459049/ft1_filtered_4FGL_J0427.3+0504_daily_bin1566.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 5.42
user 0.34
sys 5.04

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/459049/ft1_filtered_4FGL_J0427.3+0504_daily_bin1566.fits" evtable="EVENTS" scfile=/scratch/kocevski/459049/ft2_4FGL_J0427.3+0504_daily_bin1566.fits sctable="SC_DATA" outfile=/scratch/kocevski/459049/ltcube_645235201_645494401_4FGL_J0427.3+0504_daily_bin1566.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/459049/ft2_4FGL_J0427.3+0504_daily_bin1566.fits
.....................!
real 17.81
user 11.86
sys 5.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/459049/ft1_filtered_4FGL_J0427.3+0504_daily_bin1566.fits evtable="EVENTS" scfile=/scratch/kocevski/459049/ft2_4FGL_J0427.3+0504_daily_bin1566.fits sctable="SC_DATA" expcube=/scratch/kocevski/459049/ltcube_645235201_645494401_4FGL_J0427.3+0504_daily_bin1566.fits outfile=/scratch/kocevski/459049/expmap_645235201_645494401_4FGL_J0427.3+0504_daily_bin1566.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/459049/ltcube_645235201_645494401_4FGL_J0427.3+0504_daily_bin1566.fits
.....................!
real 197.46
user 185.96
sys 11.09

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/459049/ft1_filtered_4FGL_J0427.3+0504_daily_bin1566.fits scfile=/scratch/kocevski/459049/ft2_4FGL_J0427.3+0504_daily_bin1566.fits outfile=/scratch/kocevski/459049/cmap_645235201_645494401_4FGL_J0427.3+0504_daily_bin1566.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 5.47
user 0.38
sys 5.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/459049/ft1_filtered_4FGL_J0427.3+0504_daily_bin1566.fits scfile=/scratch/kocevski/459049/ft2_4FGL_J0427.3+0504_daily_bin1566.fits outfile=/scratch/kocevski/459049/cmap_HighResolution_645235201_645494401_4FGL_J0427.3+0504_daily_bin1566.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 5.38
user 0.38
sys 4.97

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/459049/ft1_filtered_4FGL_J0427.3+0504_daily_bin1566.fits', '/scratch/kocevski/459049/ft2_4FGL_J0427.3+0504_daily_bin1566.fits', expMap='/scratch/kocevski/459049/expmap_645235201_645494401_4FGL_J0427.3+0504_daily_bin1566.fits', expCube='/scratch/kocevski/459049/ltcube_645235201_645494401_4FGL_J0427.3+0504_daily_bin1566.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/459049/Model_4FGL_J0427.3+0504_daily_bin1566.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/459049/ft1_filtered_4FGL_J0427.3+0504_daily_bin1566.fits
Spacecraft file(s): /scratch/kocevski/459049/ft2_4FGL_J0427.3+0504_daily_bin1566.fits
Exposure map: /scratch/kocevski/459049/expmap_645235201_645494401_4FGL_J0427.3+0504_daily_bin1566.fits
Exposure cube: /scratch/kocevski/459049/ltcube_645235201_645494401_4FGL_J0427.3+0504_daily_bin1566.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/459049/Model_4FGL_J0427.3+0504_daily_bin1566.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) = 2538.78076158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6863       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2045       1.0000         .10000E-03   10000.    
     8 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .59053       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.886       1.0000         .10000E-03   10000.    
    14 'Prefactor '    110.56       1.0000         .10000E-03   10000.    
    15 'norm      '    15.384       1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.178       1.0000         .10000E-03   10000.    
    17 'norm      '    .11072E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12215E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .88866E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .48016E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.2329       1.0000         .10000E-03   10000.    
    24 'norm      '    .26109E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .68130       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0541       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=   2538.768     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     3352 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.308        .12447E-05** at limit **
   2  Prefactor     .10000E-03    14.877       -.11582E-06** at limit **
   3  norm          .10000E-03    11.518       -.10249E-06** at limit **
   4  Prefactor     .10000E-03    362.10       -.37959E-05** at limit **
   5  norm          .10000E-03    4.1288       -.15763E-06** at limit **
   6  Prefactor     2.6848        400.30       -.92659E-05    .52797E-05
   7  norm          1.2035        58.569        .46467E-05    .26025E-05
   8  norm          .10000E-03    37.039       -.10650E-05** at limit **
   9  norm          .59038        1.9518       -.12080E-05   -.45303E-04
  10  Prefactor     .10000E-03    2.0259       -.26084E-07** at limit **
  11  Prefactor     .10000E-03    43.874        .27035E-06** at limit **
  12  Prefactor     .10000E-03    79.940       -.14447E-05** at limit **
  13  Prefactor     22.895        21.104        .54144E-06    .13212E-03
  14  Prefactor     110.64        139.62        .12166E-05    .11474E-04
  15  norm          15.389        12.137        .14882E-06    .18887E-03
  16  Prefactor     29.962        295.58       -.20395E-04    .89512E-05
  17  norm          .10000E-03    42.393       -.95660E-05** at limit **
  18  Prefactor     .10000E-03    79.258       -.70679E-05** at limit **
  19  norm          .10000E-03    8.7654       -.85520E-06** at limit **
  20  Prefactor     .10000E-03    376.76       -.35505E-05** at limit **
  21  norm          .10175        11.419        .40001E-05    .32678E-04
  22  Prefactor     .10000E-03    635.20       -.37524E-05** at limit **
  23  norm          3.2294        4.0248       -.97898E-07    .10913E-03
  24  norm          .10000E-03    116.94        .13017E-06** at limit **
  25  Prefactor     .10000E-03    91.074        .33216E-05** at limit **
  26  Normalizat    .68109        .48084       -.18723E-06    .99551E-04
  27  Prefactor     1.0541        .15949        .14434E-05    .12773E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.68481
  norm       = 1.20346
  norm       = 0.0001
  norm       = 0.59038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.895
  Prefactor  = 110.64
  norm       = 15.3894
  Prefactor  = 29.9623
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.101746
  Prefactor  = 0.0001
  norm       = 3.22942
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.681089
  Prefactor  = 1.05415
 **********
 **   18 **HESSE 
 **********

 FCN=   2538.768     FROM HESSE     STATUS=OK           482 CALLS     3834 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.521        .16705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    369.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.1350        .99852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6848        401.42        .24859E-03   -1.5380    
   7  norm          1.2035        58.479        .20653E-02   -1.5489    
   8  norm          .10000E-03    37.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .59038        1.9165        .11698E-03   -1.5554    
  10  Prefactor     .10000E-03    2.0495        .69779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    43.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    79.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.895        21.034        .83729E-04   -1.4751    
  14  Prefactor     110.64        140.40        .19127E-03   -1.3600    
  15  norm          15.389        12.105        .10212E-03   -1.4923    
  16  Prefactor     29.962        294.51        .36467E-03   -1.4613    
  17  norm          .10000E-03    48.474        .18785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    79.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.7836        .14566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    376.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10175        54.484        .18774E-02   -1.5644    
  22  Prefactor     .10000E-03    636.01        .21177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.2294        3.9525        .10756E-03   -1.5349    
  24  norm          .10000E-03    117.67        .42895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    91.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .68109        .49959        .54073E-03   -1.0464    
  27  Prefactor     1.0541        .17035        .15176E-03   -.90946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94941e-10
Minuit parameter uncertainties:
  1  1.86773e-05
  2  7.61727e-06
  3  3.3006e-06
  4  0.00022304
  5  1.3931e-05
  6  66.1127
  7  16.7949
  8  1.44855e-06
  9  1.91668
  10  1.49929e-05
  11  2.36741e-05
  12  0.000135265
  13  21.0411
  14  140.829
  15  12.1074
  16  189.099
  17  0.000187656
  18  0.000336597
  19  1.26208e-05
  20  0.000110794
  21  4.71093
  22  0.000195815
  23  3.95283
  24  8.31634e-05
  25  6.83509e-05
  26  0.502976
  27  0.170437
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  2.367e-05  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:  1.054e+00  1.704e-01  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:  6.811e-01  5.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/459049/likelihoodResults_645235201_645494401_4FGL_J0427.3+0504_daily_bin1566.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): 102
logL (Free Index) = 2538.76772288
delta logL = -0.000108397512577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2538.76761569
delta logL = -1.21053381008e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4707       1.0000          .0000       10.000    
     3 'Normalizat'    .68109       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0541       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2538.768     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      293 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    365.33        .18142E-01** at limit **
   2  Index         2.2910        6.8526        .50000       -.41916E-07
   3  Normalizat    .68108        .29391E-01    .54075E-03    .71271E-05
   4  Prefactor     1.0541        .10177E-01    .15176E-03    .27942E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.29103
  Normalizat = 0.681083
  Prefactor  = 1.05415
 **********
 **   18 **HESSE 
 **********

 FCN=   2538.768     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      322 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1680.7        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2910        7.7602        .50000       -.57257    
   3  Normalizat    .68108        .65918E-01    .21630E-04   -1.0464    
   4  Prefactor     1.0541        .22826E-01    .60705E-05   -.90946    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.92442e-10
Minuit parameter uncertainties:
  1  0.00102001
  2  1439.2
  3  0.065926
  4  0.0228264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/459049': 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): 102
logL (Free Index) = 2538.76761411
delta logL = 3.68097971659e-07

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  1.020e-03  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.291e+00  1.439e+03  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:  1.054e+00  2.283e-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:  6.811e-01  6.593e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 66.829 5.080

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/459049/cmap_HighResolution_645235201_645494401_4FGL_J0427.3+0504_daily_bin1566.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-02', job_status='DONE', photon_flux_upper_limit='4.49e-07', time_completed='2021-08-20 16:17:47.642400', job_id='459049', GAL2='1.05', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1629501467.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1566' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:17:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 459049: <4FGL_J0427.3+0504_daily_bin1566> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1566> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 16:05:26 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:05:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 16:05:28 2021
Terminated at Fri Aug 20 16:17:49 2021
Results reported at Fri Aug 20 16:17:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1566 66.8294 5.08 645235201 645494401 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 :                                   599.25 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             253.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            743 sec.

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

