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


Performing analysis on: 4FGL_J0239.5+1326_daily_bin1427
RA = 39.8847, Dec = 13.4366
tmin = 609206401, tmax = 609465601
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='630661', job_status='RUN', time_executed='2021-08-16 10:53:58.722929', time_epoch_executed='1629136438.72' WHERE source_name='4FGL J0239.5+1326' and cadence='daily' and bin_id='1427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630661

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630661/ft1_4FGL_J0239.5+1326_daily_bin1427.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630661/ft2_4FGL_J0239.5+1326_daily_bin1427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630661/ft1_4FGL_J0239.5+1326_daily_bin1427.fits outfile=/scratch/kocevski/630661/ft1_filteredMKT_4FGL_J0239.5+1326_daily_bin1427.fits ra=39.8847 dec=13.4366 rad=12.0 tmin=609206401.0 tmax=609465601.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.67
user 2.79
sys 0.85

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/630661/ft2_4FGL_J0239.5+1326_daily_bin1427.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/630661/ft2_4FGL_J0239.5+1326_daily_bin1427.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/630661/ft1_filteredMKT_4FGL_J0239.5+1326_daily_bin1427.fits evtable="EVENTS" outfile="/scratch/kocevski/630661/ft1_filtered_4FGL_J0239.5+1326_daily_bin1427.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.20
user 0.33
sys 0.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630661/ft1_filtered_4FGL_J0239.5+1326_daily_bin1427.fits" evtable="EVENTS" scfile=/scratch/kocevski/630661/ft2_4FGL_J0239.5+1326_daily_bin1427.fits sctable="SC_DATA" outfile=/scratch/kocevski/630661/ltcube_609206401_609465601_4FGL_J0239.5+1326_daily_bin1427.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/630661/ft2_4FGL_J0239.5+1326_daily_bin1427.fits
.....................!
real 14.39
user 13.21
sys 1.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630661/ft1_filtered_4FGL_J0239.5+1326_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/630661/ft2_4FGL_J0239.5+1326_daily_bin1427.fits sctable="SC_DATA" expcube=/scratch/kocevski/630661/ltcube_609206401_609465601_4FGL_J0239.5+1326_daily_bin1427.fits outfile=/scratch/kocevski/630661/expmap_609206401_609465601_4FGL_J0239.5+1326_daily_bin1427.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/630661/ltcube_609206401_609465601_4FGL_J0239.5+1326_daily_bin1427.fits
.....................!
real 192.02
user 185.16
sys 5.46

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

