/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 5 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 = 7589
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0427.3+0504_daily_bin437
RA = 66.8294, Dec = 5.08
tmin = 352598401, tmax = 352857601
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='448023', job_status='RUN', time_executed='2021-08-20 15:31:51.497393', time_epoch_executed='1629498711.5' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448023

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448023/ft1_4FGL_J0427.3+0504_daily_bin437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448023/ft2_4FGL_J0427.3+0504_daily_bin437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448023/ft1_4FGL_J0427.3+0504_daily_bin437.fits outfile=/scratch/kocevski/448023/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin437.fits ra=66.8294 dec=5.08 rad=12.0 tmin=352598401.0 tmax=352857601.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.82
user 3.88
sys 3.88

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448023/ft2_4FGL_J0427.3+0504_daily_bin437.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/448023/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin437.fits evtable="EVENTS" outfile="/scratch/kocevski/448023/ft1_filtered_4FGL_J0427.3+0504_daily_bin437.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 4.17
user 0.32
sys 3.81

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448023/ft1_filtered_4FGL_J0427.3+0504_daily_bin437.fits" evtable="EVENTS" scfile=/scratch/kocevski/448023/ft2_4FGL_J0427.3+0504_daily_bin437.fits sctable="SC_DATA" outfile=/scratch/kocevski/448023/ltcube_352598401_352857601_4FGL_J0427.3+0504_daily_bin437.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/448023/ft2_4FGL_J0427.3+0504_daily_bin437.fits
.....................!
real 15.88
user 11.38
sys 4.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448023/ft1_filtered_4FGL_J0427.3+0504_daily_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/448023/ft2_4FGL_J0427.3+0504_daily_bin437.fits sctable="SC_DATA" expcube=/scratch/kocevski/448023/ltcube_352598401_352857601_4FGL_J0427.3+0504_daily_bin437.fits outfile=/scratch/kocevski/448023/expmap_352598401_352857601_4FGL_J0427.3+0504_daily_bin437.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/448023/ltcube_352598401_352857601_4FGL_J0427.3+0504_daily_bin437.fits
.....................!
real 194.44
user 184.71
sys 9.30

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/448023/ft1_filtered_4FGL_J0427.3+0504_daily_bin437.fits scfile=/scratch/kocevski/448023/ft2_4FGL_J0427.3+0504_daily_bin437.fits outfile=/scratch/kocevski/448023/cmap_352598401_352857601_4FGL_J0427.3+0504_daily_bin437.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.16
user 0.36
sys 3.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448023/ft1_filtered_4FGL_J0427.3+0504_daily_bin437.fits scfile=/scratch/kocevski/448023/ft2_4FGL_J0427.3+0504_daily_bin437.fits outfile=/scratch/kocevski/448023/cmap_HighResolution_352598401_352857601_4FGL_J0427.3+0504_daily_bin437.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.12
user 0.37
sys 3.74

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14841       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10227E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .36189E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.717       1.0000         .10000E-03   10000.    
     8 'norm      '    35.391       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6445       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .65110       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3183       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .47643E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.9672       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .44442E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.7840       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.736       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0798       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10617E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .14672       1.0000         .10000E-03   10000.    
    24 'norm      '    .23126E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .76015       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0623       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=   7422.254     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     4202 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27241        6302.9        .56145E-04    .10304E-04
   2  Prefactor     .10000E-03    4.7390       -.57610E-07** at limit **
   3  norm          .10000E-03    9.2034        .17198E-06** at limit **
   4  Prefactor     .10000E-03    59.814        .15185E-05** at limit **
   5  norm          .10000E-03    8.9261       -.17368E-05** at limit **
   6  Prefactor     .10000E-03    22.126       -.51443E-06** at limit **
   7  norm          11.720        11.426        .19418E-06   -.32741E-05
   8  norm          35.372        34.141       -.37899E-05   -.11818E-03
   9  norm          1.6453        1.5608        .62135E-07   -.29910E-03
  10  Prefactor     .65298        2.3194        .35709E-06    .71686E-05
  11  Prefactor     4.3155        25.673        .81418E-06   -.52339E-04
  12  Prefactor     .10000E-03    30.204       -.21161E-05** at limit **
  13  Prefactor     .10000E-03    6.1650       -.33556E-06** at limit **
  14  Prefactor     .10000E-03    10.949       -.45247E-06** at limit **
  15  norm          .39306E-01    2.6022        .10424E-05   -.70804E-03
  16  Prefactor     .10000E-03    21.663       -.50077E-07** at limit **
  17  norm          5.9670        2.7698       -.87096E-07   -.25449E-03
  18  Prefactor     .10008E-03    9.0804        .12336E-05** at limit **
  19  norm          7.7843        2.9625       -.34598E-07   -.71735E-03
  20  Prefactor     28.735        39.565       -.65965E-06   -.74403E-04
  21  norm          1.0799        1.5967        .46596E-06    .51680E-03
  22  Prefactor     .10000E-03    72.427        .32013E-05** at limit **
  23  norm          .14496        .55384       -.37553E-07   -.79077E-04
  24  norm          .10001E-03    18.959       -.31117E-05** at limit **
  25  Prefactor     .10000E-03    2.3720        .20366E-06** at limit **
  26  Normalizat    .76020        .29379       -.25040E-05   -.13185E-03
  27  Prefactor     1.0623        .85702E-01    .26829E-06   -.31866E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.272413
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 11.7202
  norm       = 35.3718
  norm       = 1.64525
  Prefactor  = 0.652984
  Prefactor  = 4.31553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0393059
  Prefactor  = 0.0001
  norm       = 5.96701
  Prefactor  = 0.000100076
  norm       = 7.78432
  Prefactor  = 28.7347
  norm       = 1.07993
  Prefactor  = 0.000100002
  norm       = 0.144959
  norm       = 0.000100006
  Prefactor  = 0.0001
  Normalizat = 0.760203
  Prefactor  = 1.0623
 **********
 **   18 **HESSE 
 **********

 FCN=   7422.254     FROM HESSE     STATUS=OK           504 CALLS     4706 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27241        52.941        .16865       -1.5604    
   2  Prefactor     .10000E-03    4.7420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.2044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    60.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.9587        .32067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.720        11.417        .11703E-03   -1.5023    
   8  norm          35.372        32.940        .67364E-04   -1.4518    
   9  norm          1.6453        1.4713        .91194E-04   -1.5451    
  10  Prefactor     .65298        2.2104        .20363E-03   -1.5546    
  11  Prefactor     4.3155        27.927        .19385E-03   -1.5292    
  12  Prefactor     .10000E-03    30.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.2150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .39306E-01    32.678        .17452E-02   -1.5668    
  16  Prefactor     .10000E-03    21.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.9670        2.7685        .93068E-04   -1.5219    
  18  Prefactor     .10008E-03    18.980        .38471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.7843        2.9393        .85626E-04   -1.5150    
  20  Prefactor     28.735        38.449        .74737E-04   -1.4635    
  21  norm          1.0799        1.5500        .15096E-02   -1.5500    
  22  Prefactor     .10000E-03    71.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .14496        .65589        .10094E-02   -1.5632    
  24  norm          .10001E-03    22.023        .24844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.4266        .12954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .76020        .30819        .51174E-03   -1.0156    
  27  Prefactor     1.0623        .91920E-01    .14470E-03   -.90681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48311e-08
