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


Performing analysis on: 4FGL_J0239.7+0415_daily_bin1187
RA = 39.9403, Dec = 4.2643
tmin = 546998401, tmax = 547257601
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='639800', job_status='RUN', time_executed='2021-08-16 11:17:10.958739', time_epoch_executed='1629137830.96' WHERE source_name='4FGL J0239.7+0415' and cadence='daily' and bin_id='1187'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639800

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639800/ft1_4FGL_J0239.7+0415_daily_bin1187.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639800/ft2_4FGL_J0239.7+0415_daily_bin1187.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639800/ft1_4FGL_J0239.7+0415_daily_bin1187.fits outfile=/scratch/kocevski/639800/ft1_filteredMKT_4FGL_J0239.7+0415_daily_bin1187.fits ra=39.9403 dec=4.2643 rad=12.0 tmin=546998401.0 tmax=547257601.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 3.08
user 2.82
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639800/ft2_4FGL_J0239.7+0415_daily_bin1187.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/639800/ft1_filteredMKT_4FGL_J0239.7+0415_daily_bin1187.fits evtable="EVENTS" outfile="/scratch/kocevski/639800/ft1_filtered_4FGL_J0239.7+0415_daily_bin1187.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.45
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639800/ft1_filtered_4FGL_J0239.7+0415_daily_bin1187.fits" evtable="EVENTS" scfile=/scratch/kocevski/639800/ft2_4FGL_J0239.7+0415_daily_bin1187.fits sctable="SC_DATA" outfile=/scratch/kocevski/639800/ltcube_546998401_547257601_4FGL_J0239.7+0415_daily_bin1187.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/639800/ft2_4FGL_J0239.7+0415_daily_bin1187.fits
.....................!
real 9.96
user 9.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639800/ft1_filtered_4FGL_J0239.7+0415_daily_bin1187.fits evtable="EVENTS" scfile=/scratch/kocevski/639800/ft2_4FGL_J0239.7+0415_daily_bin1187.fits sctable="SC_DATA" expcube=/scratch/kocevski/639800/ltcube_546998401_547257601_4FGL_J0239.7+0415_daily_bin1187.fits outfile=/scratch/kocevski/639800/expmap_546998401_547257601_4FGL_J0239.7+0415_daily_bin1187.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/639800/ltcube_546998401_547257601_4FGL_J0239.7+0415_daily_bin1187.fits
.....................!
real 155.42
user 151.27
sys 3.74

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/639800/ft1_filtered_4FGL_J0239.7+0415_daily_bin1187.fits scfile=/scratch/kocevski/639800/ft2_4FGL_J0239.7+0415_daily_bin1187.fits outfile=/scratch/kocevski/639800/cmap_546998401_547257601_4FGL_J0239.7+0415_daily_bin1187.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 0.49
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639800/ft1_filtered_4FGL_J0239.7+0415_daily_bin1187.fits scfile=/scratch/kocevski/639800/ft2_4FGL_J0239.7+0415_daily_bin1187.fits outfile=/scratch/kocevski/639800/cmap_HighResolution_546998401_547257601_4FGL_J0239.7+0415_daily_bin1187.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 0.49
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/639800/ft1_filtered_4FGL_J0239.7+0415_daily_bin1187.fits evtable="EVENTS" scfile=/scratch/kocevski/639800/ft2_4FGL_J0239.7+0415_daily_bin1187.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639800/Model_4FGL_J0239.7+0415_daily_bin1187.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/639800/ft1_filtered_4FGL_J0239.7+0415_daily_bin1187.fits.....................!
real 37.06
user 35.53
sys 1.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10335E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .17184E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.134       1.0000         .10000E-03   10000.    
    12 'Prefactor '    108.68       1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.121       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .14369E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10671E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.586       1.0000         .10000E-03   10000.    
    18 'Prefactor '    259.47       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    16.075       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10416E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    100.21       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11158E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3918       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=   2678.235     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3516 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.066        .59538E-06** at limit **
   2  norm          .10000E-03    7.8141        .92488E-06** at limit **
   3  Prefactor     .10000E-03    3.2612        .52709E-06** at limit **
   4  norm          .10004E-03    2.1112        .25156E-06** at limit **
   5  Prefactor     .10000E-03    19.869        .27791E-06** at limit **
   6  Prefactor     .10000E-03    3.1536        .35759E-07** at limit **
   7  Prefactor     .10000E-03    90.573        .33021E-06** at limit **
   8  Prefactor     .10000E-03    100.00        .64672E-07** at limit **
   9  Prefactor     .10000E-03    6.9114       -.36838E-06** at limit **
  10  Prefactor     .10000E-03    33.193        .49152E-06** at limit **
  11  Prefactor     32.131        29.679        .20693E-06    .53065E-03
  12  Prefactor     108.70        33.901        .16691E-06    .83777E-03
  13  Prefactor     38.145        143.28       -.47320E-05    .15311E-03
  14  Prefactor     .10000E-03    23.071       -.62626E-07** at limit **
  15  norm          .10005E-03    53.650       -.89617E-05** at limit **
  16  Prefactor     .10000E-03    219.95        .21226E-06** at limit **
  17  Prefactor     23.271        226.13        .28581E-05    .10953E-03
  18  Prefactor     259.41        511.81        .23097E-06    .16836E-04
  19  Prefactor     .10000E-03    7.8961        .61473E-07** at limit **
  20  norm          .10000E-03    8.2903        .38230E-08** at limit **
  21  norm          16.071        11.590       -.27010E-06    .51069E-03
  22  Prefactor     .10000E-03    7.2840        .20044E-07** at limit **
  23  norm          .10000E-03    15.464       -.49649E-07** at limit **
  24  Prefactor     100.19        95.687        .13358E-06    .75510E-04
  25  Prefactor     .10000E-03    101.89       -.11704E-06** at limit **
  26  Prefactor     .10000E-03    7.4767        .16098E-06** at limit **
  27  Normalizat    .10000E-01    .21930       -.30055E-04** at limit **
  28  Prefactor     1.3918        .13668        .41512E-05    .12030E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.1308
  Prefactor  = 108.701
  Prefactor  = 38.145
  Prefactor  = 0.0001
  norm       = 0.00010005
  Prefactor  = 0.0001
  Prefactor  = 23.2711
  Prefactor  = 259.412
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.0706
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 100.192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.39175
 **********
 **   18 **HESSE 
 **********

 FCN=   2678.235     FROM HESSE     STATUS=OK           495 CALLS     4011 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.100        .17539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.8959        .14067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2863        .90961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10004E-03    38.856        .14346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.1557        .89752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    90.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    100.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.9279        .13280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.131        29.789        .70685E-04   -1.4574    
  12  Prefactor     108.70        33.920        .38580E-04   -1.3619    
  13  Prefactor     38.145        141.86        .64915E-04   -1.4472    
  14  Prefactor     .10000E-03    23.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10005E-03    51.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    219.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.271        227.05        .82479E-04   -1.4743    
  18  Prefactor     259.41        511.82        .12580E-03   -1.2473    
  19  Prefactor     .10000E-03    7.9025        .14204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.2907        .14555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          16.071        11.605        .99894E-04   -1.4906    
  22  Prefactor     .10000E-03    7.2851        .13642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    15.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     100.19        95.738        .40160E-04   -1.3703    
  25  Prefactor     .10000E-03    101.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.4966        .13818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .41195        .13144E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.3918        .14357        .17471E-03   -.80618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47994e-09