Setting source of interest to:
4FGL J0239.5+1326 @ 39.8847 13.4366

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/630661/ft1_filtered_4FGL_J0239.5+1326_daily_bin1427.fits scfile=/scratch/kocevski/630661/ft2_4FGL_J0239.5+1326_daily_bin1427.fits outfile=/scratch/kocevski/630661/cmap_609206401_609465601_4FGL_J0239.5+1326_daily_bin1427.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.8847 yref=13.4366 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.34
user 0.37
sys 0.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630661/ft1_filtered_4FGL_J0239.5+1326_daily_bin1427.fits scfile=/scratch/kocevski/630661/ft2_4FGL_J0239.5+1326_daily_bin1427.fits outfile=/scratch/kocevski/630661/cmap_HighResolution_609206401_609465601_4FGL_J0239.5+1326_daily_bin1427.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.8847 yref=13.4366 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.23
user 0.39
sys 0.79

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/630661/ft1_filtered_4FGL_J0239.5+1326_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/630661/ft2_4FGL_J0239.5+1326_daily_bin1427.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/630661/Model_4FGL_J0239.5+1326_daily_bin1427.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/630661/ft1_filtered_4FGL_J0239.5+1326_daily_bin1427.fits.....................!
real 42.01
user 34.93
sys 2.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/630661/ft1_filtered_4FGL_J0239.5+1326_daily_bin1427.fits', '/scratch/kocevski/630661/ft2_4FGL_J0239.5+1326_daily_bin1427.fits', expMap='/scratch/kocevski/630661/expmap_609206401_609465601_4FGL_J0239.5+1326_daily_bin1427.fits', expCube='/scratch/kocevski/630661/ltcube_609206401_609465601_4FGL_J0239.5+1326_daily_bin1427.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/630661/Model_4FGL_J0239.5+1326_daily_bin1427.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0239.5+1326'

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  3.221e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  2.311e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/630661/ft1_filtered_4FGL_J0239.5+1326_daily_bin1427.fits
Spacecraft file(s): /scratch/kocevski/630661/ft2_4FGL_J0239.5+1326_daily_bin1427.fits
Exposure map: /scratch/kocevski/630661/expmap_609206401_609465601_4FGL_J0239.5+1326_daily_bin1427.fits
Exposure cube: /scratch/kocevski/630661/ltcube_609206401_609465601_4FGL_J0239.5+1326_daily_bin1427.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/630661/Model_4FGL_J0239.5+1326_daily_bin1427.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) = 1647.22621371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     3 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35728E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    466.03       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    393.52       1.0000         .10000E-03   10000.    
    10 'Prefactor '    116.51       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11569E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12212E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18111E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0815       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10870E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.0368       1.0000         .10000E-03   10000.    
    19 'Prefactor '    57.478       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.898       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10577E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.140       1.0000         .10000E-03   10000.    
    24 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .11905E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    2.3522       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.6495       1.0000         .10000E-03   10000.    
    28 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    25.412       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2849       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1646.797     FROM MIGRAD    STATUS=CONVERGED    863 CALLS     6080 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        7277.4        .22948E-05** at limit **
   2  Prefactor    10000.0        596.82        .42297E-06** at limit **
   3  norm          .10000E-03    275.17        .28132E-05** at limit **
   4  Prefactor     .10000E-03    202.99        .14431E-06** at limit **
   5  Prefactor     .10001E-03    78.333        .15002E-04** at limit **
   6  Prefactor     466.60        378.03       -.61527E-05   -.52572E-04
   7  Prefactor     .10000E-03    330.45        .43346E-06** at limit **
   8  Prefactor     .10000E-03    101.14        .89622E-07** at limit **
   9  Prefactor     394.38        529.09        .19662E-06    .50111E-05
  10  Prefactor     116.67        828.27       -.15559E-05   -.64882E-05
  11  Prefactor     .10000E-03    47.749       -.34357E-06** at limit **
  12  Prefactor     .10000E-03    160.16        .56509E-05** at limit **
  13  Prefactor     .10001E-03    117.24       -.12142E-04** at limit **
  14  Prefactor     .10000E-03    97.806       -.10349E-05** at limit **
  15  norm          1.0816        3.5498       -.67440E-06   -.11200E-03
  16  Prefactor     .10000E-03    137.85       -.13876E-05** at limit **
  17  Prefactor     .10000E-03    56.426        .23597E-05** at limit **
  18  norm          4.7350        322.56       -.98167E-05   -.33029E-04
  19  Prefactor     57.445        91.975        .56698E-06   -.62197E-04
  20  Prefactor     .10000E-03    272.05       -.52980E-05** at limit **
  21  Prefactor     16.895        36.485       -.81496E-06   -.91068E-04
  22  Prefactor     .10000E-03    41.122       -.15346E-06** at limit **
  23  Prefactor     11.138        21.026        .11193E-05   -.32902E-03
  24  norm          .10000E-03    12.056        .65409E-07** at limit **
  25  norm          .10105E-03    53.313        .15149E-05** at limit **
  26  norm          2.3465        20.808        .15200E-05   -.22389E-03
  27  Prefactor     6.6452        11.064       -.94885E-07   -.15588E-03
  28  norm          .10000E-03    52.536       -.15705E-05** at limit **
  29  Prefactor     .10000E-03    179.45        .49178E-07** at limit **
  30  Prefactor     25.409        20.561       -.81773E-06   -.35620E-03
  31  Prefactor     .10000E-03    17.010        .16437E-06** at limit **
  32  Normalizat    .10000E-01    .32742        .28360E-04** at limit **
  33  Prefactor     1.2854        .17257       -.20260E-05   -.95105E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 466.601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 394.385
  Prefactor  = 116.669
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100011
  Prefactor  = 0.000100001
  norm       = 1.08158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.735
  Prefactor  = 57.4451
  Prefactor  = 0.000100004
  Prefactor  = 16.895
  Prefactor  = 0.0001
  Prefactor  = 11.138
  norm       = 0.0001
  norm       = 0.000101053
  norm       = 2.34655
  Prefactor  = 6.6452
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 25.4089
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.28542
 **********
 **   18 **HESSE 
 **********

 FCN=   1646.797     FROM HESSE     STATUS=OK           675 CALLS     6755 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        7277.4        .19639E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        596.92        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    274.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    202.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    74.790        .21314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     466.60        381.37        .94882E-04   -1.1353    
   7  Prefactor     .10000E-03    330.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    101.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     394.38        529.00        .10286E-03   -1.1710    
  10  Prefactor     116.67        828.53        .18638E-03   -1.3543    
  11  Prefactor     .10000E-03    47.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    159.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    113.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    97.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0816        3.4130        .12177E-03   -1.5500    
  16  Prefactor     .10000E-03    137.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    56.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7350        330.63        .17917E-03   -1.5273    
  19  Prefactor     57.445        90.564        .52915E-04   -1.4191    
  20  Prefactor     .10000E-03    271.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.895        36.556        .97433E-04   -1.4886    
  22  Prefactor     .10000E-03    41.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.138        20.260        .12003E-03   -1.5040    
  24  norm          .10000E-03    12.061        .13765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10105E-03    340.62        .52353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.3465        18.970        .26726E-03   -1.5402    
  27  Prefactor     6.6452        11.055        .15562E-03   -1.5192    
  28  norm          .10000E-03    52.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    179.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     25.409        20.781        .79465E-04   -1.4699    
  31  Prefactor     .10000E-03    17.045        .16351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .45286        .13329E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     1.2854        .17529        .16095E-03   -.83742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69948e-09