Minuit parameter uncertainties:
  1  7.60062
  2  1.31351e-06
  3  6.88465e-06
  4  9.32384e-06
  5  0.00031373
  6  1.77817e-05
  7  11.4188
  8  32.9565
  9  1.47132
  10  2.21069
  11  21.9709
  12  1.82359e-05
  13  2.00613e-05
  14  2.76937e-07
  15  2.26501
  16  2.05181e-05
  17  2.76853
  18  0.00240121
  19  2.93932
  20  38.4825
  21  1.55002
  22  0.000782309
  23  0.616492
  24  0.00071468
  25  1.87291e-07
  26  0.3089
  27  0.0919336
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  4.316e+00  2.197e+01  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.062e+00  9.193e-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:  7.602e-01  3.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/448023/likelihoodResults_352598401_352857601_4FGL_J0427.3+0504_daily_bin437.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) = 7422.11115744
delta logL = 0.143212931918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7422.10882716
delta logL = 0.145543204078

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.572       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1261       1.0000          .0000       10.000    
     3 'Normalizat'    .76271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0585       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=   7422.109     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      248 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.474        44.772        .27181E-02    .13625E-03
   2  Index         2.1192        1.2205        .25110       -.10305E-03
   3  Normalizat    .76302        .25430        .11517        .48345E-03
   4  Prefactor     1.0584        .85170E-01    .39437E-01    .12748E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.474
  Index      = 2.11916
  Normalizat = 0.763017
  Prefactor  = 1.05839
 **********
 **   18 **HESSE 
 **********

 FCN=   7422.109     FROM HESSE     STATUS=OK            31 CALLS      279 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.474        24.823        .10872E-03   -1.4974    
   2  Index         2.1192        .92954        .14076E-01   -.61403    
   3  Normalizat    .76302        .27183        .51081E-03   -1.0146    
   4  Prefactor     1.0584        .90571E-01    .14490E-03   -.90808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03171e-09
Minuit parameter uncertainties:
  1  24.8417
  2  0.937744
  3  0.272309
  4  0.0905842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448023': 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) = 7422.10879287
delta logL = 0.145577494968

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.347e+01  2.484e+01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.119e+00  9.377e-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:  1.058e+00  9.058e-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:  7.630e-01  2.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 66.829 5.080

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/448023/cmap_HighResolution_352598401_352857601_4FGL_J0427.3+0504_daily_bin437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', job_status='DONE', photon_flux_upper_limit='1.62e-07', time_completed='2021-08-20 15:46:30.463536', job_id='448023', GAL2='1.06', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1629499590.46', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.46e-01', ts2='0.35', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='437' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 15:46:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 448023: <4FGL_J0427.3+0504_daily_bin437> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin437 66.8294 5.08 352598401 352857601 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 :                                   932.53 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             355.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            954 sec.

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