Minuit parameter uncertainties:
  1  0.000124054
  2  0.000156142
  3  5.55714e-05
  4  0.00262381
  5  6.34954e-06
  6  5.00056e-06
  7  0.000392066
  8  5.77083e-05
  9  5.15947e-05
  10  7.96043e-05
  11  29.8023
  12  33.9256
  13  143.147
  14  7.19844e-05
  15  0.00321154
  16  0.000296009
  17  146.106
  18  521.108
  19  2.95072e-06
  20  9.62771e-06
  21  11.6069
  22  1.73147e-06
  23  0.000101385
  24  95.8858
  25  0.000155712
  26  6.68581e-05
  27  2.63357e-05
  28  0.143615
Done.

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

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  7.198e-05  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.392e+00  1.436e-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.000e-02  2.634e-05  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.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.45e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639800/likelihoodResults_546998401_547257601_4FGL_J0239.7+0415_daily_bin1187.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) = 2678.23534394
delta logL = -0.000215470964577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2678.2351302
delta logL = -1.73834769157e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10500E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.7274       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3917       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=   2678.235     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      290 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    113.51        .18142E-01** at limit **
   2  Index         2.8579        6.3665        .50000        .15326E-06
   3  Normalizat    .10000E-01    .41502E-02    .13145E-01** at limit **
   4  Prefactor     1.3918        .11937E-01    .17471E-03    .83913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.85786
  Normalizat = 0.01
  Prefactor  = 1.39175
 **********
 **   18 **HESSE 
 **********

 FCN=   2678.235     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      319 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    808.84        .24285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8579        5.2980        .50000       -.44275    
   3  Normalizat    .10000E-01    .32305E-01    .26289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3918        .33277E-01    .34941E-04   -.80618    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.8174e-09
Minuit parameter uncertainties:
  1  0.000311649
  2  2792.67
  3  1.68823e-06
  4  0.0332776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639800': 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) = 2678.23512846
delta logL = 3.82897269446e-09

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  3.116e-04  1.000e-04  1.000e+04 ( 1.000e-12)
278        Index:  2.858e+00  2.793e+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.392e+00  3.328e-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.688e-06  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/639800/cmap_HighResolution_546998401_547257601_4FGL_J0239.7+0415_daily_bin1187.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.45e-02', job_status='DONE', photon_flux_upper_limit='3.10e-07', time_completed='2021-08-16 11:24:18.249287', job_id='639800', GAL2='1.39', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629138258.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='3.83e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1187' AND source_name='4FGL J0239.7+0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 11:24:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 639800: <4FGL_J0239.7+0415_daily_bin1187> in cluster <slac> Done

Job <4FGL_J0239.7+0415_daily_bin1187> 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) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 11:16:54 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:54 2021
Terminated at Mon Aug 16 11:24:19 2021
Results reported at Mon Aug 16 11:24:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.7+0415_daily_bin1187 39.9403 4.2643 546998401 547257601 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 :                                   413.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   444 sec.
    Turnaround time :                            517 sec.

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

