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


Performing analysis on: 4FGL_J0239.5+1326_daily_bin1200
RA = 39.8847, Dec = 13.4366
tmin = 550368001, tmax = 550627201
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='627842', job_status='RUN', time_executed='2021-08-16 10:45:41.641953', time_epoch_executed='1629135941.64' WHERE source_name='4FGL J0239.5+1326' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627842

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627842/ft1_4FGL_J0239.5+1326_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627842/ft2_4FGL_J0239.5+1326_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627842/ft1_4FGL_J0239.5+1326_daily_bin1200.fits outfile=/scratch/kocevski/627842/ft1_filteredMKT_4FGL_J0239.5+1326_daily_bin1200.fits ra=39.8847 dec=13.4366 rad=12.0 tmin=550368001.0 tmax=550627201.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 9.19
user 3.80
sys 5.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/627842/ft2_4FGL_J0239.5+1326_daily_bin1200.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/627842/ft1_filteredMKT_4FGL_J0239.5+1326_daily_bin1200.fits evtable="EVENTS" outfile="/scratch/kocevski/627842/ft1_filtered_4FGL_J0239.5+1326_daily_bin1200.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 5.92
user 0.35
sys 5.52

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627842/ft1_filtered_4FGL_J0239.5+1326_daily_bin1200.fits" evtable="EVENTS" scfile=/scratch/kocevski/627842/ft2_4FGL_J0239.5+1326_daily_bin1200.fits sctable="SC_DATA" outfile=/scratch/kocevski/627842/ltcube_550368001_550627201_4FGL_J0239.5+1326_daily_bin1200.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/627842/ft2_4FGL_J0239.5+1326_daily_bin1200.fits
.....................!
real 18.18
user 11.54
sys 6.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627842/ft1_filtered_4FGL_J0239.5+1326_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/627842/ft2_4FGL_J0239.5+1326_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/627842/ltcube_550368001_550627201_4FGL_J0239.5+1326_daily_bin1200.fits outfile=/scratch/kocevski/627842/expmap_550368001_550627201_4FGL_J0239.5+1326_daily_bin1200.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/627842/ltcube_550368001_550627201_4FGL_J0239.5+1326_daily_bin1200.fits
.....................!
real 200.86
user 187.92
sys 11.45

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/627842/ft1_filtered_4FGL_J0239.5+1326_daily_bin1200.fits scfile=/scratch/kocevski/627842/ft2_4FGL_J0239.5+1326_daily_bin1200.fits outfile=/scratch/kocevski/627842/cmap_550368001_550627201_4FGL_J0239.5+1326_daily_bin1200.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 5.55
user 0.36
sys 5.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/627842/ft1_filtered_4FGL_J0239.5+1326_daily_bin1200.fits scfile=/scratch/kocevski/627842/ft2_4FGL_J0239.5+1326_daily_bin1200.fits outfile=/scratch/kocevski/627842/cmap_HighResolution_550368001_550627201_4FGL_J0239.5+1326_daily_bin1200.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 5.77
user 0.39
sys 5.33

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/627842/ft1_filtered_4FGL_J0239.5+1326_daily_bin1200.fits', '/scratch/kocevski/627842/ft2_4FGL_J0239.5+1326_daily_bin1200.fits', expMap='/scratch/kocevski/627842/expmap_550368001_550627201_4FGL_J0239.5+1326_daily_bin1200.fits', expCube='/scratch/kocevski/627842/ltcube_550368001_550627201_4FGL_J0239.5+1326_daily_bin1200.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/627842/Model_4FGL_J0239.5+1326_daily_bin1200.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/627842/ft1_filtered_4FGL_J0239.5+1326_daily_bin1200.fits
Spacecraft file(s): /scratch/kocevski/627842/ft2_4FGL_J0239.5+1326_daily_bin1200.fits
Exposure map: /scratch/kocevski/627842/expmap_550368001_550627201_4FGL_J0239.5+1326_daily_bin1200.fits
Exposure cube: /scratch/kocevski/627842/ltcube_550368001_550627201_4FGL_J0239.5+1326_daily_bin1200.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/627842/Model_4FGL_J0239.5+1326_daily_bin1200.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) = 748.817186442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42975E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12388E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6543       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1777       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .92159E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1883       1.0000         .10000E-03   10000.    
     8 'Prefactor '    81.297       1.0000         .10000E-03   10000.    
     9 'Prefactor '    393.91       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0540       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .68400E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .96073E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .52506E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11248E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    176.74       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31757E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .12195E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20058E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14447       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1506       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .42682E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .18711E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    37.577       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.6065       1.0000         .10000E-03   10000.    
    28 'norm      '    50.122       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.3853       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .52114E-02   1.0000         .10000E-03   10000.    
    31 'Prefactor '    127.69       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .90137       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   745.0610     FROM MIGRAD    STATUS=CONVERGED    356 CALLS      696 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.815        .10615E-01** at limit **
   2  Prefactor     .10000E-03    102.40        .90712E-02** at limit **
   3  norm          .10008E-03    94.719        .83572E-01** at limit **
   4  Prefactor     1.1777        1.1440         .0000         .0000    
   5  Prefactor     .10000E-03    .20571       -.35757E-08** at limit **
   6  Prefactor     .10000E-03    .27079        .13206E-07** at limit **
   7  Prefactor     .10395E-02    .40692E-01   -.53865E-05** at limit **
   8  Prefactor     81.474        1.0011        .60196E-06    .12393E-02
   9  Prefactor     395.47        1.0019        .20112E-06   -.16943E-01
  10  Prefactor     5.0540        1.0050         .0000         .0000    
  11  Prefactor     .10000E-03    .27543       -.69047E-07** at limit **
  12  Prefactor     .10000E-03    .27010        .74093E-08** at limit **
  13  Prefactor     .10000E-03    .27913        .20062E-07** at limit **
  14  Prefactor     .10000E-03    .20608        .15020E-07** at limit **
  15  norm          .10000E-03    .20571        .68984E-09** at limit **
  16  Prefactor     179.41        1.0074        .29508E-06   -.41110E-02
  17  Prefactor     .10000E-03    .28530        .24466E-07** at limit **
  18  norm          .10000E-03    .26590        .40104E-07** at limit **
  19  Prefactor     .10000E-03    .20807       -.26947E-06** at limit **
  20  Prefactor     .10001E-03    .23625        .46743E-06** at limit **
  21  Prefactor     3.1506        1.0132         .0000         .0000    
  22  Prefactor     .10000E-03    .23553        .21136E-06** at limit **
  23  Prefactor     .10000E-03    .20571        .47113E-09** at limit **
  24  norm          .10001E-03    .20571        .11061E-05** at limit **
  25  norm          .10000E-03    .20571       -.19750E-07** at limit **
  26  norm          37.742        1.0023        .37198E-07   -.14945E-04
  27  Prefactor     4.5865        1.0038        .22788E-06    .55658E-05
  28  norm          49.526        .99412       -.51363E-06    .31636E-06
  29  Prefactor     .11906E-03    .75561E-01    .40191E-05** at limit **
  30  Prefactor     .39181        .59908        .18023E-04   -.12308E-04
  31  Prefactor     127.99        1.0012       -.95564E-07   -.69519E-02
  32  Normalizat    .10000E-01    .25505        .12960E-07** at limit **
  33  Prefactor     .90172        1.2464       -.11263E-05    .31695E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100084
  Prefactor  = 1.17765
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00103947
  Prefactor  = 81.4745
  Prefactor  = 395.475
  Prefactor  = 5.054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 179.414
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 3.15065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100011
  norm       = 0.0001
  norm       = 37.742
  Prefactor  = 4.58648
  norm       = 49.5258
  Prefactor  = 0.000119064
  Prefactor  = 0.391812
  Prefactor  = 127.986
  Normalizat = 0.01
  Prefactor  = 0.901716
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   745.0610     FROM HESSE     STATUS=FAILED        15 CALLS      711 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.815        .10615E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    102.40        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10008E-03    94.719        .83572E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     584.33        582.88         .0000       -1.5491    
   5  Prefactor     .10000E-03    .20571       -.35757E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .27079        .13206E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10395E-02    .40692E-01   -.53865E-05   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     81.474        1.0011        .60196E-06   -1.3900    
   9  Prefactor     395.47        1.0019        .20112E-06   -1.1704    
  10  Prefactor     5.0540        1.0050         .0000       -1.5258    
  11  Prefactor     .10000E-03    .27543       -.69047E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .27010        .74093E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .27913        .20062E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .20608        .15020E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .20571        .68984E-09   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     179.41        1.0074        .29508E-06   -1.3021    
  17  Prefactor     .10000E-03    .28530        .24466E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .26590        .40104E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .20807       -.26947E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    .23625        .46743E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.1506        1.0132         .0000       -1.5353    
  22  Prefactor     .10000E-03    .23553        .21136E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .20571        .47113E-09   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10001E-03    .20571        .11061E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .20571       -.19750E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          37.742        1.0023        .37198E-07   -1.4479    
  27  Prefactor     4.5865        1.0038        .22788E-06   -1.5280    
  28  norm          49.526        .99412       -.51363E-06   -1.4299    
  29  Prefactor     .11906E-03    .75561E-01    .40191E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .39181        .59908        .18023E-04   -1.5583    
  31  Prefactor     127.99        1.0012       -.95564E-07   -1.3440    
  32  Normalizat    .10000E-01    .25505        .12960E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .90172        1.2464       -.11263E-05   -.96081    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.327e-11
