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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1514
RA = 66.8294, Dec = 5.08
tmin = 631756801, tmax = 632016001
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='458966', job_status='RUN', time_executed='2021-08-20 16:08:58.515232', time_epoch_executed='1629500938.52' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458966

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458966/ft1_4FGL_J0427.3+0504_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458966/ft2_4FGL_J0427.3+0504_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458966/ft1_4FGL_J0427.3+0504_daily_bin1514.fits outfile=/scratch/kocevski/458966/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1514.fits ra=66.8294 dec=5.08 rad=12.0 tmin=631756801.0 tmax=632016001.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 4.18
user 2.18
sys 1.97

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/458966/ft2_4FGL_J0427.3+0504_daily_bin1514.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/458966/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1514.fits evtable="EVENTS" outfile="/scratch/kocevski/458966/ft1_filtered_4FGL_J0427.3+0504_daily_bin1514.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 2.33
user 0.32
sys 2.00

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/458966/ft1_filtered_4FGL_J0427.3+0504_daily_bin1514.fits" evtable="EVENTS" scfile=/scratch/kocevski/458966/ft2_4FGL_J0427.3+0504_daily_bin1514.fits sctable="SC_DATA" outfile=/scratch/kocevski/458966/ltcube_631756801_632016001_4FGL_J0427.3+0504_daily_bin1514.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/458966/ft2_4FGL_J0427.3+0504_daily_bin1514.fits
.....................!
real 14.84
user 12.42
sys 2.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458966/ft1_filtered_4FGL_J0427.3+0504_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/458966/ft2_4FGL_J0427.3+0504_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/458966/ltcube_631756801_632016001_4FGL_J0427.3+0504_daily_bin1514.fits outfile=/scratch/kocevski/458966/expmap_631756801_632016001_4FGL_J0427.3+0504_daily_bin1514.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/458966/ltcube_631756801_632016001_4FGL_J0427.3+0504_daily_bin1514.fits
.....................!
real 192.89
user 185.14
sys 7.40

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/458966/ft1_filtered_4FGL_J0427.3+0504_daily_bin1514.fits scfile=/scratch/kocevski/458966/ft2_4FGL_J0427.3+0504_daily_bin1514.fits outfile=/scratch/kocevski/458966/cmap_631756801_632016001_4FGL_J0427.3+0504_daily_bin1514.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 2.33
user 0.37
sys 1.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458966/ft1_filtered_4FGL_J0427.3+0504_daily_bin1514.fits scfile=/scratch/kocevski/458966/ft2_4FGL_J0427.3+0504_daily_bin1514.fits outfile=/scratch/kocevski/458966/cmap_HighResolution_631756801_632016001_4FGL_J0427.3+0504_daily_bin1514.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 2.33
user 0.38
sys 1.94

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.744       1.0000         .10000E-03   10000.    
     3 'norm      '    6.9700       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1785       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .54103       1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.968       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.091       1.0000         .10000E-03   10000.    
    15 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.246       1.0000         .10000E-03   10000.    
    17 'norm      '    .13098       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.6172       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21410E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    47.407       1.0000         .10000E-03   10000.    
    23 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.7891       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.7700       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0700       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0057       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=   4153.595     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3343 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.783       -.12054E-04** at limit **
   2  Prefactor     26.745        24.800       -.52244E-06    .11269E-04
   3  norm          6.9692        19.502       -.37867E-05   -.64381E-03
   4  Prefactor     .10000E-03    26.964        .25778E-04** at limit **
   5  norm          2.1781        5.0723       -.71608E-06   -.40863E-03
   6  Prefactor     .10000E-03    86.389        .84630E-05** at limit **
   7  norm          .10000E-03    10.392       -.54562E-06** at limit **
   8  norm          .10000E-03    16.143        .12109E-05** at limit **
   9  norm          .10000E-03    .58277        .86245E-07** at limit **
  10  Prefactor     .54104        1.8886       -.10430E-05   -.11262E-02
  11  Prefactor     32.965        38.752       -.32220E-06    .20445E-04
  12  Prefactor     .10000E-03    24.065       -.17171E-04** at limit **
  13  Prefactor     .10000E-03    7.3236       -.45854E-06** at limit **
  14  Prefactor     41.088        49.311       -.22309E-05   -.29870E-06
  15  norm          .10000E-03    8.7576       -.10006E-06** at limit **
  16  Prefactor     27.240        71.079       -.77211E-05   -.35650E-06
  17  norm          .13056        1.9301       -.49052E-06    .18525E-04
  18  Prefactor     .10000E-03    6.1869       -.18591E-06** at limit **
  19  norm          4.6166        5.0785        .15603E-08   -.20728E-03
  20  Prefactor     .10001E-03    217.45       -.13684E-04** at limit **
  21  norm          .10000E-03    1.8212       -.29902E-06** at limit **
  22  Prefactor     47.383        74.798       -.22695E-04   -.97926E-07
  23  norm          .10000E-03    1.0021        .35206E-06** at limit **
  24  norm          7.7902        9.2541        .18772E-05   -.23590E-04
  25  Prefactor     9.7668        15.060        .48026E-06   -.16420E-04
  26  Normalizat    1.0700        .36570        .46795E-05    .36908E-04
  27  Prefactor     1.0057        .11678        .23629E-06    .11145E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 26.7449
  norm       = 6.9692
  Prefactor  = 0.0001
  norm       = 2.17812
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.541041
  Prefactor  = 32.9649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.0882
  norm       = 0.0001
  Prefactor  = 27.2398
  norm       = 0.130557
  Prefactor  = 0.0001
  norm       = 4.61664
  Prefactor  = 0.000100012
  norm       = 0.0001
  Prefactor  = 47.3833
  norm       = 0.0001
  norm       = 7.79021
  Prefactor  = 9.76677
  Normalizat = 1.07001
  Prefactor  = 1.00571
 **********
 **   18 **HESSE 
 **********

 FCN=   4153.595     FROM HESSE     STATUS=OK           488 CALLS     3831 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.745        24.809        .77464E-04   -1.4673    
   3  norm          6.9692        19.902        .75979E-03   -1.5180    
   4  Prefactor     .10000E-03    26.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1781        5.0313        .21221E-03   -1.5413    
   6  Prefactor     .10000E-03    87.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    10.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    16.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .74502        .94435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .54104        1.8502        .15832E-03   -1.5561    
  11  Prefactor     32.965        38.325        .69788E-04   -1.4559    
  12  Prefactor     .10000E-03    23.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.4299        .17031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.088        49.427        .62533E-04   -1.4425    
  15  norm          .10000E-03    8.9128        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.240        71.120        .76749E-04   -1.4664    
  17  norm          .13056        10.531        .17126E-02   -1.5636    
  18  Prefactor     .10000E-03    6.1933        .15654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.6166        5.0715        .14552E-03   -1.5278    
  20  Prefactor     .10001E-03    217.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.8328        .84913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     47.383        74.189        .58236E-04   -1.4330    
  23  norm          .10000E-03    1.0299        .12505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.7902        9.2073        .14368E-03   -1.5150    
  25  Prefactor     9.7668        15.041        .12820E-03   -1.5083    
  26  Normalizat    1.0700        .40402        .45421E-03   -.90721    
  27  Prefactor     1.0057        .13142        .15416E-03   -.92539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82596e-09
