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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1196
RA = 66.8294, Dec = 5.08
tmin = 549331201, tmax = 549590401
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='455114', job_status='RUN', time_executed='2021-08-20 15:58:21.107975', time_epoch_executed='1629500301.11' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1196'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455114

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455114/ft1_4FGL_J0427.3+0504_daily_bin1196.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455114/ft2_4FGL_J0427.3+0504_daily_bin1196.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455114/ft1_4FGL_J0427.3+0504_daily_bin1196.fits outfile=/scratch/kocevski/455114/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1196.fits ra=66.8294 dec=5.08 rad=12.0 tmin=549331201.0 tmax=549590401.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 12.24
user 2.62
sys 9.57

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455114/ft1_filtered_4FGL_J0427.3+0504_daily_bin1196.fits evtable="EVENTS" scfile=/scratch/kocevski/455114/ft2_4FGL_J0427.3+0504_daily_bin1196.fits sctable="SC_DATA" expcube=/scratch/kocevski/455114/ltcube_549331201_549590401_4FGL_J0427.3+0504_daily_bin1196.fits outfile=/scratch/kocevski/455114/expmap_549331201_549590401_4FGL_J0427.3+0504_daily_bin1196.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/455114/ltcube_549331201_549590401_4FGL_J0427.3+0504_daily_bin1196.fits
.....................!
real 202.99
user 185.61
sys 17.00

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/455114/ft1_filtered_4FGL_J0427.3+0504_daily_bin1196.fits scfile=/scratch/kocevski/455114/ft2_4FGL_J0427.3+0504_daily_bin1196.fits outfile=/scratch/kocevski/455114/cmap_549331201_549590401_4FGL_J0427.3+0504_daily_bin1196.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.76
user 0.38
sys 9.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455114/ft1_filtered_4FGL_J0427.3+0504_daily_bin1196.fits scfile=/scratch/kocevski/455114/ft2_4FGL_J0427.3+0504_daily_bin1196.fits outfile=/scratch/kocevski/455114/cmap_HighResolution_549331201_549590401_4FGL_J0427.3+0504_daily_bin1196.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.77
user 0.40
sys 9.31

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12634E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    239.84       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10702E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .70860E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15623E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10319E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    45.830       1.0000         .10000E-03   10000.    
     9 'norm      '    12.280       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11294E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    163.37       1.0000         .10000E-03   10000.    
    13 'Prefactor '    63.933       1.0000         .10000E-03   10000.    
    14 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.284       1.0000         .10000E-03   10000.    
    17 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    107.30       1.0000         .10000E-03   10000.    
    19 'norm      '    1180.9       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    18.119       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.2656       1.0000         .10000E-03   10000.    
    24 'norm      '    6.6739       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10039E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .55688       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=   896.2934     FROM MIGRAD    STATUS=CONVERGED   1337 CALLS     4491 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    164.23        .18142E-02** at limit **
   2  Prefactor     240.12        283.23        .13072E-03   -.51755E-04
   3  norm          .10000E-03    25.881        .14879E-02** at limit **
   4  Prefactor     .10000E-03    140.20        .18142E-02** at limit **
   5  norm          .10015E-03    103.63        .37009E-01** at limit **
   6  Prefactor     .10003E-03    1687.1        .20438E-02** at limit **
   7  norm          .10000E-03    21.586        .13574E-02** at limit **
   8  norm          45.949        222.19        .29613E-03    .28760E-04
   9  norm          12.273        7.8938        .46396E-04    .16274E-02
  10  Prefactor     .10000E-03    9.9538        .91653E-03** at limit **
  11  Prefactor     .10000E-03    160.07        .18142E-02** at limit **
  12  Prefactor     163.49        287.86        .15777E-03    .11082E-03
  13  Prefactor     63.930        37.929        .50188E-04    .61120E-03
  14  Prefactor    10000.0        7670.9        .19343E-02** at limit **
  15  norm          .10000E-03    12.270        .10244E-02** at limit **
  16  Prefactor    10000.0        5000.6        .42426E-02** at limit **
  17  norm          .10000E-03    3.1674        .51994E-03** at limit **
  18  Prefactor     107.07        147.30        .19413E-03    .93425E-04
  19  norm          1146.8        1074.3        .61975E-04   -.86079E-05
  20  Prefactor     .10000E-03    122.88        .18142E-02** at limit **
  21  norm          18.131        8.4682        .55273E-04   -.28339E-03
  22  Prefactor     .10000E-03    98.195        .18142E-02** at limit **
  23  norm          5.2658        3.7722        .44117E-04   -.56829E-03
  24  norm          6.6714        16.774        .15533E-03    .61911E-04
  25  Prefactor     .10000E-03    15.719        .11583E-02** at limit **
  26  Normalizat    .10000E-01    1.7418        .12144E-01** at limit **
  27  Prefactor     .55685        .16917        .17397E-03    .10373E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 240.12
  norm       = 0.000100002
  Prefactor  = 0.000100004
  norm       = 0.000100147
  Prefactor  = 0.000100025
  norm       = 0.0001
  norm       = 45.9489
  norm       = 12.2728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 163.488
  Prefactor  = 63.9298
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 107.072
  norm       = 1146.78
  Prefactor  = 0.000100005
  norm       = 18.1305
  Prefactor  = 0.0001
  norm       = 5.26575
  norm       = 6.67143
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.556855
 **********
 **   18 **HESSE 
 **********

 FCN=   896.2934     FROM HESSE     STATUS=OK           472 CALLS     4963 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    164.24        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     240.12        283.19        .26144E-04   -1.2596    
   3  norm          .10000E-03    25.882        .29759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    140.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10015E-03    53.459        .54032E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    1687.1        .40877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    21.586        .27148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          45.949        221.92        .11845E-04   -1.4351    
   9  norm          12.273        7.8531        .92791E-05   -1.5007    
  10  Prefactor     .10000E-03    9.9541        .18331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    160.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     163.49        287.55        .31554E-04   -1.3144    
  13  Prefactor     63.930        37.941        .10038E-04   -1.4107    
  14  Prefactor    10000.0        7668.7        .38685E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.270        .20489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        5000.4        .84852E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.1674        .10399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     107.07        147.30        .38825E-04   -1.3635    
  19  norm          1146.8        1074.3        .12395E-04   -.87985    
  20  Prefactor     .10000E-03    122.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          18.131        8.4671        .11055E-04   -1.4856    
  22  Prefactor     .10000E-03    98.195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.2658        3.7723        .88235E-05   -1.5249    
  24  norm          6.6714        16.775        .62131E-05   -1.5191    
  25  Prefactor     .10000E-03    15.719        .23165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    1.7437        .24287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .55685        .16881        .34794E-04   -1.0943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79868e-09
