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


Performing analysis on: 4FGL_J0239.7+0415_daily_bin1181
RA = 39.9403, Dec = 4.2643
tmin = 545443201, tmax = 545702401
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='639791', job_status='RUN', time_executed='2021-08-16 11:19:25.841614', time_epoch_executed='1629137965.84' WHERE source_name='4FGL J0239.7+0415' and cadence='daily' and bin_id='1181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639791

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639791/ft1_4FGL_J0239.7+0415_daily_bin1181.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639791/ft2_4FGL_J0239.7+0415_daily_bin1181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639791/ft1_4FGL_J0239.7+0415_daily_bin1181.fits outfile=/scratch/kocevski/639791/ft1_filteredMKT_4FGL_J0239.7+0415_daily_bin1181.fits ra=39.9403 dec=4.2643 rad=12.0 tmin=545443201.0 tmax=545702401.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 13.27
user 3.98
sys 9.07

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639791/ft2_4FGL_J0239.7+0415_daily_bin1181.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/639791/ft1_filteredMKT_4FGL_J0239.7+0415_daily_bin1181.fits evtable="EVENTS" outfile="/scratch/kocevski/639791/ft1_filtered_4FGL_J0239.7+0415_daily_bin1181.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 10.66
user 0.34
sys 9.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639791/ft1_filtered_4FGL_J0239.7+0415_daily_bin1181.fits" evtable="EVENTS" scfile=/scratch/kocevski/639791/ft2_4FGL_J0239.7+0415_daily_bin1181.fits sctable="SC_DATA" outfile=/scratch/kocevski/639791/ltcube_545443201_545702401_4FGL_J0239.7+0415_daily_bin1181.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/639791/ft2_4FGL_J0239.7+0415_daily_bin1181.fits
.....................!
real 22.66
user 11.70
sys 10.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639791/ft1_filtered_4FGL_J0239.7+0415_daily_bin1181.fits evtable="EVENTS" scfile=/scratch/kocevski/639791/ft2_4FGL_J0239.7+0415_daily_bin1181.fits sctable="SC_DATA" expcube=/scratch/kocevski/639791/ltcube_545443201_545702401_4FGL_J0239.7+0415_daily_bin1181.fits outfile=/scratch/kocevski/639791/expmap_545443201_545702401_4FGL_J0239.7+0415_daily_bin1181.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/639791/ltcube_545443201_545702401_4FGL_J0239.7+0415_daily_bin1181.fits
.....................!
real 205.52
user 185.46
sys 17.03

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/639791/ft1_filtered_4FGL_J0239.7+0415_daily_bin1181.fits scfile=/scratch/kocevski/639791/ft2_4FGL_J0239.7+0415_daily_bin1181.fits outfile=/scratch/kocevski/639791/cmap_545443201_545702401_4FGL_J0239.7+0415_daily_bin1181.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 9.30
user 0.38
sys 8.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639791/ft1_filtered_4FGL_J0239.7+0415_daily_bin1181.fits scfile=/scratch/kocevski/639791/ft2_4FGL_J0239.7+0415_daily_bin1181.fits outfile=/scratch/kocevski/639791/cmap_HighResolution_545443201_545702401_4FGL_J0239.7+0415_daily_bin1181.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 9.33
user 0.39
sys 8.91

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/639791/ft1_filtered_4FGL_J0239.7+0415_daily_bin1181.fits evtable="EVENTS" scfile=/scratch/kocevski/639791/ft2_4FGL_J0239.7+0415_daily_bin1181.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639791/Model_4FGL_J0239.7+0415_daily_bin1181.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/639791/ft1_filtered_4FGL_J0239.7+0415_daily_bin1181.fits...........................!
real 29.07
user 15.95
sys 12.87

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639791/ft1_filtered_4FGL_J0239.7+0415_daily_bin1181.fits', '/scratch/kocevski/639791/ft2_4FGL_J0239.7+0415_daily_bin1181.fits', expMap='/scratch/kocevski/639791/expmap_545443201_545702401_4FGL_J0239.7+0415_daily_bin1181.fits', expCube='/scratch/kocevski/639791/ltcube_545443201_545702401_4FGL_J0239.7+0415_daily_bin1181.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639791/Model_4FGL_J0239.7+0415_daily_bin1181.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/639791/ft1_filtered_4FGL_J0239.7+0415_daily_bin1181.fits
Spacecraft file(s): /scratch/kocevski/639791/ft2_4FGL_J0239.7+0415_daily_bin1181.fits
Exposure map: /scratch/kocevski/639791/expmap_545443201_545702401_4FGL_J0239.7+0415_daily_bin1181.fits
Exposure cube: /scratch/kocevski/639791/ltcube_545443201_545702401_4FGL_J0239.7+0415_daily_bin1181.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639791/Model_4FGL_J0239.7+0415_daily_bin1181.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 352.011478206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 351.306787021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1342       1.0000         .10000E-03   10000.    
     2 'norm      '    8.7603       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17599E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    3.8248       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6256       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0775       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.4348       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7716       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0579       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13956E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9562       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2214       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .47555       1.0000         .10000E-03   10000.    
    15 'norm      '    4.1065       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12634E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1829       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .50770       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.807       1.0000         .10000E-03   10000.    
    20 'norm      '    .12843       1.0000         .10000E-03   10000.    
    21 'norm      '    .11859E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10766E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .71147E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    61.096       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.1018       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .20153E-01   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3493       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   351.2987     FROM MIGRAD    STATUS=CONVERGED    142 CALLS      304 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1342        1.0305         .0000         .0000    
   2  norm          8.7603        1.0016         .0000         .0000    
   3  Prefactor     .11733E-03    .25858        .12379E-03** at limit **
   4  norm          3.8260        1.0090       -.18120E-06   -.97762E-04
   5  Prefactor     .58208E-03    .17202       -.23735E-03** at limit **
   6  Prefactor     1.0775        1.2073         .0000         .0000    
   7  Prefactor     8.4048        .99998       -.15510E-04    .69474E-03
   8  Prefactor     .10000E-03    .20571        .34671E-04** at limit **
   9  Prefactor     4.7716        1.0056         .0000         .0000    
  10  Prefactor     .22830E-03    .35646        .57688E-03** at limit **
  11  Prefactor     .17055E-03    .20669        .37302E-04** at limit **
  12  Prefactor     1.9562        1.0371         .0000         .0000    
  13  Prefactor     3.2214        1.0126         .0000         .0000    
  14  Prefactor     .10668E-03    .31195        .27545E-03** at limit **
  15  norm          4.1065        1.0076         .0000         .0000    
  16  Prefactor     .10000E-03    .26524       -.15667E-04** at limit **
  17  Prefactor     6.1829        1.0033         .0000         .0000    
  18  Prefactor     .29026E-03    .31935       -.75024E-03** at limit **
  19  Prefactor     25.888        1.0017       -.49846E-04    .30885E-02
  20  norm          .10001E-03    .23261        .18561E-04** at limit **
  21  norm          .10000E-03    .20622       -.16187E-04** at limit **
  22  Prefactor     .10000E-03    .20571       -.10659E-04** at limit **
  23  norm          .11685E-03    .21962        .45344E-03** at limit **
  24  Prefactor     61.738        1.0052        .92467E-04   -.26867E-01
  25  Prefactor     .10001E-03    .31972       -.25376E-04** at limit **
  26  Prefactor     .10000E-03    .20809        .18882E-04** at limit **
  27  Normalizat    .10000E-01    .25735        .42897E-04** at limit **
  28  Prefactor     1.3494        1.0683       -.13781E-05    .21529E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.13415
  norm       = 8.76028
  Prefactor  = 0.000117333
  norm       = 3.82602
  Prefactor  = 0.000582076
  Prefactor  = 1.07746
  Prefactor  = 8.40485
  Prefactor  = 0.0001
  Prefactor  = 4.77158
  Prefactor  = 0.000228296
  Prefactor  = 0.000170548
  Prefactor  = 1.95624
  Prefactor  = 3.22138
  Prefactor  = 0.00010668
  norm       = 4.10648
  Prefactor  = 0.000100001
  Prefactor  = 6.1829
  Prefactor  = 0.00029026
  Prefactor  = 25.8876
  norm       = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000116853
  Prefactor  = 61.7385
  Prefactor  = 0.000100006
  Prefactor  = 0.000100002
  Normalizat = 0.01
  Prefactor  = 1.34939
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   351.2987     FROM HESSE     STATUS=FAILED         9 CALLS      313 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     566.83        564.57         .0000       -1.5416    
   2  norm          8.7603        1.0016         .0000       -1.5116    
   3  Prefactor     .11733E-03    .25858        .12379E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8260        1.0090       -.18120E-06   -1.5317    
   5  Prefactor     .58208E-03    .17202       -.23735E-03   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0775        1.2073         .0000       -1.5500    
   7  Prefactor     8.4048        .99998       -.15510E-04   -1.5128    
   8  Prefactor     .10000E-03    .20571        .34671E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.7716        1.0056         .0000       -1.5271    
  10  Prefactor     .22830E-03    .35646        .57688E-03   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .17055E-03    .20669        .37302E-04   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9562        1.0371         .0000       -1.5428    
  13  Prefactor     3.2214        1.0126         .0000       -1.5349    
  14  Prefactor     .10668E-03    .31195        .27545E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.1065        1.0076         .0000       -1.5303    
  16  Prefactor     .10000E-03    .26524       -.15667E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.1829        1.0033         .0000       -1.5211    
  18  Prefactor     .29026E-03    .31935       -.75024E-03   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.888        1.0017       -.49846E-04   -1.4690    
  20  norm          .10001E-03    .23261        .18561E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .20622       -.16187E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .20571       -.10659E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .11685E-03    .21962        .45344E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     61.738        1.0052        .92467E-04   -1.4135    
  25  Prefactor     .10001E-03    .31972       -.25376E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .20809        .18882E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .25735        .42897E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.3494        1.0683       -.13781E-05   -.81850    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.55244e-09
