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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1390
RA = 66.8294, Dec = 5.08
tmin = 599616001, tmax = 599875201
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='456865', job_status='RUN', time_executed='2021-08-20 16:04:20.564180', time_epoch_executed='1629500660.56' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456865

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456865/ft1_4FGL_J0427.3+0504_daily_bin1390.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456865/ft2_4FGL_J0427.3+0504_daily_bin1390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456865/ft1_4FGL_J0427.3+0504_daily_bin1390.fits outfile=/scratch/kocevski/456865/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1390.fits ra=66.8294 dec=5.08 rad=12.0 tmin=599616001.0 tmax=599875201.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 10.91
user 2.35
sys 8.49

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456865/ft1_filtered_4FGL_J0427.3+0504_daily_bin1390.fits" evtable="EVENTS" scfile=/scratch/kocevski/456865/ft2_4FGL_J0427.3+0504_daily_bin1390.fits sctable="SC_DATA" outfile=/scratch/kocevski/456865/ltcube_599616001_599875201_4FGL_J0427.3+0504_daily_bin1390.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/456865/ft2_4FGL_J0427.3+0504_daily_bin1390.fits
.....................!
real 21.63
user 11.91
sys 9.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456865/ft1_filtered_4FGL_J0427.3+0504_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/456865/ft2_4FGL_J0427.3+0504_daily_bin1390.fits sctable="SC_DATA" expcube=/scratch/kocevski/456865/ltcube_599616001_599875201_4FGL_J0427.3+0504_daily_bin1390.fits outfile=/scratch/kocevski/456865/expmap_599616001_599875201_4FGL_J0427.3+0504_daily_bin1390.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/456865/ltcube_599616001_599875201_4FGL_J0427.3+0504_daily_bin1390.fits
.....................!
real 203.47
user 187.41
sys 15.42

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/456865/ft1_filtered_4FGL_J0427.3+0504_daily_bin1390.fits scfile=/scratch/kocevski/456865/ft2_4FGL_J0427.3+0504_daily_bin1390.fits outfile=/scratch/kocevski/456865/cmap_599616001_599875201_4FGL_J0427.3+0504_daily_bin1390.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 8.69
user 0.38
sys 8.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456865/ft1_filtered_4FGL_J0427.3+0504_daily_bin1390.fits scfile=/scratch/kocevski/456865/ft2_4FGL_J0427.3+0504_daily_bin1390.fits outfile=/scratch/kocevski/456865/cmap_HighResolution_599616001_599875201_4FGL_J0427.3+0504_daily_bin1390.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 8.67
user 0.38
sys 8.26

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14955E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16699E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .18167E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.078       1.0000         .10000E-03   10000.    
     5 'norm      '    4.9812       1.0000         .10000E-03   10000.    
     6 'Prefactor '    50.741       1.0000         .10000E-03   10000.    
     7 'norm      '    .84582E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .29002E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .11813E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1289       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .54110E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28142E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.605       1.0000         .10000E-03   10000.    
    15 'norm      '    2.4994       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13246E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7753       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8857       1.0000         .10000E-03   10000.    
    19 'norm      '    .19117E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11331E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .30854E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .32873E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .26188E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .31920E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.4274       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=   3445.020     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     2356 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10244E-03    42.534       -.82162E-05** at limit **
   2  Prefactor     .10307E-03    4.1708        .53395E-05** at limit **
   3  norm          .10000E-03    11.341        .41503E-05** at limit **
   4  Prefactor     27.397        42.349       -.24571E-05   -.82889E-03
   5  norm          5.0359        5.8711        .47544E-06   -.46232E-04
   6  Prefactor     52.036        60.049       -.40063E-05   -.78095E-03
   7  norm          .10000E-03    6.7105       -.23210E-05** at limit **
   8  norm          .10144E-03    17.580       -.44231E-05** at limit **
   9  norm          .10000E-03    1.5947        .36746E-05** at limit **
  10  Prefactor     2.1337        2.1573        .81249E-06   -.17132E-03
  11  Prefactor     .10030E-03    23.924        .20297E-04** at limit **
  12  Prefactor     .10149E-03    3.3494       -.16838E-05** at limit **
  13  Prefactor     .10000E-03    4.8692        .14285E-04** at limit **
  14  Prefactor     46.501        4.8231        .38882E-06   -.17262E-02
  15  norm          2.4912        5.4625       -.43872E-06   -.12368E-03
  16  Prefactor     .10018E-03    79.339       -.67933E-04** at limit **
  17  norm          1.8220        4.8104        .26511E-05   -.10933E-03
  18  Prefactor     1.8330        11.377       -.25726E-04    .16324E-02
  19  norm          .10000E-03    8.0982       -.10254E-05** at limit **
  20  Prefactor     .10272E-03    6.3347       -.25429E-05** at limit **
  21  norm          .10218E-03    1.8826       -.39180E-06** at limit **
  22  Prefactor     .10093E-03    16.432       -.46565E-05** at limit **
  23  norm          .10000E-03    .70803       -.20702E-05** at limit **
  24  norm          .10000E-03    5.3247       -.72737E-06** at limit **
  25  Prefactor     .10000E-03    17.936       -.30973E-05** at limit **
  26  Normalizat    .10000E-01    .56864       -.17684E-04** at limit **
  27  Prefactor     1.4271        .93712E-01    .68743E-05   -.29864E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102435
  Prefactor  = 0.000103073
  norm       = 0.0001
  Prefactor  = 27.3972
  norm       = 5.03588
  Prefactor  = 52.0363
  norm       = 0.0001
  norm       = 0.000101437
  norm       = 0.0001
  Prefactor  = 2.13367
  Prefactor  = 0.000100304
  Prefactor  = 0.000101492
  Prefactor  = 0.0001
  Prefactor  = 46.5014
  norm       = 2.49116
  Prefactor  = 0.000100182
  norm       = 1.82205
  Prefactor  = 1.83302
  norm       = 0.0001
  Prefactor  = 0.000102718
  norm       = 0.000102177
  Prefactor  = 0.000100931
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.42707
 **********
 **   18 **HESSE 
 **********

 FCN=   3445.020     FROM HESSE     STATUS=OK           546 CALLS     2902 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10244E-03    50.240        .10237E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10307E-03    33.021        .10192E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.343        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.397        42.541        .18902E-02   -1.4661    
   5  norm          5.0359        5.9142        .45047E-02   -1.5259    
   6  Prefactor     52.036        60.529        .14075E-02   -1.4264    
   7  norm          .10000E-03    6.7076        .10434E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10144E-03    37.120        .99324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.0217        .31674E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1337        2.1621        .70646E-02   -1.5416    
  11  Prefactor     .10030E-03    25.962        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10149E-03    46.272        .10559E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.8657        .10708E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     46.501        57.071        .14683E-02   -1.4343    
  15  norm          2.4912        5.6921        .64626E-02   -1.5392    
  16  Prefactor     .10018E-03    99.321        .10283E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8220        4.9480        .78551E-02   -1.5438    
  18  Prefactor     1.8330        58.283        .75772E-02   -1.5437    
  19  norm          .10000E-03    7.9145        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10272E-03    43.663        .10339E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10218E-03    3.8567        .70425E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10093E-03    38.032        .98635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .70501        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.3197        .10723E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.817        .10682E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .30095        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.4271        .11519        .30693E-01   -.79603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12618e-07
