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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1230
RA = 66.8294, Dec = 5.08
tmin = 558144001, tmax = 558403201
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='455162', job_status='RUN', time_executed='2021-08-20 15:58:21.029408', time_epoch_executed='1629500301.03' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455162

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455162/ft1_4FGL_J0427.3+0504_daily_bin1230.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455162/ft2_4FGL_J0427.3+0504_daily_bin1230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455162/ft1_4FGL_J0427.3+0504_daily_bin1230.fits outfile=/scratch/kocevski/455162/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1230.fits ra=66.8294 dec=5.08 rad=12.0 tmin=558144001.0 tmax=558403201.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 13.19
user 3.98
sys 9.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455162/ft1_filtered_4FGL_J0427.3+0504_daily_bin1230.fits" evtable="EVENTS" scfile=/scratch/kocevski/455162/ft2_4FGL_J0427.3+0504_daily_bin1230.fits sctable="SC_DATA" outfile=/scratch/kocevski/455162/ltcube_558144001_558403201_4FGL_J0427.3+0504_daily_bin1230.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/455162/ft2_4FGL_J0427.3+0504_daily_bin1230.fits
.....................!
real 21.84
user 11.29
sys 10.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455162/ft1_filtered_4FGL_J0427.3+0504_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/455162/ft2_4FGL_J0427.3+0504_daily_bin1230.fits sctable="SC_DATA" expcube=/scratch/kocevski/455162/ltcube_558144001_558403201_4FGL_J0427.3+0504_daily_bin1230.fits outfile=/scratch/kocevski/455162/expmap_558144001_558403201_4FGL_J0427.3+0504_daily_bin1230.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/455162/ltcube_558144001_558403201_4FGL_J0427.3+0504_daily_bin1230.fits
.....................!
real 203.00
user 185.99
sys 16.58

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/455162/ft1_filtered_4FGL_J0427.3+0504_daily_bin1230.fits scfile=/scratch/kocevski/455162/ft2_4FGL_J0427.3+0504_daily_bin1230.fits outfile=/scratch/kocevski/455162/cmap_558144001_558403201_4FGL_J0427.3+0504_daily_bin1230.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.44
user 0.37
sys 9.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455162/ft1_filtered_4FGL_J0427.3+0504_daily_bin1230.fits scfile=/scratch/kocevski/455162/ft2_4FGL_J0427.3+0504_daily_bin1230.fits outfile=/scratch/kocevski/455162/cmap_HighResolution_558144001_558403201_4FGL_J0427.3+0504_daily_bin1230.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.44
user 0.37
sys 9.02

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/455162/ft1_filtered_4FGL_J0427.3+0504_daily_bin1230.fits', '/scratch/kocevski/455162/ft2_4FGL_J0427.3+0504_daily_bin1230.fits', expMap='/scratch/kocevski/455162/expmap_558144001_558403201_4FGL_J0427.3+0504_daily_bin1230.fits', expCube='/scratch/kocevski/455162/ltcube_558144001_558403201_4FGL_J0427.3+0504_daily_bin1230.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/455162/Model_4FGL_J0427.3+0504_daily_bin1230.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/455162/ft1_filtered_4FGL_J0427.3+0504_daily_bin1230.fits
Spacecraft file(s): /scratch/kocevski/455162/ft2_4FGL_J0427.3+0504_daily_bin1230.fits
Exposure map: /scratch/kocevski/455162/expmap_558144001_558403201_4FGL_J0427.3+0504_daily_bin1230.fits
Exposure cube: /scratch/kocevski/455162/ltcube_558144001_558403201_4FGL_J0427.3+0504_daily_bin1230.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/455162/Model_4FGL_J0427.3+0504_daily_bin1230.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 247.692214107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 244.315601498

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9156       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3771       1.0000         .10000E-03   10000.    
     3 'norm      '    .28317E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    141.86       1.0000         .10000E-03   10000.    
     5 'norm      '    18.927       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0197       1.0000         .10000E-03   10000.    
     7 'norm      '    61.348       1.0000         .10000E-03   10000.    
     8 'norm      '    .28932       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5063       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0042       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41299E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.0602       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19506E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9241       1.0000         .10000E-03   10000.    
    15 'norm      '    .12603E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.7251       1.0000         .10000E-03   10000.    
    17 'norm      '    16.336       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1630       1.0000         .10000E-03   10000.    
    19 'norm      '    2.5345       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4501       1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.4872       1.0000         .10000E-03   10000.    
    23 'norm      '    .14213       1.0000         .10000E-03   10000.    
    24 'norm      '    7.5176       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.1533       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .69790       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   244.2526     FROM MIGRAD    STATUS=CONVERGED    401 CALLS      792 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    856.06        .59484E-02** at limit **
   2  Prefactor     .10005E-03    1431.5        .66428E-02** at limit **
   3  norm          .10000E-03    30.889        .10707E-01** at limit **
   4  Prefactor     144.06        262.86        .84562E-03   -.58192E-02
   5  norm          19.078        19.655        .23016E-02   -.16214E-02
   6  Prefactor     .77427E-03    7967.6        .72803E-02** at limit **
   7  norm          58.625        47.108        .12807E-02    .25668E-03
   8  norm          .10000E-03    425.33        .10378E-01** at limit **
   9  norm          .10000E-03    11.912        .35609E-01** at limit **
  10  Prefactor     .10001E-03    175.92        .37896E-02** at limit **
  11  Prefactor     .10000E-03    325.37        .92275E-02** at limit **
  12  Prefactor     305.03        397.34        .35306E-02    .20424E-03
  13  Prefactor     .10000E-03    23.049        .90712E-02** at limit **
  14  Prefactor     2.9241        1.0154         .0000         .0000    
  15  norm          .10000E-03    .20638       -.99340E-05** at limit **
  16  Prefactor     7.7251        1.0021         .0000         .0000    
  17  norm          15.753        .98248       -.72332E-06   -.65063E-05
  18  Prefactor     1.1630        1.1507         .0000         .0000    
  19  norm          2.5345        1.0209         .0000         .0000    
  20  Prefactor     6.4501        1.0030         .0000         .0000    
  21  norm          .10000E-03    .20571       -.46266E-07** at limit **
  22  Prefactor     7.4872        1.0022         .0000         .0000    
  23  norm          .10000E-03    .23572        .32634E-05** at limit **
  24  norm          7.5176        1.0022         .0000         .0000    
  25  Prefactor     1.1533        1.1554         .0000         .0000    
  26  Normalizat    .10000E-01    .25505        .56155E-04** at limit **
  27  Prefactor     .69549        1.0459        .38768E-05   -.14638E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Prefactor  = 0.000100045
  norm       = 0.0001
  Prefactor  = 144.064
  norm       = 19.0776
  Prefactor  = 0.00077427
  norm       = 58.6249
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100002
  Prefactor  = 305.032
  Prefactor  = 0.000100001
  Prefactor  = 2.92409
  norm       = 0.0001
  Prefactor  = 7.72515
  norm       = 15.7531
  Prefactor  = 1.16299
  norm       = 2.53449
  Prefactor  = 6.45012
  norm       = 0.0001
  Prefactor  = 7.48723
  norm       = 0.0001
  norm       = 7.51764
  Prefactor  = 1.15331
  Normalizat = 0.01
  Prefactor  = 0.695489
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   244.2526     FROM HESSE     STATUS=FAILED        35 CALLS      827 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    856.06        .59484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10005E-03    1431.5        .66428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    30.889        .10707E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     144.06        262.86        .84562E-03   -1.3302    
   5  norm          19.078        19.655        .23016E-02   -1.4834    
   6  Prefactor     .77427E-03    7967.6        .72803E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          58.625        47.108        .12807E-02   -1.4175    
   8  norm          .10000E-03    425.33        .10378E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.912        .35609E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    175.92        .37896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    325.37        .92275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     305.03        397.34        .35306E-02   -1.2197    
  13  Prefactor     .10000E-03    23.049        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     555.36        552.35         .0000       -1.5366    
  15  norm          .10000E-03    .20638       -.99340E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.7251        1.0021         .0000       -1.5152    
  17  norm          15.753        .98248       -.72332E-06   -1.4914    
  18  Prefactor     1.1630        1.1507         .0000       -1.5492    
  19  norm          2.5345        1.0209         .0000       -1.5390    
  20  Prefactor     6.4501        1.0030         .0000       -1.5200    
  21  norm          .10000E-03    .20571       -.46266E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.4872        1.0022         .0000       -1.5161    
  23  norm          .10000E-03    .23572        .32634E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.5176        1.0022         .0000       -1.5160    
  25  Prefactor     1.1533        1.1554         .0000       -1.5493    
  26  Normalizat    .10000E-01    .25505        .56155E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .69549        1.0459        .38768E-05   -1.0370    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.74443e-11
