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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1197
RA = 66.8294, Dec = 5.08
tmin = 549590401, tmax = 549849601
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='455116', job_status='RUN', time_executed='2021-08-20 15:58:14.603424', time_epoch_executed='1629500294.6' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1197'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455116

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455116/ft1_4FGL_J0427.3+0504_daily_bin1197.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455116/ft2_4FGL_J0427.3+0504_daily_bin1197.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455116/ft1_4FGL_J0427.3+0504_daily_bin1197.fits outfile=/scratch/kocevski/455116/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1197.fits ra=66.8294 dec=5.08 rad=12.0 tmin=549590401.0 tmax=549849601.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 10.15
user 2.56
sys 7.55

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455116/ft1_filtered_4FGL_J0427.3+0504_daily_bin1197.fits" evtable="EVENTS" scfile=/scratch/kocevski/455116/ft2_4FGL_J0427.3+0504_daily_bin1197.fits sctable="SC_DATA" outfile=/scratch/kocevski/455116/ltcube_549590401_549849601_4FGL_J0427.3+0504_daily_bin1197.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/455116/ft2_4FGL_J0427.3+0504_daily_bin1197.fits
.....................!
real 20.51
user 11.90
sys 8.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455116/ft1_filtered_4FGL_J0427.3+0504_daily_bin1197.fits evtable="EVENTS" scfile=/scratch/kocevski/455116/ft2_4FGL_J0427.3+0504_daily_bin1197.fits sctable="SC_DATA" expcube=/scratch/kocevski/455116/ltcube_549590401_549849601_4FGL_J0427.3+0504_daily_bin1197.fits outfile=/scratch/kocevski/455116/expmap_549590401_549849601_4FGL_J0427.3+0504_daily_bin1197.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/455116/ltcube_549590401_549849601_4FGL_J0427.3+0504_daily_bin1197.fits
.....................!
real 200.91
user 186.72
sys 13.75

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/455116/ft1_filtered_4FGL_J0427.3+0504_daily_bin1197.fits scfile=/scratch/kocevski/455116/ft2_4FGL_J0427.3+0504_daily_bin1197.fits outfile=/scratch/kocevski/455116/cmap_549590401_549849601_4FGL_J0427.3+0504_daily_bin1197.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 7.81
user 0.38
sys 7.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455116/ft1_filtered_4FGL_J0427.3+0504_daily_bin1197.fits scfile=/scratch/kocevski/455116/ft2_4FGL_J0427.3+0504_daily_bin1197.fits outfile=/scratch/kocevski/455116/cmap_HighResolution_549590401_549849601_4FGL_J0427.3+0504_daily_bin1197.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 7.74
user 0.39
sys 7.31

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    3.7746       1.0000         .10000E-03   10000.    
     3 'norm      '    5.7079       1.0000         .10000E-03   10000.    
     4 'Prefactor '    87.223       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24432E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10364E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5460       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8459       1.0000         .10000E-03   10000.    
    11 'Prefactor '    58.140       1.0000         .10000E-03   10000.    
    12 'Prefactor '    154.76       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.320       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1045       1.0000         .10000E-03   10000.    
    15 'norm      '    7.4575       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18901E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.9614       1.0000         .10000E-03   10000.    
    22 'Prefactor '    209.76       1.0000         .10000E-03   10000.    
    23 'norm      '    .96003       1.0000         .10000E-03   10000.    
    24 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    30.327       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .15465       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1113       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=   1548.135     FROM MIGRAD    STATUS=CONVERGED   1227 CALLS     5010 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    187.43        .18142E-02** at limit **
   2  Prefactor     3.7633        1709.3        .20779E-03    .26262E-05
   3  norm          5.8969        105.10        .16813E-03    .15045E-05
   4  Prefactor     87.278        117.21        .21509E-03    .43870E-05
   5  norm          .10000E-03    3.6403        .73273E-03** at limit **
   6  Prefactor     .10002E-03    1417.3        .18142E-02** at limit **
   7  norm          .10000E-03    8.1814        .10984E-02** at limit **
   8  norm          .10000E-03    135.37        .18142E-02** at limit **
   9  norm          2.5468        3.1959        .69923E-04   -.31420E-04
  10  Prefactor     9.8493        8.1891        .83891E-04   -.70401E-04
  11  Prefactor     58.227        336.54        .52615E-04    .11409E-04
  12  Prefactor     155.50        204.86        .16203E-03   -.48764E-05
  13  Prefactor     10.574        28.300        .12473E-03   -.13604E-04
  14  Prefactor    10000.0        6363.5        .99492E-02** at limit **
  15  norm          7.4654        40.175        .14686E-03    .26010E-04
  16  Prefactor     .10000E-03    241.82        .18142E-02** at limit **
  17  norm          .10000E-03    4.1733        .77820E-03** at limit **
  18  Prefactor     .10000E-03    46.814        .18142E-02** at limit **
  19  norm          .10000E-03    18.508        .16537E-02** at limit **
  20  Prefactor     .10000E-03    405.30        .18142E-02** at limit **
  21  norm          1.9779        3.7127        .48406E-03   -.25594E-04
  22  Prefactor     210.77        369.78        .13957E-03   -.46838E-05
  23  norm          .95698        3.7329        .83757E-04   -.15986E-03
  24  norm          .10000E-03    6.1309        .95053E-03** at limit **
  25  Prefactor     30.340        29.306        .72755E-04   -.11446E-04
  26  Normalizat    .14416        1.1175        .10044E-01    .47998E-05
  27  Prefactor     1.1126        .29153        .17065E-03    .20368E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.76332
  norm       = 5.89691
  Prefactor  = 87.2783
  norm       = 0.0001
  Prefactor  = 0.000100019
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.54682
  Prefactor  = 9.84934
  Prefactor  = 58.2273
  Prefactor  = 155.5
  Prefactor  = 10.574
  Prefactor  = 10000
  norm       = 7.46542
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.97793
  Prefactor  = 210.775
  norm       = 0.956978
  norm       = 0.0001
  Prefactor  = 30.3395
  Normalizat = 0.144163
  Prefactor  = 1.11255
 **********
 **   18 **HESSE 
 **********

 FCN=   1548.135     FROM HESSE     STATUS=OK           464 CALLS     5474 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    187.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.7633        1713.4        .83116E-05   -1.5320    
   3  norm          5.8969        105.01        .67251E-05   -1.5222    
   4  Prefactor     87.278        117.21        .86037E-05   -1.3837    
   5  norm          .10000E-03    3.6403        .14655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    1417.4        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.1814        .21968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    135.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5468        3.1957        .27969E-05   -1.5389    
  10  Prefactor     9.8493        8.1889        .33556E-05   -1.5080    
  11  Prefactor     58.227        335.59        .10523E-04   -1.4180    
  12  Prefactor     155.50        204.20        .64812E-05   -1.3207    
  13  Prefactor     10.574        27.583        .49891E-05   -1.5057    
  14  Prefactor    10000.0        6363.7        .19898E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.4654        40.067        .58745E-05   -1.5161    
  16  Prefactor     .10000E-03    241.82        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.1735        .15564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    46.815        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    18.508        .33074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    405.31        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9779        3.7003        .19362E-04   -1.5427    
  22  Prefactor     210.77        368.09        .55826E-05   -1.2794    
  23  norm          .95698        3.7257        .33503E-05   -1.5512    
  24  norm          .10000E-03    6.1309        .19011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     30.340        29.302        .29102E-05   -1.4606    
  26  Normalizat    .14416        .97452        .40175E-03   -1.3385    
  27  Prefactor     1.1126        .27725        .68262E-05   -.89066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.6534e-11
