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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1441
RA = 66.8294, Dec = 5.08
tmin = 612835201, tmax = 613094401
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='456948', job_status='RUN', time_executed='2021-08-20 16:04:58.155228', time_epoch_executed='1629500698.16' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456948

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456948/ft1_4FGL_J0427.3+0504_daily_bin1441.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456948/ft2_4FGL_J0427.3+0504_daily_bin1441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456948/ft1_4FGL_J0427.3+0504_daily_bin1441.fits outfile=/scratch/kocevski/456948/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1441.fits ra=66.8294 dec=5.08 rad=12.0 tmin=612835201.0 tmax=613094401.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 7.37
user 2.69
sys 4.61

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456948/ft1_filtered_4FGL_J0427.3+0504_daily_bin1441.fits" evtable="EVENTS" scfile=/scratch/kocevski/456948/ft2_4FGL_J0427.3+0504_daily_bin1441.fits sctable="SC_DATA" outfile=/scratch/kocevski/456948/ltcube_612835201_613094401_4FGL_J0427.3+0504_daily_bin1441.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/456948/ft2_4FGL_J0427.3+0504_daily_bin1441.fits
.....................!
real 17.85
user 12.51
sys 5.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456948/ft1_filtered_4FGL_J0427.3+0504_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/456948/ft2_4FGL_J0427.3+0504_daily_bin1441.fits sctable="SC_DATA" expcube=/scratch/kocevski/456948/ltcube_612835201_613094401_4FGL_J0427.3+0504_daily_bin1441.fits outfile=/scratch/kocevski/456948/expmap_612835201_613094401_4FGL_J0427.3+0504_daily_bin1441.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/456948/ltcube_612835201_613094401_4FGL_J0427.3+0504_daily_bin1441.fits
.....................!
real 196.24
user 185.13
sys 10.54

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/456948/ft1_filtered_4FGL_J0427.3+0504_daily_bin1441.fits scfile=/scratch/kocevski/456948/ft2_4FGL_J0427.3+0504_daily_bin1441.fits outfile=/scratch/kocevski/456948/cmap_612835201_613094401_4FGL_J0427.3+0504_daily_bin1441.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 4.88
user 0.38
sys 4.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456948/ft1_filtered_4FGL_J0427.3+0504_daily_bin1441.fits scfile=/scratch/kocevski/456948/ft2_4FGL_J0427.3+0504_daily_bin1441.fits outfile=/scratch/kocevski/456948/cmap_HighResolution_612835201_613094401_4FGL_J0427.3+0504_daily_bin1441.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 4.91
user 0.38
sys 4.49

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2005.83850053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11905E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .88090E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .12029E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26081E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    5.3794       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14850E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .85238E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .86324       1.0000         .10000E-03   10000.    
     9 'norm      '    .28547E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .63431E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14057E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.655       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6509       1.0000         .10000E-03   10000.    
    15 'norm      '    11.086       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .54137       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1174       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .41707E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .13613E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11941E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    1.9872       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .73467E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    7.3113       1.0000         .10000E-03   10000.    
    24 'norm      '    .65892E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    69.319       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .15547       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2820       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=   2005.835     FROM MIGRAD    STATUS=CONVERGED    224 CALLS     2415 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11045E-03    13.125       -.35597E-05** at limit **
   2  Prefactor     .10002E-03    58.379       -.29434E-05** at limit **
   3  norm          .10000E-03    10.306        .22222E-06** at limit **
   4  Prefactor     .10000E-03    26.608       -.15920E-05** at limit **
   5  norm          5.4987        10.180       -.53579E-06    .16858E-02
   6  Prefactor     .10295E-03    12.770        .21879E-05** at limit **
   7  norm          .10000E-03    28.519       -.10782E-05** at limit **
   8  norm          .10000E-03    463.88       -.40069E-05** at limit **
   9  norm          .16552E-01    21.118       -.14120E-04   -.15156E-02
  10  Prefactor     .10000E-03    2.6102       -.95710E-07** at limit **
  11  Prefactor     .10004E-03    71.993        .40125E-05** at limit **
  12  Prefactor     .10084E-03    44.937       -.90669E-05** at limit **
  13  Prefactor     41.268        27.452       -.78617E-06   -.39426E-02
  14  Prefactor     .10127E-03    6923.0        .96200E-05** at limit **
  15  norm          11.320        17.883       -.50633E-06   -.82924E-03
  16  Prefactor     .10129E-03    170.41       -.27725E-05** at limit **
  17  norm          3.1219        6.5375       -.25929E-06    .10343E-03
  18  Prefactor     .10000E-03    28.105       -.10214E-05** at limit **
  19  norm          .10066E-03    57.118       -.18210E-04** at limit **
  20  Prefactor     .10856E-03    20.084       -.40268E-05** at limit **
  21  norm          1.9849        4.4538       -.15675E-06    .58309E-05
  22  Prefactor     .10576E-03    130.31        .40413E-05** at limit **
  23  norm          7.3065        4.6018       -.94295E-06   -.89757E-04
  24  norm          .10000E-03    17.847        .42529E-06** at limit **
  25  Prefactor     69.840        73.149        .22749E-05    .24572E-03
  26  Normalizat    .15659        .56557       -.42930E-05    .24387E-05
  27  Prefactor     1.2821        .20877       -.78048E-06    .11568E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110448
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.49867
  Prefactor  = 0.000102953
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0165522
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  Prefactor  = 0.000100842
  Prefactor  = 41.268
  Prefactor  = 0.000101275
  norm       = 11.3197
  Prefactor  = 0.000101288
  norm       = 3.1219
  Prefactor  = 0.0001
  norm       = 0.000100661
  Prefactor  = 0.000108561
  norm       = 1.98494
  Prefactor  = 0.000105763
  norm       = 7.30652
  norm       = 0.000100001
  Prefactor  = 69.8402
  Normalizat = 0.156587
  Prefactor  = 1.28206
 **********
 **   18 **HESSE 
 **********

 FCN=   2005.835     FROM HESSE     STATUS=NOT POSDEF   540 CALLS     2955 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11045E-03    126.96        .10322E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    56.372        .10422E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.9082        .10318E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.564        .99877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.4987        22.225        .43317E-02   -1.5239    
   6  Prefactor     .10295E-03    118.89        .90971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    29.096        .91831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    448.75        .12674E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .16552E-01    1.8548        .36400E-01   -1.5682    
  10  Prefactor     .10000E-03    2.5033        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10004E-03    74.673        .94276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10084E-03    50.295        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.268        106.59        .15528E-02   -1.4422    
  14  Prefactor     .10127E-03    6859.6        .62596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.320        19.902        .30081E-02   -1.5035    
  16  Prefactor     .10129E-03    177.76        .11439E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.1219        17.400        .57410E-02   -1.5355    
  18  Prefactor     .10000E-03    27.034        .10622E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10066E-03    70.376        .10273E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10856E-03    106.81        .90826E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9849        5.9532        .73487E-02   -1.5426    
  22  Prefactor     .10576E-03    146.13        .93840E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.3065        5.9460        .37084E-02   -1.5167    
  24  norm          .10000E-03    17.165        .93980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     69.840        71.824        .12053E-02   -1.4035    
  26  Normalizat    .15659        9.9109        .25192       -1.3279    
  27  Prefactor     1.2821        1.2715        .32930E-01   -.83842    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.38599e-07
