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


Performing analysis on: 4FGL_J0239.7+0415_daily_bin451
RA = 39.9403, Dec = 4.2643
tmin = 356227201, tmax = 356486401
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='634899', job_status='RUN', time_executed='2021-08-16 11:09:00.370141', time_epoch_executed='1629137340.37' WHERE source_name='4FGL J0239.7+0415' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/634899

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/634899/ft1_4FGL_J0239.7+0415_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/634899/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/634899/ft2_4FGL_J0239.7+0415_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/634899/ft1_4FGL_J0239.7+0415_daily_bin451.fits outfile=/scratch/kocevski/634899/ft1_filteredMKT_4FGL_J0239.7+0415_daily_bin451.fits ra=39.9403 dec=4.2643 rad=12.0 tmin=356227201.0 tmax=356486401.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.47
user 2.88
sys 1.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/634899/ft2_4FGL_J0239.7+0415_daily_bin451.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/634899/ft1_filteredMKT_4FGL_J0239.7+0415_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/634899/ft1_filtered_4FGL_J0239.7+0415_daily_bin451.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.43
user 0.31
sys 1.04

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/634899/ft1_filtered_4FGL_J0239.7+0415_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/634899/ft2_4FGL_J0239.7+0415_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/634899/ltcube_356227201_356486401_4FGL_J0239.7+0415_daily_bin451.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/634899/ft2_4FGL_J0239.7+0415_daily_bin451.fits
.....................!
real 4.38
user 2.87
sys 1.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/634899/ft1_filtered_4FGL_J0239.7+0415_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/634899/ft2_4FGL_J0239.7+0415_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/634899/ltcube_356227201_356486401_4FGL_J0239.7+0415_daily_bin451.fits outfile=/scratch/kocevski/634899/expmap_356227201_356486401_4FGL_J0239.7+0415_daily_bin451.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/634899/ltcube_356227201_356486401_4FGL_J0239.7+0415_daily_bin451.fits
.....................!
real 193.01
user 185.69
sys 6.14

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/634899/ft1_filtered_4FGL_J0239.7+0415_daily_bin451.fits scfile=/scratch/kocevski/634899/ft2_4FGL_J0239.7+0415_daily_bin451.fits outfile=/scratch/kocevski/634899/cmap_356227201_356486401_4FGL_J0239.7+0415_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 1.57
user 0.37
sys 1.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/634899/ft1_filtered_4FGL_J0239.7+0415_daily_bin451.fits scfile=/scratch/kocevski/634899/ft2_4FGL_J0239.7+0415_daily_bin451.fits outfile=/scratch/kocevski/634899/cmap_HighResolution_356227201_356486401_4FGL_J0239.7+0415_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 1.53
user 0.37
sys 1.05

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/634899/ft1_filtered_4FGL_J0239.7+0415_daily_bin451.fits', '/scratch/kocevski/634899/ft2_4FGL_J0239.7+0415_daily_bin451.fits', expMap='/scratch/kocevski/634899/expmap_356227201_356486401_4FGL_J0239.7+0415_daily_bin451.fits', expCube='/scratch/kocevski/634899/ltcube_356227201_356486401_4FGL_J0239.7+0415_daily_bin451.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/634899/Model_4FGL_J0239.7+0415_daily_bin451.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/634899/ft1_filtered_4FGL_J0239.7+0415_daily_bin451.fits
Spacecraft file(s): /scratch/kocevski/634899/ft2_4FGL_J0239.7+0415_daily_bin451.fits
Exposure map: /scratch/kocevski/634899/expmap_356227201_356486401_4FGL_J0239.7+0415_daily_bin451.fits
Exposure cube: /scratch/kocevski/634899/ltcube_356227201_356486401_4FGL_J0239.7+0415_daily_bin451.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/634899/Model_4FGL_J0239.7+0415_daily_bin451.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) = 1124.76479095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.551       1.0000         .10000E-03   10000.    
     2 'norm      '    .11051E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.158       1.0000         .10000E-03   10000.    
     4 'norm      '    4.7694       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17837E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16883E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13366E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12384E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5832       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.547       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.397       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20744E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25607E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20974E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    70.321       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .27923E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    78.525       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .14630E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    33.054       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .22637E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .30949E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .13232E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .19497       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3732       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=   1123.735     FROM MIGRAD    STATUS=CONVERGED   1347 CALLS     3672 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.042        41.807        .63735E-04    .39688E-05
   2  norm          .10000E-03    10.969        .10836E-02** at limit **
   3  Prefactor     11.213        9.3376        .88940E-04   -.18950E-04
   4  norm          4.7842        3.6549        .51260E-04   -.25505E-04
   5  Prefactor     .10000E-03    31.598        .18142E-02** at limit **
   6  Prefactor     .10000E-03    16.595        .13319E-02** at limit **
   7  Prefactor     .10000E-03    110.98        .18179E-02** at limit **
   8  Prefactor     .10000E-03    28.240        .17401E-02** at limit **
   9  Prefactor     4.4369        28.740        .18802E-03   -.44668E-04
  10  Prefactor     14.532        46.771        .10883E-03    .21442E-04
  11  Prefactor     11.752        27.689        .11867E-03   -.14562E-04
  12  Prefactor     .10000E-03    53.421        .20196E-02** at limit **
  13  Prefactor     .10009E-03    504.18        .19994E-02** at limit **
  14  Prefactor     .10000E-03    24.572        .16234E-02** at limit **
  15  norm          .10000E-03    13.292        .11939E-02** at limit **
  16  Prefactor     70.080        65.137        .47870E-04   -.25530E-05
  17  Prefactor     2.7297        863.73        .19905E-02   -.58009E-04
  18  Prefactor     94.376        229.64        .45319E-04   -.20571E-05
  19  Prefactor     .10000E-03    10.551        .10627E-02** at limit **
  20  norm          .10000E-03    18.704        .14163E-02** at limit **
  21  norm          .10000E-03    7.1479        .87455E-03** at limit **
  22  Prefactor     .10000E-03    7.4776        .89537E-03** at limit **
  23  norm          32.978        26.800        .69698E-04   -.66795E-05
  24  Prefactor     .10000E-03    20.461        .14813E-02** at limit **
  25  Prefactor     .10000E-03    25.380        .16501E-02** at limit **
  26  Prefactor     .10000E-03    14.658        .12525E-02** at limit **
  27  Normalizat    .18664        .61298        .77758E-03   -.11024E-04
  28  Prefactor     1.3736        .33220        .17468E-03   -.37478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.0416
  norm       = 0.0001
  Prefactor  = 11.2127
  norm       = 4.78416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.43686
  Prefactor  = 14.5325
  Prefactor  = 11.7521
  Prefactor  = 0.0001
  Prefactor  = 0.00010009
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 70.0796
  Prefactor  = 2.72972
  Prefactor  = 94.3757
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 32.9782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.186638
  Prefactor  = 1.37359
 **********
 **   18 **HESSE 
 **********

 FCN=   1123.735     FROM HESSE     STATUS=OK           491 CALLS     4163 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.042        41.795        .25494E-05   -1.4474    
   2  norm          .10000E-03    10.969        .21672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.213        9.3369        .35576E-05   -1.5038    
   4  norm          4.7842        3.6533        .20504E-05   -1.5270    
   5  Prefactor     .10000E-03    31.598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.595        .26638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    110.98        .36359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.240        .34802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4369        28.627        .75209E-05   -1.5287    
  10  Prefactor     14.532        46.757        .43531E-05   -1.4945    
  11  Prefactor     11.752        27.687        .47467E-05   -1.5022    
  12  Prefactor     .10000E-03    53.429        .40392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10009E-03    504.20        .39988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.572        .32468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    13.292        .23879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     70.080        65.094        .19148E-05   -1.4032    
  17  Prefactor     2.7297        858.37        .79619E-04   -1.5378    
  18  Prefactor     94.376        229.60        .90638E-05   -1.3762    
  19  Prefactor     .10000E-03    10.551        .21255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    18.704        .28325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    7.1480        .17491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.4777        .17907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          32.978        26.800        .13940E-04   -1.4559    
  24  Prefactor     .10000E-03    20.461        .29627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    25.380        .33001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.658        .25049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .18664        .61132        .31103E-04   -1.3041    
  28  Prefactor     1.3736        .33149        .34936E-04   -.81144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30309e-09
