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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1498
RA = 66.8294, Dec = 5.08
tmin = 627609601, tmax = 627868801
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='458940', job_status='RUN', time_executed='2021-08-20 16:06:33.605460', time_epoch_executed='1629500793.61' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458940

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458940/ft1_4FGL_J0427.3+0504_daily_bin1498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458940/ft2_4FGL_J0427.3+0504_daily_bin1498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458940/ft1_4FGL_J0427.3+0504_daily_bin1498.fits outfile=/scratch/kocevski/458940/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1498.fits ra=66.8294 dec=5.08 rad=12.0 tmin=627609601.0 tmax=627868801.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 2.75
user 2.31
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/458940/ft2_4FGL_J0427.3+0504_daily_bin1498.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/458940/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1498.fits evtable="EVENTS" outfile="/scratch/kocevski/458940/ft1_filtered_4FGL_J0427.3+0504_daily_bin1498.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 0.73
user 0.34
sys 0.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/458940/ft1_filtered_4FGL_J0427.3+0504_daily_bin1498.fits" evtable="EVENTS" scfile=/scratch/kocevski/458940/ft2_4FGL_J0427.3+0504_daily_bin1498.fits sctable="SC_DATA" outfile=/scratch/kocevski/458940/ltcube_627609601_627868801_4FGL_J0427.3+0504_daily_bin1498.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/458940/ft2_4FGL_J0427.3+0504_daily_bin1498.fits
.....................!
real 14.02
user 13.38
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458940/ft1_filtered_4FGL_J0427.3+0504_daily_bin1498.fits evtable="EVENTS" scfile=/scratch/kocevski/458940/ft2_4FGL_J0427.3+0504_daily_bin1498.fits sctable="SC_DATA" expcube=/scratch/kocevski/458940/ltcube_627609601_627868801_4FGL_J0427.3+0504_daily_bin1498.fits outfile=/scratch/kocevski/458940/expmap_627609601_627868801_4FGL_J0427.3+0504_daily_bin1498.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/458940/ltcube_627609601_627868801_4FGL_J0427.3+0504_daily_bin1498.fits
.....................!
real 190.95
user 185.26
sys 5.11

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/458940/ft1_filtered_4FGL_J0427.3+0504_daily_bin1498.fits scfile=/scratch/kocevski/458940/ft2_4FGL_J0427.3+0504_daily_bin1498.fits outfile=/scratch/kocevski/458940/cmap_627609601_627868801_4FGL_J0427.3+0504_daily_bin1498.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 0.79
user 0.38
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458940/ft1_filtered_4FGL_J0427.3+0504_daily_bin1498.fits scfile=/scratch/kocevski/458940/ft2_4FGL_J0427.3+0504_daily_bin1498.fits outfile=/scratch/kocevski/458940/cmap_HighResolution_627609601_627868801_4FGL_J0427.3+0504_daily_bin1498.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 0.77
user 0.41
sys 0.35

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.744       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9749       1.0000         .10000E-03   10000.    
     6 'Prefactor '    69.916       1.0000         .10000E-03   10000.    
     7 'norm      '    23.703       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .62657       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    128.20       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.3181       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.386       1.0000         .10000E-03   10000.    
    21 'norm      '    2.1721       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.6580       1.0000         .10000E-03   10000.    
    24 'norm      '    10.743       1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.695       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3464       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .69805       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1621.406     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     3293 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    271.53       -.34151E-04** at limit **
   2  Prefactor     41.782        161.46        .57066E-04    .12041E-04
   3  norm          .10000E-03    14.862       -.53423E-06** at limit **
   4  Prefactor     .10000E-03    38.237       -.21847E-05** at limit **
   5  norm          1.9742        5.7284       -.90214E-06   -.23201E-03
   6  Prefactor     69.840        225.67       -.86825E-04    .59141E-05
   7  norm          23.703        25.591       -.32657E-06   -.14693E-03
   8  norm          .10000E-03    24.051       -.26229E-04** at limit **
   9  norm          .62646        1.9779       -.41210E-06   -.11867E-02
  10  Prefactor     .10000E-03    2.0452       -.99035E-07** at limit **
  11  Prefactor     128.21        112.96        .89896E-05    .55187E-05
  12  Prefactor     .10000E-03    190.26        .17234E-03** at limit **
  13  Prefactor     .10000E-03    21.016        .13334E-04** at limit **
  14  Prefactor     .10000E-03    380.58       -.32813E-03** at limit **
  15  norm          .10000E-03    10.518       -.50059E-06** at limit **
  16  Prefactor     .10000E-03    88.480       -.16376E-04** at limit **
  17  norm          5.3180        5.1550       -.90094E-07   -.46637E-03
  18  Prefactor     .10000E-03    39.610       -.19575E-04** at limit **
  19  norm          .10000E-03    5.9557        .17796E-06** at limit **
  20  Prefactor     26.389        60.408        .27995E-05    .22104E-05
  21  norm          2.1723        4.9909       -.43682E-06   -.28475E-03
  22  Prefactor     .10000E-03    31.929        .32516E-04** at limit **
  23  norm          1.6581        1.5412       -.67320E-07   -.17072E-03
  24  norm          10.743        9.1524        .99723E-07   -.35366E-04
  25  Prefactor     13.695        17.308       -.85197E-06   -.45913E-03
  26  Normalizat    1.3463        .61737       -.18310E-06   -.13112E-03
  27  Prefactor     .69810        .21835        .83047E-07   -.15691E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 41.7819
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.97417
  Prefactor  = 69.8403
  norm       = 23.7033
  norm       = 0.0001
  norm       = 0.626462
  Prefactor  = 0.0001
  Prefactor  = 128.205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.31796
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.3892
  norm       = 2.17231
  Prefactor  = 0.0001
  norm       = 1.65806
  norm       = 10.7426
  Prefactor  = 13.6952
  Normalizat = 1.34631
  Prefactor  = 0.698101
 **********
 **   18 **HESSE 
 **********

 FCN=   1621.406     FROM HESSE     STATUS=OK           478 CALLS     3771 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    271.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.782        161.34        .62045E-04   -1.4414    
   3  norm          .10000E-03    14.863        .15165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    38.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9742        5.6091        .15375E-03   -1.5427    
   6  Prefactor     69.840        225.43        .48007E-04   -1.4035    
   7  norm          23.703        25.946        .82275E-04   -1.4734    
   8  norm          .10000E-03    24.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .62646        1.7657        .91377E-03   -1.5550    
  10  Prefactor     .10000E-03    2.0570        .56141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     128.21        112.67        .35557E-04   -1.3439    
  12  Prefactor     .10000E-03    190.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.173        .18009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    380.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.551        .12708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    88.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.3180        5.2069        .82466E-04   -1.5247    
  18  Prefactor     .10000E-03    39.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.9724        .95980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     26.389        60.412        .77987E-04   -1.4680    
  21  norm          2.1723        4.9927        .11627E-03   -1.5413    
  22  Prefactor     .10000E-03    31.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.6581        1.5366        .44115E-04   -1.5450    
  24  norm          10.743        9.1829        .10480E-03   -1.5052    
  25  Prefactor     13.695        17.474        .54117E-03   -1.4968    
  26  Normalizat    1.3463        .71119        .38768E-03   -.82194    
  27  Prefactor     .69810        .25235        .20077E-03   -1.0360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27833e-09
