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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1195
RA = 66.8294, Dec = 5.08
tmin = 549072001, tmax = 549331201
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='455113', job_status='RUN', time_executed='2021-08-20 15:58:10.128077', time_epoch_executed='1629500290.13' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455113

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455113/ft1_4FGL_J0427.3+0504_daily_bin1195.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455113/ft2_4FGL_J0427.3+0504_daily_bin1195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455113/ft1_4FGL_J0427.3+0504_daily_bin1195.fits outfile=/scratch/kocevski/455113/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1195.fits ra=66.8294 dec=5.08 rad=12.0 tmin=549072001.0 tmax=549331201.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.76
user 2.70
sys 9.02

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455113/ft1_filtered_4FGL_J0427.3+0504_daily_bin1195.fits" evtable="EVENTS" scfile=/scratch/kocevski/455113/ft2_4FGL_J0427.3+0504_daily_bin1195.fits sctable="SC_DATA" outfile=/scratch/kocevski/455113/ltcube_549072001_549331201_4FGL_J0427.3+0504_daily_bin1195.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/455113/ft2_4FGL_J0427.3+0504_daily_bin1195.fits
.....................!
real 22.39
user 12.06
sys 10.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455113/ft1_filtered_4FGL_J0427.3+0504_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/455113/ft2_4FGL_J0427.3+0504_daily_bin1195.fits sctable="SC_DATA" expcube=/scratch/kocevski/455113/ltcube_549072001_549331201_4FGL_J0427.3+0504_daily_bin1195.fits outfile=/scratch/kocevski/455113/expmap_549072001_549331201_4FGL_J0427.3+0504_daily_bin1195.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/455113/ltcube_549072001_549331201_4FGL_J0427.3+0504_daily_bin1195.fits
.....................!
real 203.67
user 187.45
sys 15.79

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/455113/ft1_filtered_4FGL_J0427.3+0504_daily_bin1195.fits scfile=/scratch/kocevski/455113/ft2_4FGL_J0427.3+0504_daily_bin1195.fits outfile=/scratch/kocevski/455113/cmap_549072001_549331201_4FGL_J0427.3+0504_daily_bin1195.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.22
user 0.37
sys 8.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455113/ft1_filtered_4FGL_J0427.3+0504_daily_bin1195.fits scfile=/scratch/kocevski/455113/ft2_4FGL_J0427.3+0504_daily_bin1195.fits outfile=/scratch/kocevski/455113/cmap_HighResolution_549072001_549331201_4FGL_J0427.3+0504_daily_bin1195.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.19
user 0.39
sys 8.77

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.5071       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.4731       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.176       1.0000         .10000E-03   10000.    
     7 'norm      '    .11620E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.151       1.0000         .10000E-03   10000.    
    14 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .37380E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.319       1.0000         .10000E-03   10000.    
    19 'norm      '    9999.7       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    18.507       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10945E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .39896E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90913       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=   992.4165     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     3397 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10318E-03    53.772        .18805E-05** at limit **
   2  Prefactor     .10126E-03    26.082       -.31676E-05** at limit **
   3  norm          6.5767        12.377        .13204E-06   -.26768E-02
   4  Prefactor     .10042E-03    29.532        .27079E-05** at limit **
   5  norm          3.4754        2.0338       -.21480E-07    .46800E-04
   6  Prefactor     15.196        4.7235        .64244E-07   -.26189E-02
   7  norm          .10126E-03    17.666       -.22205E-05** at limit **
   8  norm          .10035E-03    17.187       -.48262E-06** at limit **
   9  norm          .10000E-03    2.7934        .84794E-06** at limit **
  10  Prefactor     .10000E-03    1.9670       -.13131E-05** at limit **
  11  Prefactor     .10202E-03    33.028       -.25079E-05** at limit **
  12  Prefactor     .10345E-03    56.792        .11382E-05** at limit **
  13  Prefactor     44.166        2.5928        .13759E-07   -.12567E-02
  14  Prefactor    10000.0        2.5894        .16389E-06   -.52386E-03
  15  norm          .10000E-03    19.393        .80789E-06** at limit **
  16  Prefactor     .22241E-03    1.6136       -.10464E-06** at limit **
  17  norm          .10000E-03    3.5742       -.13772E-07** at limit **
  18  Prefactor     44.319        1.0145        .23976E-08   -.22080E-03
  19  norm          9999.8        1.8867        .13944E-06   -.35885E-03
  20  Prefactor     .12483E-03    93.465        .13659E-05** at limit **
  21  norm          18.508        8.0157        .22820E-07    .10862E-02
  22  Prefactor     .11376E-03    155.92        .29730E-06** at limit **
  23  norm          .10000E-03    4.4910        .11627E-05** at limit **
  24  norm          .10000E-03    16.273        .16686E-05** at limit **
  25  Prefactor     .10105E-03    13.735        .78841E-06** at limit **
  26  Normalizat    .40548E-01    5.9545        .19848E-04    .68793E-05
  27  Prefactor     .90920        .22444       -.76272E-06    .48272E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103177
  Prefactor  = 0.000101259
  norm       = 6.57671
  Prefactor  = 0.00010042
  norm       = 3.47541
  Prefactor  = 15.1958
  norm       = 0.000101257
  norm       = 0.000100353
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102018
  Prefactor  = 0.000103447
  Prefactor  = 44.1662
  Prefactor  = 9999.99
  norm       = 0.000100001
  Prefactor  = 0.000222413
  norm       = 0.0001
  Prefactor  = 44.319
  norm       = 9999.75
  Prefactor  = 0.000124826
  norm       = 18.5085
  Prefactor  = 0.000113758
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101053
  Normalizat = 0.0405477
  Prefactor  = 0.9092
 **********
 **   18 **HESSE 
 **********

 FCN=   992.4165     FROM HESSE     STATUS=NOT POSDEF   534 CALLS     3931 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10318E-03    119.45        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10126E-03    49.741        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.5767        162.42        .39332E-02   -1.5195    
   4  Prefactor     .10042E-03    29.465        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4754        33.775        .54246E-02   -1.5335    
   6  Prefactor     15.196        731.50        .25703E-02   -1.4928    
   7  norm          .10126E-03    43.437        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10035E-03    35.244        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.4716        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.7855        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10202E-03    59.588        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10345E-03    96.762        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     44.166        154.09        .15084E-02   -1.4378    
  14  Prefactor    10000.0        7869.4        .91799E-02    1.5691    
  15  norm          .10000E-03    17.587        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .22241E-03    1863.6        .10647E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.3251        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.319        120.00        .15056E-02   -1.4376    
  19  norm          9999.8        6704.0        .10226E-01    1.5608    
  20  Prefactor     .12483E-03    195.61        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          18.508        17.053        .23275E-02   -1.4847    
  22  Prefactor     .11376E-03    290.12        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.9395        .27945E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    14.747        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10105E-03    32.642        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .40548E-01    6.6568        .32589       -1.4601    
  27  Prefactor     .90920        1.2976        .32135E-01   -.95820    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.31619e-06
