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


Performing analysis on: 4FGL_J0239.7+0415_daily_bin792
RA = 39.9403, Dec = 4.2643
tmin = 444614401, tmax = 444873601
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='636905', job_status='RUN', time_executed='2021-08-16 11:11:28.098909', time_epoch_executed='1629137488.1' WHERE source_name='4FGL J0239.7+0415' and cadence='daily' and bin_id='792'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636905

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636905/ft1_4FGL_J0239.7+0415_daily_bin792.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636905/ft2_4FGL_J0239.7+0415_daily_bin792.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636905/ft1_4FGL_J0239.7+0415_daily_bin792.fits outfile=/scratch/kocevski/636905/ft1_filteredMKT_4FGL_J0239.7+0415_daily_bin792.fits ra=39.9403 dec=4.2643 rad=12.0 tmin=444614401.0 tmax=444873601.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 4.08
user 2.63
sys 1.13

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/636905/ft2_4FGL_J0239.7+0415_daily_bin792.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/636905/ft2_4FGL_J0239.7+0415_daily_bin792.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/636905/ft1_filteredMKT_4FGL_J0239.7+0415_daily_bin792.fits evtable="EVENTS" outfile="/scratch/kocevski/636905/ft1_filtered_4FGL_J0239.7+0415_daily_bin792.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 1.46
user 0.26
sys 1.08

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636905/ft1_filtered_4FGL_J0239.7+0415_daily_bin792.fits" evtable="EVENTS" scfile=/scratch/kocevski/636905/ft2_4FGL_J0239.7+0415_daily_bin792.fits sctable="SC_DATA" outfile=/scratch/kocevski/636905/ltcube_444614401_444873601_4FGL_J0239.7+0415_daily_bin792.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/636905/ft2_4FGL_J0239.7+0415_daily_bin792.fits
.....................!
real 12.36
user 10.88
sys 1.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636905/ft1_filtered_4FGL_J0239.7+0415_daily_bin792.fits evtable="EVENTS" scfile=/scratch/kocevski/636905/ft2_4FGL_J0239.7+0415_daily_bin792.fits sctable="SC_DATA" expcube=/scratch/kocevski/636905/ltcube_444614401_444873601_4FGL_J0239.7+0415_daily_bin792.fits outfile=/scratch/kocevski/636905/expmap_444614401_444873601_4FGL_J0239.7+0415_daily_bin792.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/636905/ltcube_444614401_444873601_4FGL_J0239.7+0415_daily_bin792.fits
.....................!
real 156.06
user 149.30
sys 5.38

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J0239.7+0415 @ 39.9403 4.2643

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/636905/ft1_filtered_4FGL_J0239.7+0415_daily_bin792.fits scfile=/scratch/kocevski/636905/ft2_4FGL_J0239.7+0415_daily_bin792.fits outfile=/scratch/kocevski/636905/cmap_444614401_444873601_4FGL_J0239.7+0415_daily_bin792.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=39.9403 yref=4.2643 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 1.48
user 0.32
sys 0.98

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/636905/ft1_filtered_4FGL_J0239.7+0415_daily_bin792.fits scfile=/scratch/kocevski/636905/ft2_4FGL_J0239.7+0415_daily_bin792.fits outfile=/scratch/kocevski/636905/cmap_HighResolution_444614401_444873601_4FGL_J0239.7+0415_daily_bin792.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=39.9403 yref=4.2643 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 1.50
user 0.34
sys 0.98

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/636905/ft1_filtered_4FGL_J0239.7+0415_daily_bin792.fits evtable="EVENTS" scfile=/scratch/kocevski/636905/ft2_4FGL_J0239.7+0415_daily_bin792.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/636905/Model_4FGL_J0239.7+0415_daily_bin792.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/636905/ft1_filtered_4FGL_J0239.7+0415_daily_bin792.fits.....................!
real 70.59
user 65.05
sys 2.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/636905/ft1_filtered_4FGL_J0239.7+0415_daily_bin792.fits', '/scratch/kocevski/636905/ft2_4FGL_J0239.7+0415_daily_bin792.fits', expMap='/scratch/kocevski/636905/expmap_444614401_444873601_4FGL_J0239.7+0415_daily_bin792.fits', expCube='/scratch/kocevski/636905/ltcube_444614401_444873601_4FGL_J0239.7+0415_daily_bin792.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/636905/Model_4FGL_J0239.7+0415_daily_bin792.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0239.7+0415'

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  7.975e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
278        Index:  2.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  4.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/636905/ft1_filtered_4FGL_J0239.7+0415_daily_bin792.fits
Spacecraft file(s): /scratch/kocevski/636905/ft2_4FGL_J0239.7+0415_daily_bin792.fits
Exposure map: /scratch/kocevski/636905/expmap_444614401_444873601_4FGL_J0239.7+0415_daily_bin792.fits
Exposure cube: /scratch/kocevski/636905/ltcube_444614401_444873601_4FGL_J0239.7+0415_daily_bin792.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/636905/Model_4FGL_J0239.7+0415_daily_bin792.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) = 5959.93371827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    9.0193       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4118       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.906       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.707       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .39430E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0849       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.897       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.5843       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.2004       1.0000         .10000E-03   10000.    
    23 'norm      '    8.6184       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2527       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .75852       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5959.923     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3439 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3127       -.19564E-05** at limit **
   2  norm          9.0196        4.7272        .26002E-07    .84546E-04
   3  Prefactor     2.4121        2.2257       -.25447E-07   -.32235E-03
   4  norm          .10000E-03    .29154       -.50856E-08** at limit **
   5  Prefactor     .10000E-03    21.749        .43230E-05** at limit **
   6  Prefactor     .10000E-03    4.6269        .36093E-05** at limit **
   7  Prefactor     45.904        46.507       -.27398E-05   -.18484E-04
   8  Prefactor     13.706        17.031       -.53809E-06   -.12394E-04
   9  Prefactor     .10009E-03    6.5280        .94886E-06** at limit **
  10  Prefactor     .10000E-03    6.7046        .29357E-05** at limit **
  11  Prefactor     2.0862        5.5209       -.80079E-06   -.54848E-03
  12  Prefactor     .10000E-03    3.3902        .26264E-05** at limit **
  13  Prefactor     .10000E-03    21.145       -.23473E-05** at limit **
  14  Prefactor     .10000E-03    40.707       -.10531E-04** at limit **
  15  norm          .10000E-03    10.247       -.65034E-05** at limit **
  16  Prefactor     .10000E-03    5.9760       -.26203E-05** at limit **
  17  Prefactor     15.897        29.145        .15161E-05   -.13133E-04
  18  Prefactor     .10000E-03    39.006        .70494E-05** at limit **
  19  Prefactor     .10000E-03    3.9438       -.23430E-05** at limit **
  20  norm          .10000E-03    2.7723        .50713E-07** at limit **
  21  norm          7.5846        3.9104        .25847E-07    .94232E-04
  22  Prefactor     6.2011        5.9585       -.15512E-06   -.17268E-03
  23  norm          8.6209        8.7000        .13232E-06   -.50043E-04
  24  Prefactor     .10000E-03    6.4896        .68350E-06** at limit **
  25  Prefactor     .10000E-03    9.5030        .54280E-05** at limit **
  26  Prefactor     .10000E-03    5.5684       -.25229E-05** at limit **
  27  Normalizat    1.2528        .18643        .32244E-06    .25375E-04
  28  Prefactor     .75843        .10127       -.29777E-07    .88289E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.01956
  Prefactor  = 2.41215
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.9037
  Prefactor  = 13.7062
  Prefactor  = 0.000100086
  Prefactor  = 0.0001
  Prefactor  = 2.08618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.58462
  Prefactor  = 6.20107
  norm       = 8.62093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25278
  Prefactor  = 0.758426
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.923     FROM HESSE     STATUS=OK           513 CALLS     3952 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3170        .13720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.0196        4.7265        .58795E-03   -1.5107    
   3  Prefactor     2.4121        2.2194        .10608E-03   -1.5397    
   4  norm          .10000E-03    .29826        .81290E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6542        .16173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     45.904        46.460        .59177E-04   -1.4352    
   8  Prefactor     13.706        17.126        .10819E-03   -1.4967    
   9  Prefactor     .10009E-03    36.146        .37472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0862        5.5472        .28596E-03   -1.5419    
  12  Prefactor     .10000E-03    3.3908        .13869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    41.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.897        28.994        .10045E-03   -1.4910    
  18  Prefactor     .10000E-03    39.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.0191        .14945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.7731        .12554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.5846        3.9125        .10569E-03   -1.5157    
  22  Prefactor     6.2011        5.9626        .16122E-03   -1.5210    
  23  norm          8.6209        8.7847        .13654E-03   -1.5121    
  24  Prefactor     .10000E-03    6.5004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.5023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.7305        .35491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2528        .20648        .27812E-03   -.84987    
  28  Prefactor     .75843        .11306        .18398E-03   -1.0128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79348e-09