Minuit parameter uncertainties:
  1  0.000707915
  2  163.068
  3  2.16362e-06
  4  4.14592e-06
  5  5.61059
  6  228.279
  7  25.9581
  8  2.26053e-06
  9  1.7658
  10  5.98558e-06
  11  112.862
  12  0.000521205
  13  5.15021e-05
  14  2.23782e-05
  15  5.2218e-06
  16  6.52292e-05
  17  5.20735
  18  0.000126886
  19  1.17835e-05
  20  60.5523
  21  4.99369
  22  3.04874e-07
  23  1.53668
  24  9.18415
  25  17.4804
  26  0.716477
  27  0.252761
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.282e+02  1.129e+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:  6.981e-01  2.528e-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.346e+00  7.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.34
Ra Dec: 66.829 5.080
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 4.01e-07 +/- 3.53e-07
Energy Flux (Fixed Index): 8.63e-05 +/- 7.59e-05

TS (Fixed Index): 2.34
Ra Dec: 66.829 5.080
Photon Flux Upper Limit: 1.12e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.91e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/458940/likelihoodResults_627609601_627868801_4FGL_J0427.3+0504_daily_bin1498.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) = 1621.27774607
delta logL = 0.128167900051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1621.26128262
delta logL = 0.144631357347

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    142.50       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3730       1.0000          .0000       10.000    
     3 'Normalizat'    1.4210       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67091       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=   1621.261     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      196 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     142.50        120.78        .84374E-03    .54535E-03
   2  Index         2.3726        .74934        .16054       -.14249E-04
   3  Normalizat    1.4201        .54073        .85737E-01    .40225E-05
   4  Prefactor     .67158        .21146        .42013E-01    .81279E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 142.504
  Index      = 2.3726
  Normalizat = 1.42014
  Prefactor  = 0.671584
 **********
 **   18 **HESSE 
 **********

 FCN=   1621.261     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     142.50        112.97        .33749E-04   -1.3315    
   2  Index         2.3726        .78740        .63411E-02   -.55328    
   3  Normalizat    1.4201        .61213        .37959E-03   -.80048    
   4  Prefactor     .67158        .23764        .20410E-03   -1.0465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69615e-09
Minuit parameter uncertainties:
  1  113.145
  2  0.791963
  3  0.615335
  4  0.237998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458940': 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) = 1621.26127628
delta logL = 0.144637688729

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.425e+02  1.131e+02  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.373e+00  7.920e-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:  6.716e-01  2.380e-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.420e+00  6.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 66.829 5.080
Photon Index (Free Index): 2.37 +/- 0.79
Photon Flux (Free Index): 3.02e-07 +/- 3.10e-07
Energy Flux (Free Index): 1.03e-04 +/- 9.19e-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/458940/cmap_HighResolution_627609601_627868801_4FGL_J0427.3+0504_daily_bin1498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.91e-02', comment='SUCCESS', photon_flux='4.01e-07', energy_flux2='1.03e-04', photon_flux_error='3.53e-07', dlogl='1.45e-01', energy_flux='8.63e-05', photon_flux2='3.02e-07', job_status='DONE', time_completed='2021-08-20 16:13:20.938776', photon_index_error2='0.79', photon_index2='2.37', ts='2.34', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.12e-06', energy_flux_error2='9.19e-05', EG='1.35', time_epoch_completed='1629501200.94', return_code='0', job_id='458940', GAL2='0.67', EG2='1.42', return_code2='0', energy_flux_error='7.59e-05', photon_flux_error2='3.10e-07', ts2='2.64', photon_index='2.86' WHERE bin_id='1498' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:13:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 458940: <4FGL_J0427.3+0504_daily_bin1498> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1498> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 16:05:19 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:05:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 16:05:21 2021
Terminated at Fri Aug 20 16:13:21 2021
Results reported at Fri Aug 20 16:13:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1498 66.8294 5.08 627609601 627868801 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 :                                   408.45 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             325.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   480 sec.
    Turnaround time :                            482 sec.

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

