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


Performing analysis on: 4FGL_J0427.3+0504_daily_bin1445
RA = 66.8294, Dec = 5.08
tmin = 613872001, tmax = 614131201
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='456954', job_status='RUN', time_executed='2021-08-20 16:04:02.744321', time_epoch_executed='1629500642.74' WHERE source_name='4FGL J0427.3+0504' and cadence='daily' and bin_id='1445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456954

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456954/ft1_4FGL_J0427.3+0504_daily_bin1445.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456954/ft2_4FGL_J0427.3+0504_daily_bin1445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456954/ft1_4FGL_J0427.3+0504_daily_bin1445.fits outfile=/scratch/kocevski/456954/ft1_filteredMKT_4FGL_J0427.3+0504_daily_bin1445.fits ra=66.8294 dec=5.08 rad=12.0 tmin=613872001.0 tmax=614131201.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 2.24
user 2.06
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456954/ft1_filtered_4FGL_J0427.3+0504_daily_bin1445.fits" evtable="EVENTS" scfile=/scratch/kocevski/456954/ft2_4FGL_J0427.3+0504_daily_bin1445.fits sctable="SC_DATA" outfile=/scratch/kocevski/456954/ltcube_613872001_614131201_4FGL_J0427.3+0504_daily_bin1445.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/456954/ft2_4FGL_J0427.3+0504_daily_bin1445.fits
.....................!
real 12.41
user 12.07
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456954/ft1_filtered_4FGL_J0427.3+0504_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/456954/ft2_4FGL_J0427.3+0504_daily_bin1445.fits sctable="SC_DATA" expcube=/scratch/kocevski/456954/ltcube_613872001_614131201_4FGL_J0427.3+0504_daily_bin1445.fits outfile=/scratch/kocevski/456954/expmap_613872001_614131201_4FGL_J0427.3+0504_daily_bin1445.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/456954/ltcube_613872001_614131201_4FGL_J0427.3+0504_daily_bin1445.fits
.....................!
real 189.92
user 185.00
sys 4.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/456954/ft1_filtered_4FGL_J0427.3+0504_daily_bin1445.fits scfile=/scratch/kocevski/456954/ft2_4FGL_J0427.3+0504_daily_bin1445.fits outfile=/scratch/kocevski/456954/cmap_613872001_614131201_4FGL_J0427.3+0504_daily_bin1445.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 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456954/ft1_filtered_4FGL_J0427.3+0504_daily_bin1445.fits scfile=/scratch/kocevski/456954/ft2_4FGL_J0427.3+0504_daily_bin1445.fits outfile=/scratch/kocevski/456954/cmap_HighResolution_613872001_614131201_4FGL_J0427.3+0504_daily_bin1445.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 0.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    37.488       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.3529       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.676       1.0000         .10000E-03   10000.    
     8 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .23777       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.924       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.318       1.0000         .10000E-03   10000.    
    14 'Prefactor '    67.440       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0192       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9408       1.0000         .10000E-03   10000.    
    19 'norm      '    10.045       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.7437       1.0000         .10000E-03   10000.    
    21 'norm      '    5.7501       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12209E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .11014       1.0000         .10000E-03   10000.    
    24 'norm      '    5.6309       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .69719       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .88258       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=   4174.655     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3330 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.325        .55616E-05** at limit **
   2  Prefactor     .10000E-03    19.398       -.92276E-06** at limit **
   3  norm          37.490        24.656        .16781E-06    .14651E-04
   4  Prefactor     .10000E-03    22.264        .12307E-05** at limit **
   5  norm          5.3556        7.3663       -.22072E-05    .88042E-04
   6  Prefactor     .10000E-03    25.715       -.75242E-06** at limit **
   7  norm          13.676        21.968        .61473E-06    .33276E-04
   8  norm          .10000E-03    84.124        .26092E-05** at limit **
   9  norm          .23368        2.2639        .18415E-05    .52284E-03
  10  Prefactor     .10000E-03    1.0566        .41483E-06** at limit **
  11  Prefactor     .10000E-03    20.588        .51809E-06** at limit **
  12  Prefactor     12.969        64.436       -.79994E-05    .17272E-04
  13  Prefactor     32.324        17.120       -.95165E-06    .96184E-04
  14  Prefactor     67.448        98.040        .17425E-05    .46716E-05
  15  norm          2.0188        4.6549        .52436E-06   -.55360E-04
  16  Prefactor     .10000E-03    46.889       -.24205E-05** at limit **
  17  norm          .10000E-03    1.0857        .18641E-06** at limit **
  18  Prefactor     6.9386        19.158       -.10731E-05   -.50768E-04
  19  norm          10.044        7.8659        .28322E-06   -.71176E-05
  20  Prefactor     9.7923        80.566        .11234E-04    .13303E-05
  21  norm          5.7503        2.8557        .12452E-06   -.36870E-04
  22  Prefactor     .10001E-03    97.263       -.12943E-05** at limit **
  23  norm          .11007        .93168        .62752E-06   -.12148E-02
  24  norm          5.6324        7.0060       -.12869E-05   -.13820E-03
  25  Prefactor     .10000E-03    9.6216        .29824E-06** at limit **
  26  Normalizat    .69692        .37616       -.76265E-05   -.19921E-05
  27  Prefactor     .88269        .11723        .51195E-06   -.16073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 37.49
  Prefactor  = 0.0001
  norm       = 5.35558
  Prefactor  = 0.0001
  norm       = 13.6756
  norm       = 0.0001
  norm       = 0.233679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9686
  Prefactor  = 32.3238
  Prefactor  = 67.4481
  norm       = 2.01882
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.93856
  norm       = 10.0436
  Prefactor  = 9.7923
  norm       = 5.75025
  Prefactor  = 0.000100009
  norm       = 0.110069
  norm       = 5.63242
  Prefactor  = 0.0001
  Normalizat = 0.69692
  Prefactor  = 0.882687
 **********
 **   18 **HESSE 
 **********

 FCN=   4174.655     FROM HESSE     STATUS=OK           492 CALLS     3822 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          37.490        24.659        .65459E-04   -1.4483    
   4  Prefactor     .10000E-03    22.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.3556        7.3455        .17370E-03   -1.5245    
   6  Prefactor     .10000E-03    25.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.676        21.965        .10831E-03   -1.4968    
   8  norm          .10000E-03    85.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .23368        3.6979        .13578E-02   -1.5611    
  10  Prefactor     .10000E-03    1.0707        .64626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.969        68.244        .11142E-03   -1.4988    
  13  Prefactor     32.324        17.185        .70484E-04   -1.4570    
  14  Prefactor     67.448        98.369        .48874E-04   -1.4064    
  15  norm          2.0188        4.5861        .19056E-03   -1.5424    
  16  Prefactor     .10000E-03    46.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.1100        .65757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.9386        18.904        .15228E-03   -1.5181    
  19  norm          10.044        7.8635        .12643E-03   -1.5074    
  20  Prefactor     9.7923        79.930        .12838E-03   -1.5082    
  21  norm          5.7503        2.8554        .73340E-04   -1.5228    
  22  Prefactor     .10001E-03    98.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .11007        1.5409        .93242E-03   -1.5642    
  24  norm          5.6324        6.9795        .14827E-03   -1.5233    
  25  Prefactor     .10000E-03    9.8018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .69692        .39894        .48487E-03   -1.0401    
  27  Prefactor     .88269        .12753        .15137E-03   -.96749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22641e-09
