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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1181
RA = 66.8294, Dec = 5.08
tmin = 545443201, tmax = 545702401
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='455092', job_status='RUN', time_executed='2021-08-20 15:57:06.802563', time_epoch_executed='1629500226.8' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455092

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455092/ft1_4FGL_J0427.3+0504_daily_bin1181.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455092/ft2_4FGL_J0427.3+0504_daily_bin1181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455092/ft1_4FGL_J0427.3+0504_daily_bin1181.fits outfile=/scratch/kocevski/455092/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1181.fits ra=66.8294 dec=5.08 rad=12.0 tmin=545443201.0 tmax=545702401.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 8.89
user 3.90
sys 4.94

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455092/ft1_filtered_4FGL_J0427.3+0504_daily_bin1181.fits" evtable="EVENTS" scfile=/scratch/kocevski/455092/ft2_4FGL_J0427.3+0504_daily_bin1181.fits sctable="SC_DATA" outfile=/scratch/kocevski/455092/ltcube_545443201_545702401_4FGL_J0427.3+0504_daily_bin1181.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/455092/ft2_4FGL_J0427.3+0504_daily_bin1181.fits
.....................!
real 17.38
user 11.70
sys 5.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455092/ft1_filtered_4FGL_J0427.3+0504_daily_bin1181.fits evtable="EVENTS" scfile=/scratch/kocevski/455092/ft2_4FGL_J0427.3+0504_daily_bin1181.fits sctable="SC_DATA" expcube=/scratch/kocevski/455092/ltcube_545443201_545702401_4FGL_J0427.3+0504_daily_bin1181.fits outfile=/scratch/kocevski/455092/expmap_545443201_545702401_4FGL_J0427.3+0504_daily_bin1181.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/455092/ltcube_545443201_545702401_4FGL_J0427.3+0504_daily_bin1181.fits
.....................!
real 198.14
user 187.09
sys 10.70

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/455092/ft1_filtered_4FGL_J0427.3+0504_daily_bin1181.fits scfile=/scratch/kocevski/455092/ft2_4FGL_J0427.3+0504_daily_bin1181.fits outfile=/scratch/kocevski/455092/cmap_545443201_545702401_4FGL_J0427.3+0504_daily_bin1181.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 5.22
user 0.37
sys 4.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455092/ft1_filtered_4FGL_J0427.3+0504_daily_bin1181.fits scfile=/scratch/kocevski/455092/ft2_4FGL_J0427.3+0504_daily_bin1181.fits outfile=/scratch/kocevski/455092/cmap_HighResolution_545443201_545702401_4FGL_J0427.3+0504_daily_bin1181.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 5.22
user 0.38
sys 4.80

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    120.39       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .37175E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    29.010       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .17300       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.544       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.2075       1.0000         .10000E-03   10000.    
    16 'Prefactor '    160.67       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    32.362       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .98659       1.0000         .10000E-03   10000.    
    24 'norm      '    21.406       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .19673       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98191       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=   2125.895     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     4572 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     120.24        263.87       -.12755E-03    .30276E-04
   2  Prefactor     .10000E-03    34.125        .10031E-04** at limit **
   3  norm          .10000E-03    13.304       -.87388E-06** at limit **
   4  Prefactor     .10000E-03    33.524        .10315E-04** at limit **
   5  norm          .10001E-03    7.4784       -.14053E-05** at limit **
   6  Prefactor     .10000E-03    70.993       -.18596E-04** at limit **
   7  norm          29.003        46.219        .62298E-05    .37294E-03
   8  norm          .10000E-03    27.821       -.10931E-04** at limit **
   9  norm          .16747        3.8944       -.57933E-06    .11656E-03
  10  Prefactor     .10000E-03    1.4090        .56446E-07** at limit **
  11  Prefactor     .10000E-03    20.903       -.23154E-06** at limit **
  12  Prefactor     .10000E-03    74.387        .24505E-04** at limit **
  13  Prefactor     13.540        26.713       -.33599E-05   -.19914E-03
  14  Prefactor     .10000E-03    524.22       -.24511E-04** at limit **
  15  norm          8.2028        7.5856       -.54812E-05    .29985E-03
  16  Prefactor     160.62        157.60       -.33016E-04    .27698E-04
  17  norm          .10000E-03    1.1592       -.44752E-09** at limit **
  18  Prefactor     .10000E-03    12.225        .14400E-05** at limit **
  19  norm          .10000E-03    6.4386       -.10303E-06** at limit **
  20  Prefactor     .10000E-03    34.819        .83064E-05** at limit **
  21  norm          32.358        8.1303       -.31425E-06    .84776E-03
  22  Prefactor     .10000E-03    39.599       -.20793E-04** at limit **
  23  norm          .98648        1.9186       -.21324E-06    .33987E-03
  24  norm          21.402        12.450       -.42455E-07    .30599E-03
  25  Prefactor     .10000E-03    20.019        .19691E-05** at limit **
  26  Normalizat    .19691        5.7838       -.22263E-04    .30678E-04
  27  Prefactor     .98206        .46656        .10816E-04    .20022E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 120.24
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100011
  Prefactor  = 0.0001
  norm       = 29.0028
  norm       = 0.0001
  norm       = 0.167473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5402
  Prefactor  = 0.0001
  norm       = 8.20285
  Prefactor  = 160.619
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 32.3584
  Prefactor  = 0.0001
  norm       = 0.986476
  norm       = 21.4016
  Prefactor  = 0.0001
  Normalizat = 0.196906
  Prefactor  = 0.982061
 **********
 **   18 **HESSE 
 **********

 FCN=   2125.895     FROM HESSE     STATUS=OK           474 CALLS     5046 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     120.24        260.30        .18339E-03   -1.3510    
   2  Prefactor     .10000E-03    34.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    13.305        .16429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    34.108        .22627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    70.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          29.003        31.006        .74385E-04   -1.4630    
   8  norm          .10000E-03    27.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .16747        4.2261        .12788E-02   -1.5626    
  10  Prefactor     .10000E-03    1.4107        .53347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    74.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.540        19.813        .54418E-03   -1.4972    
  14  Prefactor     .10000E-03    524.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.2028        7.4728        .11408E-03   -1.5135    
  16  Prefactor     160.62        157.57        .15907E-03   -1.3166    
  17  norm          .10000E-03    1.1582        .48365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.237        .15741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.4633        .11422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          32.358        6.4192        .48759E-04   -1.4570    
  22  Prefactor     .10000E-03    39.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .98648        1.6401        .63203E-04   -1.5509    
  24  norm          21.402        12.306        .86572E-04   -1.4782    
  25  Prefactor     .10000E-03    20.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .19691        .52390        .88843E-03   -1.2964    
  27  Prefactor     .98206        .20349        .17454E-03   -.93330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34821e-09