Minuit parameter uncertainties:
  1  0.0184067
  2  0.000793148
  3  5.97234e-05
  4  4.42873e-05
  5  0.00153412
  6  383.484
  7  0.00070383
  8  0.00010918
  9  535.738
  10  634.717
  11  5.01033e-05
  12  0.00105599
  13  0.00219369
  14  0.00046995
  15  3.41363
  16  2.63574e-05
  17  0.000190977
  18  79.5945
  19  90.7824
  20  0.00217195
  21  36.6049
  22  4.11479e-05
  23  20.2728
  24  1.19993e-07
  25  0.0380975
  26  13.3493
  27  11.0584
  28  0.000343915
  29  0.000147872
  30  20.7871
  31  6.26626e-06
  32  6.00868e-06
  33  0.175367
Done.

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

Extracting fit parameters...

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  2.636e-05  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  2.311e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  1.285e+00  1.754e-01  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.000e-02  6.009e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 39.885 13.437
Photon Flux Upper Limit: 5.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.30e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/630661/likelihoodResults_609206401_609465601_4FGL_J0239.5+1326_daily_bin1427.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) = 1646.79654305
delta logL = -3.57852732122e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1646.79650859
delta logL = -1.33351045406e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1646.797     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      241 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    1552.9        .90712E-02** at limit **
   2  Index         2.9314        7.1111        .50000        .54357E-05
   3  Normalizat    .10000E-01    .15708E-01    .32263    ** at limit **
   4  Prefactor     1.2854        .33855E-01    .32869E-01   -.10719E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100036
  Index      = 2.93144
  Normalizat = 0.01
  Prefactor  = 1.28543
 **********
 **   18 **HESSE 
 **********

 FCN=   1646.797     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      274 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    9130.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9314        5.9156        .50000       -.42653    
   3  Normalizat    .10000E-01    .33134        .13303E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2854        .12619        .16094E-03   -.83741    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.11258e-07
Minuit parameter uncertainties:
  1  0.0432367
  2  69.3455
  3  7.91074e-07
  4  0.126217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630661': 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) = 1646.79650777
delta logL = -5.10271320309e-07

Extracting fit parameters...

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  4.324e-02  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.931e+00  6.935e+01  0.000e+00  1.000e+01 (-1.000e+00)
250        Scale:  2.311e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  1.285e+00  1.262e-01  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.000e-02  7.911e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 39.885 13.437

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/630661/cmap_HighResolution_609206401_609465601_4FGL_J0239.5+1326_daily_bin1427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-02', job_status='DONE', photon_flux_upper_limit='5.64e-07', time_completed='2021-08-16 11:02:31.201568', job_id='630661', GAL2='1.29', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629136951.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='-5.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1427' AND source_name='4FGL J0239.5+1326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 11:02:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0009>
Subject: Job 630661: <4FGL_J0239.5+1326_daily_bin1427> in cluster <slac> Done

Job <4FGL_J0239.5+1326_daily_bin1427> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 16 10:50:25 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 10:51:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 10:51:12 2021
Terminated at Mon Aug 16 11:02:31 2021
Results reported at Mon Aug 16 11:02:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.5+1326_daily_bin1427 39.8847 13.4366 609206401 609465601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0239.5+1326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   510.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             272.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            726 sec.

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

