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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1249
RA = 66.8294, Dec = 5.08
tmin = 563068801, tmax = 563328001
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='455190', job_status='RUN', time_executed='2021-08-20 15:58:05.046584', time_epoch_executed='1629500285.05' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455190

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455190/ft1_4FGL_J0427.3+0504_daily_bin1249.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455190/ft2_4FGL_J0427.3+0504_daily_bin1249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455190/ft1_4FGL_J0427.3+0504_daily_bin1249.fits outfile=/scratch/kocevski/455190/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1249.fits ra=66.8294 dec=5.08 rad=12.0 tmin=563068801.0 tmax=563328001.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 4.73
user 3.24
sys 1.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455190/ft1_filtered_4FGL_J0427.3+0504_daily_bin1249.fits" evtable="EVENTS" scfile=/scratch/kocevski/455190/ft2_4FGL_J0427.3+0504_daily_bin1249.fits sctable="SC_DATA" outfile=/scratch/kocevski/455190/ltcube_563068801_563328001_4FGL_J0427.3+0504_daily_bin1249.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/455190/ft2_4FGL_J0427.3+0504_daily_bin1249.fits
.....................!
real 13.78
user 11.93
sys 1.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455190/ft1_filtered_4FGL_J0427.3+0504_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/455190/ft2_4FGL_J0427.3+0504_daily_bin1249.fits sctable="SC_DATA" expcube=/scratch/kocevski/455190/ltcube_563068801_563328001_4FGL_J0427.3+0504_daily_bin1249.fits outfile=/scratch/kocevski/455190/expmap_563068801_563328001_4FGL_J0427.3+0504_daily_bin1249.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/455190/ltcube_563068801_563328001_4FGL_J0427.3+0504_daily_bin1249.fits
.....................!
real 191.40
user 185.18
sys 5.91

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/455190/ft1_filtered_4FGL_J0427.3+0504_daily_bin1249.fits scfile=/scratch/kocevski/455190/ft2_4FGL_J0427.3+0504_daily_bin1249.fits outfile=/scratch/kocevski/455190/cmap_563068801_563328001_4FGL_J0427.3+0504_daily_bin1249.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.78
user 0.36
sys 1.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455190/ft1_filtered_4FGL_J0427.3+0504_daily_bin1249.fits scfile=/scratch/kocevski/455190/ft2_4FGL_J0427.3+0504_daily_bin1249.fits outfile=/scratch/kocevski/455190/cmap_HighResolution_563068801_563328001_4FGL_J0427.3+0504_daily_bin1249.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.82
user 0.37
sys 1.42

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86635E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21336E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .13941E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .29303       1.0000         .10000E-03   10000.    
     5 'norm      '    .37933E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    232.49       1.0000         .10000E-03   10000.    
     7 'norm      '    .62743E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    187.48       1.0000         .10000E-03   10000.    
     9 'norm      '    9.2842       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8005       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .30251E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11662E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13662E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .45134E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.396       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .74620       1.0000         .10000E-03   10000.    
    17 'norm      '    .11655E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.334       1.0000         .10000E-03   10000.    
    19 'norm      '    .18835E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14951E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    23.215       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .67729E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.0059       1.0000         .10000E-03   10000.    
    24 'norm      '    .41143E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.4683       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1464       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1369.181     FROM MIGRAD    STATUS=CONVERGED    262 CALLS     3030 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23078E-01    1916.5        .20078E-04    .29865E-02
   2  Prefactor     .10001E-03    176.32       -.15515E-04** at limit **
   3  norm          .10000E-03    42.675       -.10613E-05** at limit **
   4  Prefactor     .15953E-02    2033.2        .13338E-03** at limit **
   5  norm          .10000E-03    11.238        .19771E-06** at limit **
   6  Prefactor     223.34        276.63        .91216E-05    .12777E-01
   7  norm          .10001E-03    189.38        .83385E-06** at limit **
   8  norm          184.18        134.41        .22895E-05   -.31285E-01
   9  norm          9.2685        7.1380        .33466E-06   -.67642E-04
  10  Prefactor     3.8175        11.510       -.32946E-05   -.14596E-04
  11  Prefactor     .10442E-03    285.69       -.55739E-05** at limit **
  12  Prefactor     .10736E-03    500.75        .25685E-05** at limit **
  13  Prefactor     .10000E-03    32.072        .17686E-06** at limit **
  14  Prefactor     .26615E-03    356.78        .45047E-05** at limit **
  15  norm          18.546        15.403       -.55179E-06    .68019E-04
  16  Prefactor     .10000E-03    274.47       -.33039E-05** at limit **
  17  norm          .10000E-03    3.5333       -.45526E-08** at limit **
  18  Prefactor     39.267        41.795        .66461E-06    .40416E-03
  19  norm          .10000E-03    13.916        .82789E-06** at limit **
  20  Prefactor     .10000E-03    41.764        .93326E-06** at limit **
  21  norm          23.305        7.7846        .86977E-07    .34559E-05
  22  Prefactor     .10000E-03    45.400        .15291E-05** at limit **
  23  norm          1.0026        1.4320        .76394E-07    .18125E-05
  24  norm          .10000E-03    5.7456       -.49650E-07** at limit **
  25  Prefactor     8.3386        14.261        .27701E-06   -.13526E-04
  26  Normalizat    .10000E-01    .96607        .89797E-06** at limit **
  27  Prefactor     1.1471        .18699       -.11979E-05   -.32205E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0230782
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 0.00159528
  norm       = 0.0001
  Prefactor  = 223.342
  norm       = 0.000100007
  norm       = 184.182
  norm       = 9.26855
  Prefactor  = 3.81746
  Prefactor  = 0.000104424
  Prefactor  = 0.000107363
  Prefactor  = 0.0001
  Prefactor  = 0.000266154
  norm       = 18.5459
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 39.2671
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 23.3054
  Prefactor  = 0.0001
  norm       = 1.00257
  norm       = 0.0001
  Prefactor  = 8.33864
  Normalizat = 0.01
  Prefactor  = 1.1471
 **********
 **   18 **HESSE 
 **********

 FCN=   1369.181     FROM HESSE     STATUS=OK           532 CALLS     3562 TOTAL
                     EDM=   .48E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23078E-01    6158.4        .94473E-02   -1.5678    
   2  Prefactor     .10001E-03    177.15        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    42.655        .10264E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .15953E-02    2057.4        .10394E-01   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.221        .10644E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     223.34        316.10        .66361E-03   -1.2708    
   7  norm          .10001E-03    185.60        .10520E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          184.18        221.30        .73728E-03   -1.2985    
   9  norm          9.2685        7.1911        .32882E-02   -1.5099    
  10  Prefactor     3.8175        12.169        .51764E-02   -1.5317    
  11  Prefactor     .10442E-03    286.50        .99097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10736E-03    500.87        .90813E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    31.935        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .26615E-03    358.41        .10604E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.546        15.455        .23345E-02   -1.4846    
  16  Prefactor     .10000E-03    276.06        .12238E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.5193        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     39.267        42.079        .16184E-02   -1.4454    
  19  norm          .10000E-03    13.604        .10141E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    41.728        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          23.305        7.8230        .20784E-02   -1.4742    
  22  Prefactor     .10000E-03    45.363        .10499E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.0026        1.4825        .11270E-01   -1.5508    
  24  norm          .10000E-03    5.7277        .10625E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.3386        14.203        .34439E-02   -1.5130    
  26  Normalizat    .10000E-01    .64999        .32257       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.1471        .20192        .36042E-01   -.87975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79171e-05