Minuit parameter uncertainties:
  1  0.0390379
  2  0.0158432
  3  65.5668
  4  0.00703514
  5  21.6844
  6  213.691
  7  0.0147904
  8  0.00706051
  9  2.82677e-05
  10  3.73486e-05
  11  0.0219531
  12  0.0365839
  13  155.514
  14  14.6192
  15  0.000191624
  16  0.987725
  17  6.7634e-07
  18  120.664
  19  251.035
  20  0.139832
  21  17.057
  22  0.126975
  23  4.23533e-05
  24  0.000106138
  25  0.0117329
  26  2.84491
  27  1.34622
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 992.41645642

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.020e-04  2.195e-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.092e-01  1.346e+00  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:  4.055e-02  2.845e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/455113/likelihoodResults_549072001_549331201_4FGL_J0427.3+0504_daily_bin1195.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) = 992.416528801
delta logL = -7.23807096392e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 992.416457452
delta logL = -1.03202137325e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.8141       1.0000          .0000       10.000    
     3 'Normalizat'    .40548E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90920       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   992.4165     FROM MIGRAD    STATUS=FAILED       113 CALLS      311 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    2023.3        .16360E-01** at limit **
   2  Index         1.8051        5.4870        .50000        .90685E-07
   3  Normalizat    .40537E-01    .57999E-01    .11242E-01    .93727E-04
   4  Prefactor     .90921        .23210E-01    .14202E-03    .17216E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   992.4165     FROM SIMPLEX   STATUS=UNCHANGED    147 CALLS      458 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    2023.3        .16164E-02** at limit **
   2  Index         1.8051        5.4870        .13957E-04    .90685E-07
   3  Normalizat    .40537E-01    .57999E-01    .29489E-06    .93727E-04
   4  Prefactor     .90921        .23210E-01    .67671E-08    .17216E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   992.4165     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      491 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8529.4        .32721E-02** at limit **
   2  Index         1.7947        7.7856        .50000        .33137E-07
   3  Normalizat    .40537E-01    .14242        .44968E-03    .91019E-04
   4  Prefactor     .90921        .52830E-01    .28405E-04    .17168E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.79473
  Normalizat = 0.0405369
  Prefactor  = 0.909214
 **********
 **   18 **HESSE 
 **********

 FCN=   992.4165     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      520 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9747.9        .65441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7947        9.0405        .50000       -.69587    
   3  Normalizat    .40537E-01    1.1166        .89936E-04   -1.4602    
   4  Prefactor     .90921        .15043        .56810E-05   -.95820    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.24421e-09
Minuit parameter uncertainties:
  1  0.00736007
  2  4885.09
  3  0.377193
  4  0.150496
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455113': 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) = 992.416455988
delta logL = 4.32675847151e-07

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  7.360e-03  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  1.795e+00  4.885e+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:  9.092e-01  1.505e-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:  4.054e-02  3.772e-01  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/455113/cmap_HighResolution_549072001_549331201_4FGL_J0427.3+0504_daily_bin1195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.49e-02', job_status='DONE', photon_flux_upper_limit='9.43e-07', time_completed='2021-08-20 16:06:34.302835', job_id='455113', GAL2='0.91', fit_tolerance='1e-08', EG2='0.04', EG='0.04', time_epoch_completed='1629500794.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='102', GAL='0.91', dlogl='4.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1195' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:06:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 455113: <4FGL_J0427.3+0504_daily_bin1195> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1195 66.8294 5.08 549072001 549331201 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 :                                   642.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             231.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            672 sec.

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

