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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1389
RA = 66.8294, Dec = 5.08
tmin = 599356801, tmax = 599616001
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='456863', job_status='RUN', time_executed='2021-08-20 16:04:59.244461', time_epoch_executed='1629500699.24' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456863

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456863/ft1_4FGL_J0427.3+0504_daily_bin1389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456863/ft2_4FGL_J0427.3+0504_daily_bin1389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456863/ft1_4FGL_J0427.3+0504_daily_bin1389.fits outfile=/scratch/kocevski/456863/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1389.fits ra=66.8294 dec=5.08 rad=12.0 tmin=599356801.0 tmax=599616001.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 6.37
user 2.48
sys 3.84

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456863/ft1_filtered_4FGL_J0427.3+0504_daily_bin1389.fits" evtable="EVENTS" scfile=/scratch/kocevski/456863/ft2_4FGL_J0427.3+0504_daily_bin1389.fits sctable="SC_DATA" outfile=/scratch/kocevski/456863/ltcube_599356801_599616001_4FGL_J0427.3+0504_daily_bin1389.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/456863/ft2_4FGL_J0427.3+0504_daily_bin1389.fits
.....................!
real 17.03
user 12.32
sys 4.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456863/ft1_filtered_4FGL_J0427.3+0504_daily_bin1389.fits evtable="EVENTS" scfile=/scratch/kocevski/456863/ft2_4FGL_J0427.3+0504_daily_bin1389.fits sctable="SC_DATA" expcube=/scratch/kocevski/456863/ltcube_599356801_599616001_4FGL_J0427.3+0504_daily_bin1389.fits outfile=/scratch/kocevski/456863/expmap_599356801_599616001_4FGL_J0427.3+0504_daily_bin1389.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/456863/ltcube_599356801_599616001_4FGL_J0427.3+0504_daily_bin1389.fits
.....................!
real 195.92
user 186.30
sys 9.12

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/456863/ft1_filtered_4FGL_J0427.3+0504_daily_bin1389.fits scfile=/scratch/kocevski/456863/ft2_4FGL_J0427.3+0504_daily_bin1389.fits outfile=/scratch/kocevski/456863/cmap_599356801_599616001_4FGL_J0427.3+0504_daily_bin1389.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 4.12
user 0.38
sys 3.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456863/ft1_filtered_4FGL_J0427.3+0504_daily_bin1389.fits scfile=/scratch/kocevski/456863/ft2_4FGL_J0427.3+0504_daily_bin1389.fits outfile=/scratch/kocevski/456863/cmap_HighResolution_599356801_599616001_4FGL_J0427.3+0504_daily_bin1389.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 4.16
user 0.36
sys 3.77

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    289.03       1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.044       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    96.818       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34196E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .11143E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9373       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11370E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.357       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9261       1.0000         .10000E-03   10000.    
    16 'Prefactor '    188.34       1.0000         .10000E-03   10000.    
    17 'norm      '    4.5843       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.1026       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3200       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.9347       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .81423       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83695       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=   2781.841     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3408 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     289.01        122.69        .12322E-05    .14807E-04
   2  Prefactor     43.031        40.302        .32368E-06   -.54805E-04
   3  norm          .10000E-03    18.322       -.86385E-07** at limit **
   4  Prefactor     96.789        84.666       -.43304E-07   -.13476E-03
   5  norm          .10000E-03    2.7687        .41142E-07** at limit **
   6  Prefactor     .10000E-03    675.94        .19233E-04** at limit **
   7  norm          .10000E-03    13.259       -.13031E-06** at limit **
   8  norm          .10000E-03    315.01        .10997E-04** at limit **
   9  norm          .10000E-03    1.1206        .40235E-06** at limit **
  10  Prefactor     .10000E-03    4.9648        .23154E-05** at limit **
  11  Prefactor     7.9330        90.575       -.57719E-06   -.49124E-04
  12  Prefactor     .10000E-03    57.616        .45619E-06** at limit **
  13  Prefactor     .10014E-03    62.734        .75832E-05** at limit **
  14  Prefactor     33.349        46.018        .34659E-06    .59048E-06
  15  norm          2.9262        6.5136        .42558E-07   -.13527E-03
  16  Prefactor     188.28        165.06        .57239E-05    .43325E-04
  17  norm          4.5853        6.5864       -.39486E-07   -.10054E-03
  18  Prefactor     .10000E-03    7.9595        .18511E-06** at limit **
  19  norm          8.1008        8.7255       -.40478E-06   -.11246E-03
  20  Prefactor     .10000E-03    51.595        .94569E-07** at limit **
  21  norm          1.3193        7.3874        .25687E-05    .28419E-03
  22  Prefactor     .10000E-03    119.46        .20026E-05** at limit **
  23  norm          .10000E-03    1.1372       -.36023E-07** at limit **
  24  norm          9.9340        15.945        .53165E-06    .15138E-04
  25  Prefactor     .10000E-03    115.22        .92224E-06** at limit **
  26  Normalizat    .81423        .46346       -.72384E-08   -.10337E-03
  27  Prefactor     .83701        .13132       -.16001E-06   -.16296E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 289.007
  Prefactor  = 43.0306
  norm       = 0.0001
  Prefactor  = 96.789
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.93299
  Prefactor  = 0.0001
  Prefactor  = 0.000100141
  Prefactor  = 33.3488
  norm       = 2.92615
  Prefactor  = 188.28
  norm       = 4.58534
  Prefactor  = 0.0001
  norm       = 8.10083
  Prefactor  = 0.0001
  norm       = 1.31934
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.934
  Prefactor  = 0.0001
  Normalizat = 0.814226
  Prefactor  = 0.837007
 **********
 **   18 **HESSE 
 **********

 FCN=   2781.841     FROM HESSE     STATUS=OK           482 CALLS     3890 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     289.01        122.81        .11938E-03   -1.2291    
   2  Prefactor     43.031        40.215        .61104E-04   -1.4395    
   3  norm          .10000E-03    18.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     96.789        84.810        .40851E-04   -1.3737    
   5  norm          .10000E-03    2.7724        .85702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    679.91        .42667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    13.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    317.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.1515        .10856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0965        .22693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.9330        88.368        .14232E-03   -1.5145    
  12  Prefactor     .10000E-03    57.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10014E-03    133.62        .44828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     33.349        46.046        .69382E-04   -1.4552    
  15  norm          2.9262        6.4162        .16864E-03   -1.5366    
  16  Prefactor     188.28        167.24        .14713E-03   -1.2955    
  17  norm          4.5853        6.6199        .14882E-03   -1.5280    
  18  Prefactor     .10000E-03    7.9614        .14532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.1008        8.7862        .14085E-03   -1.5139    
  20  Prefactor     .10000E-03    51.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3193        10.336        .15253E-02   -1.5478    
  22  Prefactor     .10000E-03    119.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.1431        .54837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.9340        15.914        .12713E-03   -1.5077    
  25  Prefactor     .10000E-03    118.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .81423        .48067        .49080E-03   -.99543    
  27  Prefactor     .83701        .14279        .15194E-03   -.98378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80703e-09