Minuit parameter uncertainties:
  1  0.0221418
  2  0.020158
  3  4.36152e-05
  4  42.5885
  5  5.91491
  6  60.6004
  7  1.98578e-05
  8  0.0146137
  9  1.22047e-05
  10  2.16214
  11  0.00561832
  12  0.016631
  13  9.49497e-05
  14  57.1384
  15  5.69337
  16  0.00852179
  17  4.94907
  18  20.6937
  19  6.84882e-06
  20  0.0218056
  21  0.00579621
  22  0.0119098
  23  5.40797e-06
  24  2.94558e-06
  25  4.98924e-05
  26  7.98583e-07
  27  0.115215
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.003e-04  5.618e-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.427e+00  1.152e-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.000e-02  7.986e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/456865/likelihoodResults_599616001_599875201_4FGL_J0427.3+0504_daily_bin1390.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) = 3445.02047597
delta logL = -0.000191002407519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3445.02028565
delta logL = -6.75388037052e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.8107       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4270       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=   3445.020     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      274 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10061E-03    1572.7        .18142E-02** at limit **
   2  Index         3.6663        6.3498        .50000        .88922E-06
   3  Normalizat    .10000E-01    .79761E-01    .15216E-01** at limit **
   4  Prefactor     1.4271        .32722E-01    .14389E-03   -.49053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100614
  Index      = 3.66634
  Normalizat = 0.01
  Prefactor  = 1.42707
 **********
 **   18 **HESSE 
 **********

 FCN=   3445.020     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10061E-03    7300.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.6663        5.3079        .50000       -.27000    
   3  Normalizat    .10000E-01    .39237        .30433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4271        .72822E-01    .28778E-04   -.79603    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.43016e-08
Minuit parameter uncertainties:
  1  0.11678
  2  12335
  3  8.04556e-06
  4  0.0728271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456865': 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) = 3445.02028489
delta logL = 8.18508851808e-08

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.006e-04  1.168e-01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  3.666e+00  1.233e+04  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.427e+00  7.283e-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  8.046e-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/456865/cmap_HighResolution_599616001_599875201_4FGL_J0427.3+0504_daily_bin1390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-02', job_status='DONE', photon_flux_upper_limit='2.91e-07', time_completed='2021-08-20 16:14:24.124514', job_id='456865', GAL2='1.43', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629501264.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='8.19e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1390' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:14:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 456865: <4FGL_J0427.3+0504_daily_bin1390> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1390 66.8294 5.08 599616001 599875201 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 :                                   728.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             227.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            826 sec.

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