Minuit parameter uncertainties:
  1  1.03048
  2  1.00164
  3  0.00423419
  4  1.00897
  5  0.0182129
  6  1.20731
  7  0.999985
  8  2.45653e-06
  9  1.0056
  10  0.0135253
  11  0.0076372
  12  1.0371
  13  1.01258
  14  0.00288712
  15  1.00761
  16  2.54846e-05
  17  1.00331
  18  0.0155896
  19  1.00175
  20  6.94822e-05
  21  1.6943e-05
  22  1.88386e-05
  23  0.00384774
  24  1.00524
  25  8.39655e-05
  26  3.70062e-05
  27  4.11395e-06
  28  1.08651
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 351.298724833

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  1.067e-04  2.887e-03  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:  1.349e+00  1.087e+00  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.000e-02  4.114e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 39.940 4.264
Photon Flux Upper Limit: 2.36e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.86e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639791/likelihoodResults_545443201_545702401_4FGL_J0239.7+0415_daily_bin1181.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) = 351.298744751
delta logL = -1.9917987288e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 351.298731459
delta logL = -6.62604162471e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5471       1.0000          .0000       10.000    
     3 'Normalizat'    .10007E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3495       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   351.2987     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      280 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11362E-03    499.72        .18142E-01** at limit **
   2  Index         3.2134        6.8211        .50000        .90309E-06
   3  Normalizat    .10000E-01    .29852E-02    .78682E-02** at limit **
   4  Prefactor     1.3494        .22164E-01    .16636E-03    .60607E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000113623
  Index      = 3.21338
  Normalizat = 0.01
  Prefactor  = 1.34938
 **********
 **   18 **HESSE 
 **********

 FCN=   351.2987     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 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     .11362E-03    6478.7        .25903E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2134        6.5953        .50000       -.36540    
   3  Normalizat    .10000E-01    .19950E-01    .15736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3494        .57298E-01    .66544E-05   -.81850    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.40691e-08