Minuit parameter uncertainties:
  1  262.839
  2  0.000209835
  3  1.36246e-05
  4  1.13566e-05
  5  0.00123022
  6  0.000207525
  7  31.0234
  8  4.61156e-05
  9  1.6822
  10  4.49719e-06
  11  6.55952e-05
  12  0.000114002
  13  19.8228
  14  0.000229188
  15  7.47364
  16  157.983
  17  3.50352e-06
  18  8.16809e-05
  19  1.09411e-05
  20  3.7591e-05
  21  6.41935
  22  3.11395e-05
  23  1.64018
  24  12.3073
  25  0.00010519
  26  0.537952
  27  0.203649
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  6.560e-05  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:  9.821e-01  2.036e-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.969e-01  5.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/455092/likelihoodResults_545443201_545702401_4FGL_J0427.3+0504_daily_bin1181.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) = 2125.89481553
delta logL = -0.00022745364322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2125.89459068
delta logL = -2.60732849711e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.7620       1.0000          .0000       10.000    
     3 'Normalizat'    .19691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98206       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=   2125.895     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      293 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    323.86        .14392E-01** at limit **
   2  Index         2.1880        5.9157        .50000        .21078E-07
   3  Normalizat    .19690        .42398E-01    .88848E-03   -.23681E-03
   4  Prefactor     .98206        .17990E-01    .17454E-03   -.12306E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18803
  Normalizat = 0.196899
  Prefactor  = 0.982057
 **********
 **   18 **HESSE 
 **********

 FCN=   2125.895     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      322 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1678.1        .23631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1880        7.5415        .50000       -.59728    
   3  Normalizat    .19690        .10530        .35539E-04   -1.2964    
   4  Prefactor     .98206        .44715E-01    .34908E-04   -.93330    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.19481e-10
Minuit parameter uncertainties:
  1  0.000355922
  2  2125.68
  3  0.105404
  4  0.0447167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455092': 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) = 2125.8945875
delta logL = 5.74409568799e-07

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  3.559e-04  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.188e+00  2.126e+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:  9.821e-01  4.472e-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.969e-01  1.054e-01  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/455092/cmap_HighResolution_545443201_545702401_4FGL_J0427.3+0504_daily_bin1181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-02', job_status='DONE', photon_flux_upper_limit='3.43e-07', time_completed='2021-08-20 16:06:08.485442', job_id='455092', GAL2='0.98', fit_tolerance='1e-08', EG2='0.20', EG='0.20', time_epoch_completed='1629500768.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1181' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:06:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0131>
Subject: Job 455092: <4FGL_J0427.3+0504_daily_bin1181> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1181 66.8294 5.08 545443201 545702401 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 :                                   612.36 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             328.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            647 sec.

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