Minuit parameter uncertainties:
  1  0.0729974
  2  0.00188719
  3  1.03289e-05
  4  0.000197627
  5  22.1235
  6  0.0375514
  7  0.00010562
  8  0.000625249
  9  0.349387
  10  8.65959e-07
  11  0.00330298
  12  0.0130275
  13  107.091
  14  0.148116
  15  19.9136
  16  0.0303578
  17  14.747
  18  5.06484e-05
  19  0.0136617
  20  0.0605856
  21  5.95495
  22  0.0581804
  23  5.94644
  24  0.000254066
  25  71.9135
  26  4.14719
  27  1.30435
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2005.83471434

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  3.303e-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:  1.282e+00  1.304e+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.566e-01  4.147e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/456948/likelihoodResults_612835201_613094401_4FGL_J0427.3+0504_daily_bin1441.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) = 2005.83477553
delta logL = -6.11954847045e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2005.83471508
delta logL = -7.42755673855e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10582E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4950       1.0000          .0000       10.000    
     3 'Normalizat'    .15659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2821       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2005.835     FROM MIGRAD    STATUS=FAILED        94 CALLS      285 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14008E-03    209.82        .18142E-01** at limit **
   2  Index         2.9398        6.2670        .50000        .49282E-05
   3  Normalizat    .15659        .23592E-01    .10495E-01    .75077E-05
   4  Prefactor     1.2821        .93100E-02    .15801E-03    .24283E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2005.835     FROM SIMPLEX   STATUS=PROGRESS     115 CALLS      400 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10553E-03    209.82        .10986E-02** at limit **
   2  Index         2.9380        6.2670        .55513E-03    .49282E-05
   3  Normalizat    .15657        .23592E-01    .17349E-04    .75077E-05
   4  Prefactor     1.2821        .93100E-02    .23601E-05    .24283E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2005.835     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      435 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10931E-03    175.66        .36285E-01** at limit **
   2  Index         2.6332        6.4560        .50000        .21895E-05
   3  Normalizat    .15657        .18503E-01    .41979E-03   -.34161E-03
   4  Prefactor     1.2821        .73003E-02    .63204E-05   -.23909E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109313
  Index      = 2.63318
  Normalizat = 0.156571
  Prefactor  = 1.28205
 **********
 **   18 **HESSE 
 **********

 FCN=   2005.835     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      464 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10931E-03    1394.7        .43066E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6332        6.2258        .50000       -.49311    
   3  Normalizat    .15657        .53702E-01    .83957E-04   -1.3279    
   4  Prefactor     1.2821        .21193E-01    .12641E-05   -.83842    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.49046e-08
Minuit parameter uncertainties:
  1  0.2336
  2  1857.66
  3  0.0537203
  4  0.0211932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456948': 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) = 2005.83471426
delta logL = 8.00953330327e-08

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.093e-04  2.336e-01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.633e+00  1.858e+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.282e+00  2.119e-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.566e-01  5.372e-02  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/456948/cmap_HighResolution_612835201_613094401_4FGL_J0427.3+0504_daily_bin1441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-02', job_status='DONE', photon_flux_upper_limit='8.01e-07', time_completed='2021-08-20 16:13:02.672477', job_id='456948', GAL2='1.28', fit_tolerance='1e-08', EG2='0.16', EG='0.16', time_epoch_completed='1629501182.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.28', dlogl='8.01e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1441' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:13:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 456948: <4FGL_J0427.3+0504_daily_bin1441> in cluster <slac> Done

Job <4FGL_J0427.3+0504_daily_bin1441> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 16:00:47 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:00:48 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:00:48 2021
Terminated at Fri Aug 20 16:13:04 2021
Results reported at Fri Aug 20 16:13:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1441 66.8294 5.08 612835201 613094401 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 :                                   551.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             203.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            737 sec.

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