Minuit parameter uncertainties:
  1  0.00695468
  2  0.0165051
  3  2.15329e-06
  4  265.036
  5  19.6621
  6  4.56878
  7  47.1382
  8  0.00168345
  9  8.76048e-05
  10  0.00211525
  11  0.00141535
  12  400.964
  13  0.000284841
  14  1.01542
  15  8.28403e-06
  16  1.00211
  17  0.982485
  18  1.1507
  19  1.02092
  20  1.00304
  21  3.48355e-07
  22  1.00225
  23  3.44755e-06
  24  1.00223
  25  1.15544
  26  2.99193e-06
  27  1.07791
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 244.252570095

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  1.415e-03  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.955e-01  1.078e+00  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  2.992e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/455162/likelihoodResults_558144001_558403201_4FGL_J0427.3+0504_daily_bin1230.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) = 244.252584598
delta logL = -1.45025146878e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 244.252570288
delta logL = -1.92560463574e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11443E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    4.0045       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69549       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=   244.2526     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      279 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11512E-03    615.62        .18142E-01** at limit **
   2  Index         3.5691        6.0434        .50000        .80070E-06
   3  Normalizat    .10000E-01    .26860E-02    .65803E-03** at limit **
   4  Prefactor     .69549        .20140E-01    .16256E-03   -.12551E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000115125
  Index      = 3.56914
  Normalizat = 0.01
  Prefactor  = 0.695488
 **********
 **   18 **HESSE 
 **********

 FCN=   244.2526     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11512E-03    6936.1        .23070E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5691        7.2521        .50000       -.29023    
   3  Normalizat    .10000E-01    .19937E-01    .13161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .69549        .54894E-01    .32511E-04   -1.0370    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.37952e-09
Minuit parameter uncertainties:
  1  0.522436
  2  7090.82
  3  1.29311e-06
  4  0.0548986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455162': 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) = 244.252570196
delta logL = -1.00466991171e-07

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.151e-04  5.224e-01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  3.569e+00  7.091e+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:  6.955e-01  5.490e-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.293e-06  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/455162/cmap_HighResolution_558144001_558403201_4FGL_J0427.3+0504_daily_bin1230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-01', job_status='DONE', photon_flux_upper_limit='6.17e-06', time_completed='2021-08-20 16:05:55.593641', job_id='455162', GAL2='0.70', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629500755.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.70', dlogl='-1.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1230' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:05:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 455162: <4FGL_J0427.3+0504_daily_bin1230> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1230 66.8294 5.08 558144001 558403201 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 :                                   594.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             309.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            630 sec.

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