Minuit parameter uncertainties:
  1  3.30086e-05
  2  24.8189
  3  19.9208
  4  4.91884e-06
  5  5.03224
  6  0.000175416
  7  1.14322e-05
  8  8.09395e-07
  9  2.38675e-06
  10  1.8504
  11  38.3535
  12  1.76085e-05
  13  8.25691e-06
  14  49.4766
  15  1.69793e-05
  16  71.3425
  17  2.34464
  18  1.74021e-05
  19  5.07193
  20  0.0032605
  21  2.32372e-06
  22  74.3339
  23  3.91006e-05
  24  9.20899
  25  15.0472
  26  0.405194
  27  0.131457
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  3.296e+01  3.835e+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:  1.006e+00  1.315e-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:  1.070e+00  4.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/458966/likelihoodResults_631756801_632016001_4FGL_J0427.3+0504_daily_bin1514.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) = 4153.47895289
delta logL = 0.115702151783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4153.4388848
delta logL = 0.155770247654

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.262       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5257       1.0000          .0000       10.000    
     3 'Normalizat'    1.0427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0119       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=   4153.439     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      257 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.210        44.012        .84892E-04    .12977E-03
   2  Index         3.5273        1.6209        .91652E-02    .34139E-04
   3  Normalizat    1.0423        .39467        .45930E-03    .23807E-03
   4  Prefactor     1.0121        .12939        .15371E-03    .44452E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.2096
  Index      = 3.52729
  Normalizat = 1.04227
  Prefactor  = 1.01209
 **********
 **   18 **HESSE 
 **********

 FCN=   4153.439     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.210        38.019        .33957E-05   -1.4765    
   2  Index         3.5273        1.4061        .36661E-03   -.29898    
   3  Normalizat    1.0423        .39497        .18372E-04   -.91628    
   4  Prefactor     1.0121        .12933        .61483E-05   -.92328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.31517e-10
Minuit parameter uncertainties:
  1  38.0601
  2  1.42727
  3  0.396088
  4  0.129372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458966': 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) = 4153.43888285
delta logL = 0.155772193471

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  2.221e+01  3.806e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  3.527e+00  1.427e+00  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.012e+00  1.294e-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:  1.042e+00  3.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 66.829 5.080
Photon Index (Free Index): 3.53 +/- 1.43
Photon Flux (Free Index): 1.32e-07 +/- 1.36e-07
Energy Flux (Free Index): 2.18e-05 +/- 2.32e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/458966/cmap_HighResolution_631756801_632016001_4FGL_J0427.3+0504_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-02', comment='SUCCESS', energy_flux2='2.18e-05', dlogl='1.56e-01', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-08-20 16:18:43.318835', photon_index_error2='1.43', photon_index2='3.53', ts='0.94', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='3.60e-07', energy_flux_error2='2.32e-05', EG='1.07', time_epoch_completed='1629501523.32', return_code='0', job_id='458966', GAL2='1.01', EG2='1.04', return_code2='0', photon_flux_error2='1.36e-07', ts2='1.28', photon_index='2.86' WHERE bin_id='1514' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:18:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 458966: <4FGL_J0427.3+0504_daily_bin1514> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1514> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 16:05:20 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:05:21 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:21 2021
Terminated at Fri Aug 20 16:18:44 2021
Results reported at Fri Aug 20 16:18:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1514 66.8294 5.08 631756801 632016001 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 :                                   611.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             226.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