Minuit parameter uncertainties:
  1  2.88407e-07
  2  1.70288e-05
  3  0.00566411
  4  1.14405
  5  9.75751e-09
  6  1.30778e-06
  7  0.0123659
  8  1.0011
  9  1.00191
  10  1.00498
  11  4.48583e-07
  12  1.20934e-06
  13  2.35263e-06
  14  8.88118e-07
  15  6.67369e-09
  16  1.0074
  17  3.53668e-07
  18  3.48207e-06
  19  1.52501e-05
  20  7.05203e-05
  21  1.01318
  22  2.60115e-06
  23  1.26078e-07
  24  9.6497e-05
  25  6.69361e-07
  26  1.00228
  27  1.00383
  28  0.994116
  29  0.0024004
  30  0.599093
  31  1.00117
  32  6.17055e-08
  33  1.28957
Done.

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

Extracting fit parameters...

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  1.794e+02  1.007e+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

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  9.017e-01  1.290e+00  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.171e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.64
Ra Dec: 39.885 13.437
Photon Flux Upper Limit: 1.03e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.86e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/627842/likelihoodResults_550368001_550627201_4FGL_J0239.5+1326_daily_bin1200.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): 0
logL (Free Index) = 744.858187272
delta logL = 0.20276783542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 744.85816576
delta logL = 0.20278934727

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   744.8582     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      266 TOTAL
                     EDM=   .76E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     432.85        650.24        .98337E-04   -.95378E-07
   2  Index         1.5845        .81956        .52113E-02    .15132E-05
   3  Normalizat    .10000E-01    .18837        .71762E-03** at limit **
   4  Prefactor     .89867        .17098        .15907E-03    .27516E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 432.846
  Index      = 1.58454
  Normalizat = 0.01
  Prefactor  = 0.898669
 **********
 **   18 **HESSE 
 **********

 FCN=   744.8582     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     432.85        644.78        .19667E-04   -1.1516    
   2  Index         1.5845        .81262        .20845E-03   -.75199    
   3  Normalizat    .10000E-01    .18837        .14352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .89867        .17098        .63627E-05   -.96188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39581e-13