Minuit parameter uncertainties:
  1  0.424476
  2  4553.17
  3  1.81604e-08
  4  0.0573011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639791': 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) = 351.2987249
delta logL = -6.70097506372e-08

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  1.136e-04  4.245e-01  1.000e-04  1.000e+04 ( 1.000e-12)
278        Index:  3.213e+00  4.553e+03  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:  1.349e+00  5.730e-02  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.000e-02  1.816e-08  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/639791/cmap_HighResolution_545443201_545702401_4FGL_J0239.7+0415_daily_bin1181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-01', job_status='DONE', photon_flux_upper_limit='2.36e-06', time_completed='2021-08-16 11:27:12.978023', job_id='639791', GAL2='1.35', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629138432.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.35', dlogl='-6.70e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1181' AND source_name='4FGL J0239.7+0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 11:27:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 639791: <4FGL_J0239.7+0415_daily_bin1181> in cluster <slac> Done

Job <4FGL_J0239.7+0415_daily_bin1181> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 16 11:15:42 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 11:16:49 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:16:49 2021
Terminated at Mon Aug 16 11:27:15 2021
Results reported at Mon Aug 16 11:27:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.7+0415_daily_bin1181 39.9403 4.2643 545443201 545702401 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 :                                   597.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            693 sec.

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

