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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1370
RA = 66.8294, Dec = 5.08
tmin = 594432001, tmax = 594691201
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='456827', job_status='RUN', time_executed='2021-08-20 16:03:51.703748', time_epoch_executed='1629500631.7' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456827

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456827/ft1_4FGL_J0427.3+0504_daily_bin1370.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456827/ft2_4FGL_J0427.3+0504_daily_bin1370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456827/ft1_4FGL_J0427.3+0504_daily_bin1370.fits outfile=/scratch/kocevski/456827/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1370.fits ra=66.8294 dec=5.08 rad=12.0 tmin=594432001.0 tmax=594691201.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 5.03
user 4.11
sys 0.78

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456827/ft1_filtered_4FGL_J0427.3+0504_daily_bin1370.fits" evtable="EVENTS" scfile=/scratch/kocevski/456827/ft2_4FGL_J0427.3+0504_daily_bin1370.fits sctable="SC_DATA" outfile=/scratch/kocevski/456827/ltcube_594432001_594691201_4FGL_J0427.3+0504_daily_bin1370.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/456827/ft2_4FGL_J0427.3+0504_daily_bin1370.fits
.....................!
real 12.44
user 11.42
sys 0.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456827/ft1_filtered_4FGL_J0427.3+0504_daily_bin1370.fits evtable="EVENTS" scfile=/scratch/kocevski/456827/ft2_4FGL_J0427.3+0504_daily_bin1370.fits sctable="SC_DATA" expcube=/scratch/kocevski/456827/ltcube_594432001_594691201_4FGL_J0427.3+0504_daily_bin1370.fits outfile=/scratch/kocevski/456827/expmap_594432001_594691201_4FGL_J0427.3+0504_daily_bin1370.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/456827/ltcube_594432001_594691201_4FGL_J0427.3+0504_daily_bin1370.fits
.....................!
real 191.15
user 185.17
sys 5.55

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/456827/ft1_filtered_4FGL_J0427.3+0504_daily_bin1370.fits scfile=/scratch/kocevski/456827/ft2_4FGL_J0427.3+0504_daily_bin1370.fits outfile=/scratch/kocevski/456827/cmap_594432001_594691201_4FGL_J0427.3+0504_daily_bin1370.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.16
user 0.38
sys 0.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456827/ft1_filtered_4FGL_J0427.3+0504_daily_bin1370.fits scfile=/scratch/kocevski/456827/ft2_4FGL_J0427.3+0504_daily_bin1370.fits outfile=/scratch/kocevski/456827/cmap_HighResolution_594432001_594691201_4FGL_J0427.3+0504_daily_bin1370.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.12
user 0.38
sys 0.72

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.288       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .88243E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .11507E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.290       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.436       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.4285       1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.545       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7309       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .14546       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.501       1.0000         .10000E-03   10000.    
    21 'norm      '    2.6238       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11108E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .25556       1.0000         .10000E-03   10000.    
    24 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.6998       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .67597       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0688       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=   5758.987     FROM MIGRAD    STATUS=CONVERGED   1249 CALLS     3970 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.327        82.344        .25837E-03    .14432E-04
   2  Prefactor     .10000E-03    34.692        .95153E-01** at limit **
   3  norm          .10000E-03    9.4607        .18142E-02** at limit **
   4  Prefactor     .10000E-03    36.630        .18142E-02** at limit **
   5  norm          .10000E-03    2.3900        .11437E-02** at limit **
   6  Prefactor     .10000E-03    19.965        .18142E-02** at limit **
   7  norm          .10000E-03    17.321        .18142E-02** at limit **
   8  norm          .10000E-03    56.241        .18142E-02** at limit **
   9  norm          .10000E-03    1.4995        .13680E-02** at limit **
  10  Prefactor     .10000E-03    3.1686        .17687E-02** at limit **
  11  Prefactor     23.301        37.636        .83001E-04   -.67116E-05
  12  Prefactor     18.451        53.797        .93281E-04    .37781E-05
  13  Prefactor     .10000E-03    6.4355        .18142E-02** at limit **
  14  Prefactor     .10000E-03    18.402        .18142E-02** at limit **
  15  norm          7.4289        4.9373        .11201E-03   -.36334E-04
  16  Prefactor     38.512        44.325        .32279E-03    .16307E-04
  17  norm          2.7316        3.3747        .14013E-03    .33424E-04
  18  Prefactor     .10000E-03    4.9408        .16401E-02** at limit **
  19  norm          .13935        10.843        .16292E-02    .85594E-04
  20  Prefactor     28.489        40.536        .75044E-04   -.57265E-04
  21  norm          2.6246        3.0509        .13384E-03    .38904E-04
  22  Prefactor     .10000E-03    30.286        .18142E-02** at limit **
  23  norm          .25513        .76811        .10283E-02    .39873E-03
  24  norm          .10000E-03    1.9902        .10428E-02** at limit **
  25  Prefactor     4.7003        4.1433        .14037E-03   -.28184E-04
  26  Normalizat    .67518        .36689        .53318E-03   -.28999E-05
  27  Prefactor     1.0690        .10711        .14378E-03    .11687E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.3268
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.3013
  Prefactor  = 18.4509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.42889
  Prefactor  = 38.5116
  norm       = 2.73161
  Prefactor  = 0.0001
  norm       = 0.139352
  Prefactor  = 28.4888
  norm       = 2.62464
  Prefactor  = 0.0001
  norm       = 0.255134
  norm       = 0.0001
  Prefactor  = 4.70031
  Normalizat = 0.67518
  Prefactor  = 1.06897
 **********
 **   18 **HESSE 
 **********

 FCN=   5758.987     FROM HESSE     STATUS=OK           474 CALLS     4444 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.327        82.222        .10335E-04   -1.4153    
   2  Prefactor     .10000E-03    31.086        .10153       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.4608        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.632        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.3901        .22874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    17.333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    56.267        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.5023        .27360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1758        .35373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.301        37.630        .33200E-05   -1.4742    
  12  Prefactor     18.451        53.712        .37312E-05   -1.4849    
  13  Prefactor     .10000E-03    6.4372        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.405        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.4289        4.9367        .44806E-05   -1.5163    
  16  Prefactor     38.512        44.321        .12912E-04   -1.4466    
  17  norm          2.7316        3.3733        .56054E-05   -1.5377    
  18  Prefactor     .10000E-03    4.9420        .32801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .13935        10.789        .65167E-04   -1.5633    
  20  Prefactor     28.489        40.459        .30017E-05   -1.4640    
  21  norm          2.6246        3.0500        .53536E-05   -1.5384    
  22  Prefactor     .10000E-03    30.287        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .25513        .76459        .41132E-04   -1.5607    
  24  norm          .10000E-03    1.9903        .20857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.7003        4.1429        .56149E-05   -1.5274    
  26  Normalizat    .67518        .36616        .21327E-04   -1.0488    
  27  Prefactor     1.0690        .10698        .57512E-05   -.90464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5768e-10
