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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1496
RA = 66.8294, Dec = 5.08
tmin = 627091201, tmax = 627350401
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='458936', job_status='RUN', time_executed='2021-08-20 16:09:33.260920', time_epoch_executed='1629500973.26' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1496'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458936

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458936/ft1_4FGL_J0427.3+0504_daily_bin1496.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458936/ft2_4FGL_J0427.3+0504_daily_bin1496.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458936/ft1_4FGL_J0427.3+0504_daily_bin1496.fits outfile=/scratch/kocevski/458936/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1496.fits ra=66.8294 dec=5.08 rad=12.0 tmin=627091201.0 tmax=627350401.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 3.53
user 2.70
sys 0.81

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/458936/ft2_4FGL_J0427.3+0504_daily_bin1496.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/458936/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1496.fits evtable="EVENTS" outfile="/scratch/kocevski/458936/ft1_filtered_4FGL_J0427.3+0504_daily_bin1496.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 1.09
user 0.33
sys 0.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/458936/ft1_filtered_4FGL_J0427.3+0504_daily_bin1496.fits" evtable="EVENTS" scfile=/scratch/kocevski/458936/ft2_4FGL_J0427.3+0504_daily_bin1496.fits sctable="SC_DATA" outfile=/scratch/kocevski/458936/ltcube_627091201_627350401_4FGL_J0427.3+0504_daily_bin1496.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/458936/ft2_4FGL_J0427.3+0504_daily_bin1496.fits
.....................!
real 13.75
user 12.71
sys 1.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458936/ft1_filtered_4FGL_J0427.3+0504_daily_bin1496.fits evtable="EVENTS" scfile=/scratch/kocevski/458936/ft2_4FGL_J0427.3+0504_daily_bin1496.fits sctable="SC_DATA" expcube=/scratch/kocevski/458936/ltcube_627091201_627350401_4FGL_J0427.3+0504_daily_bin1496.fits outfile=/scratch/kocevski/458936/expmap_627091201_627350401_4FGL_J0427.3+0504_daily_bin1496.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/458936/ltcube_627091201_627350401_4FGL_J0427.3+0504_daily_bin1496.fits
.....................!
real 192.08
user 186.02
sys 5.56

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/458936/ft1_filtered_4FGL_J0427.3+0504_daily_bin1496.fits scfile=/scratch/kocevski/458936/ft2_4FGL_J0427.3+0504_daily_bin1496.fits outfile=/scratch/kocevski/458936/cmap_627091201_627350401_4FGL_J0427.3+0504_daily_bin1496.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 1.12
user 0.37
sys 0.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458936/ft1_filtered_4FGL_J0427.3+0504_daily_bin1496.fits scfile=/scratch/kocevski/458936/ft2_4FGL_J0427.3+0504_daily_bin1496.fits outfile=/scratch/kocevski/458936/cmap_HighResolution_627091201_627350401_4FGL_J0427.3+0504_daily_bin1496.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 1.16
user 0.39
sys 0.74

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14841E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .46100E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11070E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    195.32       1.0000         .10000E-03   10000.    
     7 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10242E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.9862       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10806E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    131.01       1.0000         .10000E-03   10000.    
    15 'norm      '    17.905       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19153E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10686E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    76.222       1.0000         .10000E-03   10000.    
    21 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11351E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .44352       1.0000         .10000E-03   10000.    
    24 'norm      '    16.253       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1903       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=   780.1626     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3791 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10030E-03    7568.9       -.10868E-04** at limit **
   2  Prefactor     .10000E-03    436.27        .14197E-06** at limit **
   3  norm          .10000E-03    48.896        .94611E-07** at limit **
   4  Prefactor     .10000E-03    156.25        .12242E-06** at limit **
   5  norm          .10000E-03    18.710        .28918E-06** at limit **
   6  Prefactor     195.33        518.97       -.10169E-05    .31230E-05
   7  norm          .10000E-03    41.779       -.11496E-07** at limit **
   8  norm          .10000E-03    137.04       -.50227E-06** at limit **
   9  norm          7.9825        7.3910       -.84246E-06    .27812E-03
  10  Prefactor     .10000E-03    7.1420        .64389E-07** at limit **
  11  Prefactor     .10000E-03    255.12        .15471E-06** at limit **
  12  Prefactor     .10002E-03    718.03       -.24171E-05** at limit **
  13  Prefactor     .10000E-03    13.126        .36704E-07** at limit **
  14  Prefactor     131.07        170.42       -.32252E-06    .14158E-04
  15  norm          17.903        22.967       -.31727E-06    .48331E-04
  16  Prefactor     .10000E-03    515.26       -.22407E-06** at limit **
  17  norm          .10000E-03    5.1298       -.65236E-07** at limit **
  18  Prefactor     .10000E-03    19.983       -.77592E-06** at limit **
  19  norm          .10643E-03    14.661       -.79671E-06** at limit **
  20  Prefactor     75.993        125.98        .12955E-04   -.23754E-04
  21  norm          .10000E-03    3.0085       -.13811E-07** at limit **
  22  Prefactor     .10002E-03    215.05       -.10734E-04** at limit **
  23  norm          .44583        2.6240       -.45099E-05    .73519E-04
  24  norm          16.245        15.296        .32520E-05    .14865E-03
  25  Prefactor     .10000E-03    9.7733       -.93359E-06** at limit **
  26  Normalizat    .10000E-01    .20799       -.97494E-05** at limit **
  27  Prefactor     1.1903        .21272        .53578E-05    .61800E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100297
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 195.328
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 7.98253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 131.072
  norm       = 17.9033
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000106428
  Prefactor  = 75.9932
  norm       = 0.0001
  Prefactor  = 0.000100022
  norm       = 0.445829
  norm       = 16.2446
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.19034
 **********
 **   18 **HESSE 
 **********

 FCN=   780.1626     FROM HESSE     STATUS=OK           474 CALLS     4265 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10030E-03    7553.2        .18194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    436.26        .21197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    48.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    156.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    18.738        .11797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     195.33        519.26        .14452E-03   -1.2904    
   7  norm          .10000E-03    42.032        .17647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    136.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.9825        7.3629        .70024E-04   -1.5143    
  10  Prefactor     .10000E-03    7.1487        .72886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    255.10        .20761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    715.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.127        .98872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     131.07        170.64        .17589E-03   -1.3413    
  15  norm          17.903        22.984        .94652E-04   -1.4861    
  16  Prefactor     .10000E-03    515.56        .20267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.1407        .61791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.987        .12200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10643E-03    358.39        .20150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     75.993        126.86        .22997E-03   -1.3962    
  21  norm          .10000E-03    3.0216        .47314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    214.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .44583        2.5526        .72472E-04   -1.5574    
  24  norm          16.245        15.128        .87869E-04   -1.4902    
  25  Prefactor     .10000E-03    9.8411        .85310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .21602        .78494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.1903        .21108        .15867E-03   -.86629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71949e-08