Minuit parameter uncertainties:
  1  0.000673711
  2  284.835
  3  0.00050822
  4  0.00145383
  5  0.00560981
  6  0.0134295
  7  6.79112e-05
  8  203.193
  9  7.85372
  10  0.000110581
  11  0.000338943
  12  290.075
  13  37.9554
  14  0.105539
  15  2.41512e-05
  16  1.02837
  17  5.8289e-06
  18  147.811
  19  1095.8
  20  0.0015406
  21  8.46765
  22  0.000438052
  23  3.77242
  24  16.7865
  25  3.83994e-05
  26  8.06951e-05
  27  0.168962
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  3.389e-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:  5.569e-01  1.690e-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  8.070e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/455114/likelihoodResults_549331201_549590401_4FGL_J0427.3+0504_daily_bin1196.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) = 896.29347676
delta logL = -3.20666698599e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 896.293447273
delta logL = -2.57918588886e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11506E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.6047       1.0000          .0000       10.000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55686       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=   896.2934     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      278 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11419E-03    329.11        .18142E-01** at limit **
   2  Index         3.2504        6.6087        .50000        .15861E-05
   3  Normalizat    .10000E-01    .96064E-02    .12137E-01** at limit **
   4  Prefactor     .55685        .98385E-02    .17398E-03   -.53748E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00011419
  Index      = 3.25039
  Normalizat = 0.01
  Prefactor  = 0.556854
 **********
 **   18 **HESSE 
 **********

 FCN=   896.2934     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 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     .11419E-03    1628.8        .33132E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2504        5.3784        .50000       -.35749    
   3  Normalizat    .10000E-01    .51026E-01    .24274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55685        .22633E-01    .34795E-04   -1.0943    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3024e-08
Minuit parameter uncertainties:
  1  0.312977
  2  3295.4
  3  4.71385e-08
  4  0.0226338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455114': 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) = 896.293444827
delta logL = -1.33122625812e-07

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.142e-04  3.130e-01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  3.250e+00  3.295e+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:  5.569e-01  2.263e-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.714e-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/455114/cmap_HighResolution_549331201_549590401_4FGL_J0427.3+0504_daily_bin1196.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-01', job_status='DONE', photon_flux_upper_limit='1.70e-06', time_completed='2021-08-20 16:06:49.129772', job_id='455114', GAL2='0.56', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629500809.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='-1.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1196' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:06:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0134>
Subject: Job 455114: <4FGL_J0427.3+0504_daily_bin1196> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1196> 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) <bullet0134>, 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:06:51 2021
Results reported at Fri Aug 20 16:06:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1196 66.8294 5.08 549331201 549590401 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.09 sec.
    Max Memory :                                 1055 MB
    Average Memory :                             228.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            687 sec.

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