Minuit parameter uncertainties:
  1  1.46989e-07
  2  4.7267
  3  2.21945
  4  4.94075e-08
  5  2.55097e-06
  6  1.55105e-05
  7  46.4969
  8  17.1323
  9  0.00352062
  10  2.01647e-06
  11  5.54852
  12  4.41298e-06
  13  1.8508e-05
  14  0.000108672
  15  1.81692e-05
  16  1.2893e-06
  17  29.02
  18  4.53194e-06
  19  1.14266e-05
  20  2.61545e-07
  21  3.91264
  22  5.96315
  23  8.78603
  24  1.6134e-06
  25  1.66133e-06
  26  1.74624e-05
  27  0.206613
  28  0.113095
Done.

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

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  1.087e-04  1.000e-04  1.000e+04 ( 1.000e-12)
278        Index:  2.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  4.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  7.584e-01  1.131e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  1.253e+00  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 39.940 4.264
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/636905/likelihoodResults_444614401_444873601_4FGL_J0239.7+0415_daily_bin792.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) = 5959.92360543
delta logL = -0.00011557975813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5959.92348926
delta logL = 5.85438101552e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11363E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1640       1.0000          .0000       10.000    
     3 'Normalizat'    1.2528       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75843       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5959.923     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      258 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .89608        .90712E-01** at limit **
   2  Index         3.2154        5.9877        .50000       -.48944E-05
   3  Normalizat    1.2528        .15401E-02    .62880E-01    .11431E-04
   4  Prefactor     .75843        .81804E-03    .43174E-01    .12070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 3.21538
  Normalizat = 1.25278
  Prefactor  = 0.758426
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.923     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      295 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    581.56        .50379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2154        7.3510        .50000       -.36497    
   3  Normalizat    1.2528        .13360E-01    .27812E-03   -.84987    
   4  Prefactor     .75843        .70990E-02    .18398E-03   -1.0128    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.47372e-07
Minuit parameter uncertainties:
  1  0.0027009
  2  837.585
  3  0.0133598
  4  0.00709902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636905': 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) = 5959.92348913
delta logL = 7.21922333469e-07

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  2.701e-03  1.000e-04  1.000e+04 ( 1.000e-12)
278        Index:  3.215e+00  8.376e+02  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  4.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  7.584e-01  7.099e-03  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  1.253e+00  1.336e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 39.940 4.264

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/636905/cmap_HighResolution_444614401_444873601_4FGL_J0239.7+0415_daily_bin792.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.95e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-08-16 11:22:22.675666', job_id='636905', GAL2='0.76', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1629138142.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='7.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='792' AND source_name='4FGL J0239.7+0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 11:22:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 636905: <4FGL_J0239.7+0415_daily_bin792> in cluster <slac> Done

Job <4FGL_J0239.7+0415_daily_bin792> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 16 11:06:25 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 11:08:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 11:08:51 2021
Terminated at Mon Aug 16 11:22:23 2021
Results reported at Mon Aug 16 11:22:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.7+0415_daily_bin792 39.9403 4.2643 444614401 444873601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0239.7+0415 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   655.18 sec.
    Max Memory :                                 1204 MB
    Average Memory :                             294.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            958 sec.

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