Minuit parameter uncertainties:
  1  0.086758
  2  0.000194186
  3  3.13856e-05
  4  0.000101603
  5  3.99913e-06
  6  532.29
  7  0.000130171
  8  0.00060973
  9  7.36369
  10  4.30106e-06
  11  0.000310317
  12  0.00738024
  13  2.95619e-06
  14  171.286
  15  22.9949
  16  0.000853515
  17  5.94754e-06
  18  3.64245e-05
  19  0.0965787
  20  127.318
  21  1.12554e-05
  22  0.00435675
  23  2.13348
  24  15.1311
  25  2.54598e-06
  26  2.65168e-06
  27  0.211235
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  3.103e-04  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.190e+00  2.112e-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.652e-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: 2.53e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.01e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/458936/likelihoodResults_627091201_627350401_4FGL_J0427.3+0504_daily_bin1496.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) = 780.162656379
delta logL = -1.87375380847e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 780.162637895
delta logL = -2.53086454904e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10773E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5385       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1903       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=   780.1626     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      282 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12590E-03    386.97        .18142E-01** at limit **
   2  Index         3.1371        8.4312        .50000        .17094E-05
   3  Normalizat    .10000E-01    .89529E-03    .78497E-02** at limit **
   4  Prefactor     1.1903        .12080E-01    .15867E-03    .12790E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000125904
  Index      = 3.13712
  Normalizat = 0.01
  Prefactor  = 1.19034
 **********
 **   18 **HESSE 
 **********

 FCN=   780.1626     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12590E-03    1738.7        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1371        5.4368        .50000       -.38178    
   3  Normalizat    .10000E-01    .42865E-02    .15699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1903        .26433E-01    .31734E-04   -.86629    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29734e-08
Minuit parameter uncertainties:
  1  0.437822
  2  2828.86
  3  4.99355e-08
  4  0.0264335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458936': 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) = 780.162637776
delta logL = -1.34908077598e-07

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.259e-04  4.378e-01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  3.137e+00  2.829e+03  0.000e+00  1.000e+01 (-1.000e+00)
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  1.190e+00  2.643e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  1.000e-02  4.994e-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/458936/cmap_HighResolution_627091201_627350401_4FGL_J0427.3+0504_daily_bin1496.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.01e-01', job_status='DONE', photon_flux_upper_limit='2.53e-06', time_completed='2021-08-20 16:15:42.768662', job_id='458936', GAL2='1.19', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629501342.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='-1.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1496' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:15:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 458936: <4FGL_J0427.3+0504_daily_bin1496> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1496 66.8294 5.08 627091201 627350401 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 :                                   376.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             169.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   623 sec.
    Turnaround time :                            625 sec.

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