Minuit parameter uncertainties:
  1  41.8273
  2  3.93692e-08
  3  9.33813
  4  3.65349
  5  8.25285e-06
  6  4.04048e-06
  7  3.81881e-06
  8  1.67958e-06
  9  22.5558
  10  46.8751
  11  27.7171
  12  4.41289e-05
  13  0.0135902
  14  4.14004e-06
  15  7.36958e-06
  16  65.1601
  17  98.2652
  18  231.813
  19  9.1257e-07
  20  7.63168e-07
  21  5.17333e-07
  22  5.5662e-07
  23  26.8102
  24  1.12682e-06
  25  2.9547e-06
  26  3.15083e-06
  27  0.635742
  28  0.332005
Done.

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

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  4.140e-06  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.374e+00  3.320e-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.866e-01  6.357e-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: 3.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.58e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/634899/likelihoodResults_356227201_356486401_4FGL_J0239.7+0415_daily_bin451.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) = 1123.73476662
delta logL = -0.000186256423376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1123.73458234
delta logL = -1.97412964553e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.7159       1.0000          .0000       10.000    
     3 'Normalizat'    .18663       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3734       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=   1123.735     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      293 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    366.06        .12163E-01** at limit **
   2  Index         2.2731        7.1852        .50000        .19395E-07
   3  Normalizat    .18665        .52962E-01    .77759E-03    .36429E-03
   4  Prefactor     1.3736        .30568E-01    .17468E-03    .16547E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.27312
  Normalizat = 0.186654
  Prefactor  = 1.3736
 **********
 **   18 **HESSE 
 **********

 FCN=   1123.735     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      322 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2110.5        .17159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2731        6.1321        .50000       -.57684    
   3  Normalizat    .18665        .14337        .15552E-03   -1.3041    
   4  Prefactor     1.3736        .82883E-01    .34936E-04   -.81144    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.75377e-09