Minuit parameter uncertainties:
  1  15.2705
  2  0.00308581
  3  5.75984e-05
  4  3.64093
  5  3.70004e-06
  6  318.563
  7  0.0022328
  8  222.313
  9  7.1918
  10  12.1765
  11  0.0715472
  12  0.122495
  13  1.4195e-05
  14  0.491028
  15  15.4584
  16  0.000980505
  17  3.6397e-09
  18  42.1109
  19  1.32491e-05
  20  5.02646e-05
  21  7.82333
  22  2.90621e-05
  23  1.48257
  24  6.42001e-07
  25  14.2087
  26  4.53927e-08
  27  0.202051
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.044e-04  7.155e-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.147e+00  2.021e-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  4.539e-08  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.37e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/455190/likelihoodResults_563068801_563328001_4FGL_J0427.3+0504_daily_bin1249.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) = 1369.18115314
delta logL = -2.02763910693e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1369.18113542
delta logL = -2.55832833318e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3626       1.0000          .0000       10.000    
     3 'Normalizat'    .10005E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1471       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=   1369.181     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      243 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1024.1        .90712E-02** at limit **
   2  Index         3.3539        8.1840        .50000        .25879E-06
   3  Normalizat    .10000E-01    .29224E-02    .32146    ** at limit **
   4  Prefactor     1.1471        .12232E-01    .36021E-01   -.27752E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.3539
  Normalizat = 0.01
  Prefactor  = 1.1471
 **********
 **   18 **HESSE 
 **********

 FCN=   1369.181     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7196.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3539        5.5173        .50000       -.33548    
   3  Normalizat    .10000E-01    .33929E-01    .15078E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1471        .27533E-01    .16918E-03   -.87975    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.20585e-08
Minuit parameter uncertainties:
  1  9.32702e-05
  2  3738.83
  3  1.54048e-08
  4  0.0275333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455190': 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) = 1369.18113284
delta logL = 2.32771526498e-08

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  9.327e-05  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  3.354e+00  3.739e+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.147e+00  2.753e-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  1.540e-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/455190/cmap_HighResolution_563068801_563328001_4FGL_J0427.3+0504_daily_bin1249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-01', job_status='DONE', photon_flux_upper_limit='1.37e-06', time_completed='2021-08-20 16:04:54.943832', job_id='455190', GAL2='1.15', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629500694.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.33e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1249' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:04:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0119>
Subject: Job 455190: <4FGL_J0427.3+0504_daily_bin1249> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1249> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 15:55:30 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 15:55:32 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:32 2021
Terminated at Fri Aug 20 16:04:55 2021
Results reported at Fri Aug 20 16:04:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1249 66.8294 5.08 563068801 563328001 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 :                                   429.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   563 sec.
    Turnaround time :                            565 sec.

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