Minuit parameter uncertainties:
  1  0.000102147
  2  165.611
  3  49.8713
  4  117.519
  5  1.53679e-06
  6  0.0106514
  7  3.11255e-06
  8  0.000453035
  9  3.19589
  10  8.18988
  11  282.01
  12  205.139
  13  27.616
  14  0.342713
  15  34.6258
  16  0.000457543
  17  6.45578e-06
  18  1.58253e-05
  19  4.72383e-07
  20  0.000680952
  21  3.70072
  22  372.239
  23  3.72664
  24  7.21349e-06
  25  29.3162
  26  0.740894
  27  0.277607
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  5.823e+01  2.820e+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:  1.113e+00  2.776e-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.442e-01  7.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 66.829 5.080
Photon Flux Upper Limit: 1.35e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/455116/likelihoodResults_549590401_549849601_4FGL_J0427.3+0504_daily_bin1197.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) = 1548.1336833
delta logL = 0.0010474062567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1548.13364641
delta logL = 0.00108428914155

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.235       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9522       1.0000          .0000       10.000    
     3 'Normalizat'    .14152       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1133       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=   1548.134     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      263 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.239        154.51        .53026E-04   -.32074E-04
   2  Index         2.9521        1.9129        .13587E-01   -.21911E-04
   3  Normalizat    .14147        .67114        .10340E-01    .59367E-05
   4  Prefactor     1.1133        .25699        .17053E-03    .54005E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.2386
  Index      = 2.95208
  Normalizat = 0.141472
  Prefactor  = 1.11328
 **********
 **   18 **HESSE 
 **********

 FCN=   1548.134     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.239        152.25        .10605E-04   -1.4193    
   2  Index         2.9521        1.8857        .54348E-03   -.42200    
   3  Normalizat    .14147        .62270        .41360E-03   -1.3409    
   4  Prefactor     1.1133        .24748        .34107E-04   -.89043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24131e-10
Minuit parameter uncertainties:
  1  153.3
  2  1.94407
  3  0.582434
  4  0.24774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455116': 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) = 1548.13364641
delta logL = 0.0010842973345

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  5.724e+01  1.533e+02  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.952e+00  1.944e+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:  1.113e+00  2.477e-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.415e-01  5.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
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/455116/cmap_HighResolution_549590401_549849601_4FGL_J0427.3+0504_daily_bin1197.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-01', job_status='DONE', photon_flux_upper_limit='1.35e-06', time_completed='2021-08-20 16:07:00.948706', job_id='455116', GAL2='1.11', fit_tolerance='1e-08', EG2='0.14', EG='0.14', time_epoch_completed='1629500820.95', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.08e-03', ts2='0.16', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1197' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:07:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 455116: <4FGL_J0427.3+0504_daily_bin1197> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1197> 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) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 15:55:26 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:26 2021
Terminated at Fri Aug 20 16:07:02 2021
Results reported at Fri Aug 20 16:07:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1197 66.8294 5.08 549590401 549849601 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 :                                   640.49 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             214.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            698 sec.

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