Minuit parameter uncertainties:
  1  5.10759e-05
  2  6.10544e-05
  3  24.6653
  4  1.72201e-05
  5  7.3467
  6  5.19028e-05
  7  21.9778
  8  0.000123879
  9  1.85891
  10  2.90444e-06
  11  2.18288e-05
  12  59.6055
  13  17.1877
  14  98.607
  15  4.58691
  16  6.05882e-05
  17  5.57642e-06
  18  18.9201
  19  7.86427
  20  56.0556
  21  2.85545
  22  0.00193323
  23  0.823306
  24  6.98053
  25  2.99631e-05
  26  0.400613
  27  0.127571
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  2.183e-05  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  8.827e-01  1.276e-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:  6.969e-01  4.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/456954/likelihoodResults_613872001_614131201_4FGL_J0427.3+0504_daily_bin1445.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) = 4174.65554459
delta logL = -0.000231218269619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4174.65531406
delta logL = -6.86293788021e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.6539       1.0000          .0000       10.000    
     3 'Normalizat'    .69692       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88269       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=   4174.655     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      296 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    85.095        .18142E-01** at limit **
   2  Index         2.9429        5.5815        .50000       -.24784E-08
   3  Normalizat    .69692        .17732E-01    .48489E-03   -.15005E-05
   4  Prefactor     .88269        .62358E-02    .15137E-03    .35299E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.94292
  Normalizat = 0.696918
  Prefactor  = 0.882688
 **********
 **   18 **HESSE 
 **********

 FCN=   4174.655     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      325 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    690.46        .28544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9429        5.6977        .50000       -.42401    
   3  Normalizat    .69692        .52451E-01    .19395E-04   -1.0401    
   4  Prefactor     .88269        .18447E-01    .60549E-05   -.96749    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.31687e-10
Minuit parameter uncertainties:
  1  0.00106968
  2  2216.59
  3  0.0524548
  4  0.0184473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456954': 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) = 4174.65531337
delta logL = 8.11724021332e-09

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  1.070e-03  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.943e+00  2.217e+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:  8.827e-01  1.845e-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:  6.969e-01  5.245e-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/456954/cmap_HighResolution_613872001_614131201_4FGL_J0427.3+0504_daily_bin1445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-02', job_status='DONE', photon_flux_upper_limit='2.06e-07', time_completed='2021-08-20 16:13:11.408695', job_id='456954', GAL2='0.88', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1629501191.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='8.12e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1445' AND source_name='4FGL J0427.3+0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:13:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 456954: <4FGL_J0427.3+0504_daily_bin1445> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_daily_bin1445 66.8294 5.08 613872001 614131201 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 :                                   545.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            744 sec.

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