Minuit parameter uncertainties:
  1  656.085
  2  0.819483
  3  2.94477e-07
  4  0.171086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627842': 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): 0
logL (Free Index) = 744.858164567
delta logL = 0.202790539788

Extracting fit parameters...

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  4.328e+02  6.561e+02  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  1.585e+00  8.195e-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:  8.987e-01  1.711e-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  2.945e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.05
Ra Dec: 39.885 13.437
Photon Index (Free Index): 1.58 +/- 0.82
Photon Flux (Free Index): 1.05e-07 +/- 1.66e-07
Energy Flux (Free Index): 2.51e-04 +/- 6.18e-04

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/627842/cmap_HighResolution_550368001_550627201_4FGL_J0239.5+1326_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.86e-02', comment='SUCCESS', energy_flux2='2.51e-04', dlogl='2.03e-01', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-08-16 10:52:53.697117', photon_index_error2='0.82', photon_index2='1.58', ts='0.64', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.03e-06', energy_flux_error2='6.18e-04', EG='0.01', time_epoch_completed='1629136373.7', return_code='101', job_id='627842', GAL2='0.90', EG2='0.01', return_code2='0', photon_flux_error2='1.66e-07', ts2='1.05', photon_index='2.18' WHERE bin_id='1200' AND source_name='4FGL J0239.5+1326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 10:52:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 627842: <4FGL_J0239.5+1326_daily_bin1200> in cluster <slac> Done

Job <4FGL_J0239.5+1326_daily_bin1200> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 16 10:40:46 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 10:41:15 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:41:15 2021
Terminated at Mon Aug 16 10:52:55 2021
Results reported at Mon Aug 16 10:52:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.5+1326_daily_bin1200 39.8847 13.4366 550368001 550627201 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 :                                   494.41 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             296.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            729 sec.

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

