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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1442
RA = 66.8294, Dec = 5.08
tmin = 613094401, tmax = 613353601
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='456950', job_status='RUN', time_executed='2021-08-20 16:05:15.109867', time_epoch_executed='1629500715.11' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1442'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456950

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456950/ft1_4FGL_J0427.3+0504_daily_bin1442.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456950/ft2_4FGL_J0427.3+0504_daily_bin1442.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456950/ft1_4FGL_J0427.3+0504_daily_bin1442.fits outfile=/scratch/kocevski/456950/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1442.fits ra=66.8294 dec=5.08 rad=12.0 tmin=613094401.0 tmax=613353601.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 11.68
user 2.75
sys 8.78

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456950/ft1_filtered_4FGL_J0427.3+0504_daily_bin1442.fits" evtable="EVENTS" scfile=/scratch/kocevski/456950/ft2_4FGL_J0427.3+0504_daily_bin1442.fits sctable="SC_DATA" outfile=/scratch/kocevski/456950/ltcube_613094401_613353601_4FGL_J0427.3+0504_daily_bin1442.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/456950/ft2_4FGL_J0427.3+0504_daily_bin1442.fits
.....................!
real 22.60
user 12.53
sys 10.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456950/ft1_filtered_4FGL_J0427.3+0504_daily_bin1442.fits evtable="EVENTS" scfile=/scratch/kocevski/456950/ft2_4FGL_J0427.3+0504_daily_bin1442.fits sctable="SC_DATA" expcube=/scratch/kocevski/456950/ltcube_613094401_613353601_4FGL_J0427.3+0504_daily_bin1442.fits outfile=/scratch/kocevski/456950/expmap_613094401_613353601_4FGL_J0427.3+0504_daily_bin1442.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/456950/ltcube_613094401_613353601_4FGL_J0427.3+0504_daily_bin1442.fits
.....................!
real 200.78
user 185.12
sys 15.20

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/456950/ft1_filtered_4FGL_J0427.3+0504_daily_bin1442.fits scfile=/scratch/kocevski/456950/ft2_4FGL_J0427.3+0504_daily_bin1442.fits outfile=/scratch/kocevski/456950/cmap_613094401_613353601_4FGL_J0427.3+0504_daily_bin1442.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 9.02
user 0.36
sys 8.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456950/ft1_filtered_4FGL_J0427.3+0504_daily_bin1442.fits scfile=/scratch/kocevski/456950/ft2_4FGL_J0427.3+0504_daily_bin1442.fits outfile=/scratch/kocevski/456950/cmap_HighResolution_613094401_613353601_4FGL_J0427.3+0504_daily_bin1442.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 9.03
user 0.38
sys 8.47

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    138.79       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.463       1.0000         .10000E-03   10000.    
     7 'norm      '    10.650       1.0000         .10000E-03   10000.    
     8 'norm      '    14.650       1.0000         .10000E-03   10000.    
     9 'norm      '    3.8650       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3804       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    65.897       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    55.376       1.0000         .10000E-03   10000.    
    19 'norm      '    14.905       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10643E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98615       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1776.722     FROM MIGRAD    STATUS=CONVERGED    101 CALLS     2857 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10024E-03    21.000       -.71926E-05** at limit **
   2  Prefactor     138.79        1.0959       -.34219E-07    .90574E-03
   3  norm          .10000E-03    9.6777        .50001E-05** at limit **
   4  Prefactor     .10129E-03    29.591       -.90483E-05** at limit **
   5  norm          .10000E-03    2.8571       -.25127E-05** at limit **
   6  Prefactor     36.441        3.3851       -.48794E-06    .54113E-02
   7  norm          10.652        1.0960        .11618E-06    .96379E-04
   8  norm          14.647        1.0649       -.13279E-06    .31235E-03
   9  norm          3.8648        3.0369        .28714E-05    .10396E-03
  10  Prefactor     3.3822        5.2002       -.39285E-05    .83864E-05
  11  Prefactor     .10089E-03    14.809       -.13476E-05** at limit **
  12  Prefactor     .10031E-03    48.924        .49562E-05** at limit **
  13  Prefactor     65.877        1.8501       -.92035E-07   -.10416E-02
  14  Prefactor     .10083E-03    14.454       -.15617E-05** at limit **
  15  norm          .10000E-03    12.119        .13288E-05** at limit **
  16  Prefactor     .13539E-03    78.211       -.99585E-05** at limit **
  17  norm          .10000E-03    3.7241        .23935E-05** at limit **
  18  Prefactor     55.374        1.0866       -.54480E-07    .12202E-02
  19  norm          14.938        4.5014        .99982E-06   -.35171E-02
  20  Prefactor     .29147E-03    81.272       -.14524E-04** at limit **
  21  norm          .10000E-03    3.1667        .26655E-05** at limit **
  22  Prefactor     .11356E-03    80.101       -.11189E-04** at limit **
  23  norm          .10000E-03    2.0742        .56443E-06** at limit **
  24  norm          .10000E-03    20.527       -.24151E-05** at limit **
  25  Prefactor    10000.0        .49242        .81922E-06** at limit **
  26  Normalizat    .10000E-01    1.1442       -.22586E-04** at limit **
  27  Prefactor     .98602        .10766        .89651E-05    .42408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100244
  Prefactor  = 138.79
  norm       = 0.0001
  Prefactor  = 0.000101289
  norm       = 0.0001
  Prefactor  = 36.4412
  norm       = 10.6521
  norm       = 14.6469
  norm       = 3.86475
  Prefactor  = 3.38221
  Prefactor  = 0.000100889
  Prefactor  = 0.000100311
  Prefactor  = 65.8773
  Prefactor  = 0.000100829
  norm       = 0.0001
  Prefactor  = 0.000135392
  norm       = 0.0001
  Prefactor  = 55.374
  norm       = 14.9384
  Prefactor  = 0.000291467
  norm       = 0.0001
  Prefactor  = 0.000113562
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 0.986024
 **********
 **   18 **HESSE 
 **********

 FCN=   1776.722     FROM HESSE     STATUS=OK           534 CALLS     3391 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10024E-03    59.326        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     138.79        76.319        .85478E-03   -1.3346    
   3  norm          .10000E-03    9.6797        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10129E-03    58.066        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.8565        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.441        111.57        .16592E-02   -1.4500    
   7  norm          10.652        21.401        .30693E-02   -1.5055    
   8  norm          14.647        106.61        .26161E-02   -1.4942    
   9  norm          3.8648        3.0613        .51315E-02   -1.5315    
  10  Prefactor     3.3822        5.6723        .55019E-02   -1.5340    
  11  Prefactor     .10089E-03    64.182        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10031E-03    73.562        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     65.877        30.750        .12360E-02   -1.4083    
  14  Prefactor     .10083E-03    63.986        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.088        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .13539E-03    196.89        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6773        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     55.374        81.027        .13476E-02   -1.4218    
  19  norm          14.938        57.358        .25936E-02   -1.4935    
  20  Prefactor     .29147E-03    325.12        .90712E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.1394        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .11356E-03    212.41        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.0747        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    20.530        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor    10000.0        2242.4        .10710E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .53141        .32244       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .98602        .14121        .33046E-01   -.93197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25139e-06