Minuit parameter uncertainties:
  1  82.3776
  2  0.00022343
  3  5.4478e-06
  4  4.63623e-05
  5  7.18576e-06
  6  3.65912e-05
  7  4.93708e-05
  8  0.00023607
  9  3.53113e-05
  10  4.1726e-05
  11  37.6681
  12  53.8537
  13  2.58705e-05
  14  8.75088e-05
  15  4.93702
  16  44.3594
  17  3.37355
  18  7.50075e-06
  19  2.45188
  20  40.4981
  21  3.05017
  22  4.81438e-05
  23  0.764619
  24  1.11998e-05
  25  4.14318
  26  0.36749
  27  0.107002
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  1.069e+00  1.070e-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:  6.752e-01  3.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/456827/likelihoodResults_594432001_594691201_4FGL_J0427.3+0504_daily_bin1370.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) = 5758.725677
delta logL = 0.261452774814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5758.69732483
delta logL = 0.289804945078

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.970       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1680       1.0000          .0000       10.000    
     3 'Normalizat'    .70140       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0616       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=   5758.697     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      214 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.970        41.042        .18000E-02   -.12342E-03
   2  Index         2.1680        .62873        .24904       -.45774E-04
   3  Normalizat    .70143        .28936        .11812        .31956E-04
   4  Prefactor     1.0616        .96647E-01    .39274E-01   -.77886E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.9698
  Index      = 2.16797
  Normalizat = 0.70143
  Prefactor  = 1.06159
 **********
 **   18 **HESSE 
 **********

 FCN=   5758.697     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.970        36.746        .71998E-04   -1.4594    
   2  Index         2.1680        .74431        .95067E-02   -.60214    
   3  Normalizat    .70143        .30745        .52398E-03   -1.0384    
   4  Prefactor     1.0616        .10256        .14416E-03   -.90704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.92202e-11
Minuit parameter uncertainties:
  1  36.7733
  2  0.748417
  3  0.308213
  4  0.102578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456827': 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) = 5758.69732483
delta logL = 0.289804949038

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  3.097e+01  3.677e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.168e+00  7.484e-01  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.062e+00  1.026e-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:  7.014e-01  3.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 66.829 5.080
Photon Index (Free Index): 2.17 +/- 0.75
Photon Flux (Free Index): 5.76e-08 +/- 7.98e-08
Energy Flux (Free Index): 2.75e-05 +/- 3.54e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.26e-02', comment='SUCCESS', energy_flux2='2.75e-05', dlogl='2.90e-01', photon_flux2='5.76e-08', job_status='DONE', time_completed='2021-08-20 16:15:51.166286', photon_index_error2='0.75', photon_index2='2.17', ts='0.61', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='2.85e-07', energy_flux_error2='3.54e-05', EG='0.68', time_epoch_completed='1629501351.17', return_code='0', job_id='456827', GAL2='1.06', EG2='0.70', return_code2='0', photon_flux_error2='7.98e-08', ts2='1.19', photon_index='2.86' WHERE bin_id='1370' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:15:51 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1370 66.8294 5.08 594432001 594691201 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 :                                   724.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            915 sec.

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