Minuit parameter uncertainties:
  1  122.923
  2  40.2401
  3  6.79677e-06
  4  84.9166
  5  2.69443e-06
  6  0.00101727
  7  1.6014e-05
  8  0.000388791
  9  3.39838e-06
  10  5.62019e-06
  11  53.0529
  12  4.1816e-05
  13  0.00869682
  14  46.0948
  15  6.41766
  16  167.665
  17  6.62093
  18  6.64082e-06
  19  8.78759
  20  3.90944e-06
  21  7.3871
  22  0.000329758
  23  2.67019e-06
  24  15.9209
  25  0.000222964
  26  0.483208
  27  0.142853
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  7.933e+00  5.305e+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:  8.370e-01  1.429e-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:  8.142e-01  4.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/456863/likelihoodResults_599356801_599616001_4FGL_J0427.3+0504_daily_bin1389.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) = 2781.77885507
delta logL = 0.0618864421685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2781.77872283
delta logL = 0.0620186890692

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.435       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1860       1.0000          .0000       10.000    
     3 'Normalizat'    .82042       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83302       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=   2781.779     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      244 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.704        58.730        .24699E-02    .10040E-03
   2  Index         2.1871        1.3145        .24818        .42935E-04
   3  Normalizat    .82040        .39538        .11028       -.26575E-04
   4  Prefactor     .83294        .12566        .44145E-01    .35231E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7044
  Index      = 2.18709
  Normalizat = 0.820397
  Prefactor  = 0.832938
 **********
 **   18 **HESSE 
 **********

 FCN=   2781.779     FROM HESSE     STATUS=OK            29 CALLS      273 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.704        47.937        .98794E-04   -1.4890    
   2  Index         2.1871        1.3874        .13296E-01   -.59751    
   3  Normalizat    .82040        .42618        .48907E-03   -.99317    
   4  Prefactor     .83294        .13551        .15222E-03   -.98525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46038e-10
Minuit parameter uncertainties:
  1  48.0476
  2  1.41485
  3  0.427929
  4  0.135564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456863': 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) = 2781.7787074
delta logL = 0.0620341152535

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.670e+01  4.805e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.187e+00  1.415e+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:  8.329e-01  1.356e-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:  8.204e-01  4.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/456863/cmap_HighResolution_599356801_599616001_4FGL_J0427.3+0504_daily_bin1389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.30e-02', job_status='DONE', photon_flux_upper_limit='4.15e-07', time_completed='2021-08-20 16:13:50.838779', job_id='456863', GAL2='0.83', fit_tolerance='1e-08', EG2='0.82', EG='0.81', time_epoch_completed='1629501230.84', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='6.20e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1389' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:13:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 456863: <4FGL_J0427.3+0504_daily_bin1389> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1389 66.8294 5.08 599356801 599616001 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 :                                   586.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            792 sec.

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