Minuit parameter uncertainties:
  1  0.00762324
  2  76.3735
  3  1.56845e-05
  4  0.0173178
  5  3.80022e-06
  6  112.214
  7  21.4162
  8  79.2316
  9  3.0614
  10  5.6732
  11  0.0151275
  12  0.00957164
  13  30.7573
  14  0.0145836
  15  8.26811e-06
  16  0.167504
  17  4.79614e-06
  18  81.1891
  19  57.571
  20  0.501745
  21  4.90331e-06
  22  0.107729
  23  5.69587e-07
  24  4.08674e-05
  25  1.01544
  26  2.3104e-06
  27  0.141262
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.009e-04  1.513e-02  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.860e-01  1.413e-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.000e-02  2.310e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/456950/likelihoodResults_613094401_613353601_4FGL_J0427.3+0504_daily_bin1442.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) = 1776.72186239
delta logL = -7.80319887781e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1776.72178438
delta logL = -2.38694610744e-08

Fit tolerance = 1e-08

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

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

 FCN=   1776.722     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      252 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    133.35        .90712E-02** at limit **
   2  Index         2.8191        6.2499        .50000       -.19385E-05
   3  Normalizat    .10000E-01    .40589        .32094    ** at limit **
   4  Prefactor     .98602        .13194        .33046E-01    .32140E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.81913
  Normalizat = 0.01
  Prefactor  = 0.986024
 **********
 **   18 **HESSE 
 **********

 FCN=   1776.722     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8191        6.3950        .50000       -.45134    
   3  Normalizat    .10000E-01    .78544        .14151E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .98602        .10583        .14605E-03   -.93197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10728e-12
Minuit parameter uncertainties:
  1  3.1035e-05
  2  4.55103
  3  4.03816e-08
  4  0.105854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456950': 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) = 1776.72178437
delta logL = -1.18409388961e-08

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  3.104e-05  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.819e+00  4.551e+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:  9.860e-01  1.059e-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.000e-02  4.038e-08  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/456950/cmap_HighResolution_613094401_613353601_4FGL_J0427.3+0504_daily_bin1442.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.69e-02', job_status='DONE', photon_flux_upper_limit='7.16e-07', time_completed='2021-08-20 16:14:07.044158', job_id='456950', GAL2='0.99', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629501247.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-1.18e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1442' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:14:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 456950: <4FGL_J0427.3+0504_daily_bin1442> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1442> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 16:00:47 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:00:48 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:00:48 2021
Terminated at Fri Aug 20 16:14:09 2021
Results reported at Fri Aug 20 16:14:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1442 66.8294 5.08 613094401 613353601 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 :                                   665.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             237.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