Minuit parameter uncertainties:
  1  0.00103499
  2  3058.49
  3  0.143655
  4  0.0828913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/634899': 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) = 1123.73458016
delta logL = 2.0901939024e-07

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  1.035e-03  1.000e-04  1.000e+04 ( 1.000e-12)
278        Index:  2.273e+00  3.058e+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.374e+00  8.289e-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.867e-01  1.437e-01  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/634899/cmap_HighResolution_356227201_356486401_4FGL_J0239.7+0415_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-02', job_status='DONE', photon_flux_upper_limit='3.27e-07', time_completed='2021-08-16 11:15:56.554501', job_id='634899', GAL2='1.37', fit_tolerance='1e-08', EG2='0.19', EG='0.19', time_epoch_completed='1629137756.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='2.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='451' AND source_name='4FGL J0239.7+0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 11:15:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 634899: <4FGL_J0239.7+0415_daily_bin451> in cluster <slac> Done

Job <4FGL_J0239.7+0415_daily_bin451> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 16 11:00:45 2021
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 11:05:46 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:05:46 2021
Terminated at Mon Aug 16 11:15:57 2021
Results reported at Mon Aug 16 11:15:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.7+0415_daily_bin451 39.9403 4.2643 356227201 356486401 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 :                                   419.30 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             252.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            912 sec.

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

