/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 3 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7399
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1239.5+0443_daily_bin200
RA = 189.885, Dec = 4.7284
tmin = 291168001, tmax = 291427201
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='865725', job_status='RUN', time_executed='2021-09-06 03:00:47.749285', time_epoch_executed='1630922447.75' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865725

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865725/ft1_4FGL_J1239.5+0443_daily_bin200.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865725/ft2_4FGL_J1239.5+0443_daily_bin200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865725/ft1_4FGL_J1239.5+0443_daily_bin200.fits outfile=/scratch/kocevski/865725/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin200.fits ra=189.885 dec=4.7284 rad=12.0 tmin=291168001.0 tmax=291427201.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.58
user 3.24
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/865725/ft2_4FGL_J1239.5+0443_daily_bin200.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/865725/ft2_4FGL_J1239.5+0443_daily_bin200.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/865725/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin200.fits evtable="EVENTS" outfile="/scratch/kocevski/865725/ft1_filtered_4FGL_J1239.5+0443_daily_bin200.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.62
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865725/ft1_filtered_4FGL_J1239.5+0443_daily_bin200.fits" evtable="EVENTS" scfile=/scratch/kocevski/865725/ft2_4FGL_J1239.5+0443_daily_bin200.fits sctable="SC_DATA" outfile=/scratch/kocevski/865725/ltcube_291168001_291427201_4FGL_J1239.5+0443_daily_bin200.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/865725/ft2_4FGL_J1239.5+0443_daily_bin200.fits
.....................!
real 16.14
user 15.65
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865725/ft1_filtered_4FGL_J1239.5+0443_daily_bin200.fits evtable="EVENTS" scfile=/scratch/kocevski/865725/ft2_4FGL_J1239.5+0443_daily_bin200.fits sctable="SC_DATA" expcube=/scratch/kocevski/865725/ltcube_291168001_291427201_4FGL_J1239.5+0443_daily_bin200.fits outfile=/scratch/kocevski/865725/expmap_291168001_291427201_4FGL_J1239.5+0443_daily_bin200.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/865725/ltcube_291168001_291427201_4FGL_J1239.5+0443_daily_bin200.fits
.....................!
real 193.43
user 186.35
sys 6.31

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

Setting source of interest to:
4FGL J1239.5+0443 @ 189.885 4.7284

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/865725/ft1_filtered_4FGL_J1239.5+0443_daily_bin200.fits scfile=/scratch/kocevski/865725/ft2_4FGL_J1239.5+0443_daily_bin200.fits outfile=/scratch/kocevski/865725/cmap_291168001_291427201_4FGL_J1239.5+0443_daily_bin200.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=189.885 yref=4.7284 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.67
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865725/ft1_filtered_4FGL_J1239.5+0443_daily_bin200.fits scfile=/scratch/kocevski/865725/ft2_4FGL_J1239.5+0443_daily_bin200.fits outfile=/scratch/kocevski/865725/cmap_HighResolution_291168001_291427201_4FGL_J1239.5+0443_daily_bin200.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=189.885 yref=4.7284 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.67
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/865725/ft1_filtered_4FGL_J1239.5+0443_daily_bin200.fits evtable="EVENTS" scfile=/scratch/kocevski/865725/ft2_4FGL_J1239.5+0443_daily_bin200.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865725/Model_4FGL_J1239.5+0443_daily_bin200.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/865725/ft1_filtered_4FGL_J1239.5+0443_daily_bin200.fits.....................!
real 63.32
user 58.35
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/865725/ft1_filtered_4FGL_J1239.5+0443_daily_bin200.fits', '/scratch/kocevski/865725/ft2_4FGL_J1239.5+0443_daily_bin200.fits', expMap='/scratch/kocevski/865725/expmap_291168001_291427201_4FGL_J1239.5+0443_daily_bin200.fits', expCube='/scratch/kocevski/865725/ltcube_291168001_291427201_4FGL_J1239.5+0443_daily_bin200.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/865725/Model_4FGL_J1239.5+0443_daily_bin200.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1239.5+0443'

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  4.221e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.228e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
296         beta:  1.234e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  5.025e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/865725/ft1_filtered_4FGL_J1239.5+0443_daily_bin200.fits
Spacecraft file(s): /scratch/kocevski/865725/ft2_4FGL_J1239.5+0443_daily_bin200.fits
Exposure map: /scratch/kocevski/865725/expmap_291168001_291427201_4FGL_J1239.5+0443_daily_bin200.fits
Exposure cube: /scratch/kocevski/865725/ltcube_291168001_291427201_4FGL_J1239.5+0443_daily_bin200.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/865725/Model_4FGL_J1239.5+0443_daily_bin200.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) = 6850.76505621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1341       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.910       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3864       1.0000         .10000E-03   10000.    
     9 'norm      '    5.1350       1.0000         .10000E-03   10000.    
    10 'norm      '    .10492E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4481       1.0000         .10000E-03   10000.    
    14 'norm      '    8.2245       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.321       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.9301       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2962       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    52.323       1.0000         .10000E-03   10000.    
    22 'Prefactor '    54.660       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .27553E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.3715       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4680       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .90517       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6850.726     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     4165 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.851        .27826E-06** at limit **
   2  Prefactor     .10000E-03    8.4912        .47295E-06** at limit **
   3  Prefactor     5.1348        10.019        .27577E-06    .20914E-04
   4  Prefactor     .10000E-03    34.934        .19582E-06** at limit **
   5  Prefactor     .10000E-03    12.341        .35792E-07** at limit **
   6  Prefactor     .10000E-03    10.095        .67986E-07** at limit **
   7  Prefactor     11.914        19.425       -.43134E-06   -.96764E-05
   8  Prefactor     3.3813        48.841       -.72723E-05   -.25885E-04
   9  norm          5.1361        4.7622        .16651E-05    .86695E-03
  10  norm          .10029E-03    2.3235       -.62825E-06** at limit **
  11  Prefactor     .10000E-03    9.5549        .14958E-06** at limit **
  12  norm          .10000E-03    56.684        .23955E-06** at limit **
  13  Prefactor     8.4724        725.20       -.58425E-05    .30728E-06
  14  norm          8.2256        1.1589       -.11090E-06   -.15802E-02
  15  Prefactor     12.325        11.065       -.33047E-06   -.39617E-04
  16  Prefactor     .10000E-03    29.142       -.26156E-06** at limit **
  17  Prefactor     .10012E-03    6.3753        .36678E-05** at limit **
  18  norm          2.9304        1.9230       -.57040E-08   -.32724E-05
  19  Prefactor     3.2962        9.4802        .92305E-06   -.52115E-04
  20  Prefactor     .10000E-03    54.227        .75061E-06** at limit **
  21  Prefactor     52.315        66.582       -.37178E-06   -.26989E-04
  22  Prefactor     54.554        50.698       -.13462E-06   -.84701E-04
  23  norm          .10000E-03    13.218        .59829E-07** at limit **
  24  Prefactor     .10001E-03    8.9409       -.65495E-05** at limit **
  25  norm          1.3715        .42410        .12870E-07   -.26465E-03
  26  Prefactor     .10000E-03    8.1495       -.61175E-06** at limit **
  27  Prefactor     .10000E-03    37.537        .30552E-06** at limit **
  28  Prefactor     .10000E-03    20.658        .47090E-06** at limit **
  29  Prefactor     .10000E-03    4.7835        .11598E-06** at limit **
  30  Normalizat    1.4676        .23773        .25286E-05   -.11129E-03
  31  Prefactor     .90552        .18820       -.28427E-05   -.55116E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.13482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9139
  Prefactor  = 3.38129
  norm       = 5.13611
  norm       = 0.000100292
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.47243
  norm       = 8.22558
  Prefactor  = 12.3247
  Prefactor  = 0.0001
  Prefactor  = 0.000100122
  norm       = 2.93044
  Prefactor  = 3.29619
  Prefactor  = 0.0001
  Prefactor  = 52.3152
  Prefactor  = 54.5539
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 1.37155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.46761
  Prefactor  = 0.905523
 **********
 **   18 **HESSE 
 **********

 FCN=   6850.726     FROM HESSE     STATUS=OK           618 CALLS     4783 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.5494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1348        10.014        .17743E-03   -1.5255    
   4  Prefactor     .10000E-03    34.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.914        19.375        .11608E-03   -1.5017    
   8  Prefactor     3.3813        47.292        .21987E-03   -1.5340    
   9  norm          5.1361        4.7275        .57569E-03   -1.5255    
  10  norm          .10029E-03    28.769        .22177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.5565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    56.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.4724        711.86        .13792E-03   -1.5126    
  14  norm          8.2256        1.1262        .29502E-04   -1.5134    
  15  Prefactor     12.325        11.076        .11412E-03   -1.5006    
  16  Prefactor     .10000E-03    29.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10012E-03    16.558        .33469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.9304        1.9160        .88142E-04   -1.5366    
  19  Prefactor     3.2962        9.4124        .22300E-03   -1.5345    
  20  Prefactor     .10000E-03    54.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     52.315        68.015        .55447E-04   -1.4260    
  22  Prefactor     54.554        50.726        .27127E-03   -1.4229    
  23  norm          .10000E-03    13.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    9.2685        .21425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.3715        .43193        .26470E-04   -1.5474    
  26  Prefactor     .10000E-03    8.1861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    37.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    20.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.7917        .17680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.4676        .27825        .29862E-03   -.78693    
  31  Prefactor     .90552        .21941        .29858E-03   -.95948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81351e-08
Minuit parameter uncertainties:
  1  0.000101458
  2  4.35551e-05
  3  10.0176
  4  3.5419e-05
  5  1.12178e-05
  6  1.9493e-06
  7  19.3849
  8  25.3149
  9  4.72785
  10  0.00580158
  11  2.25588e-05
  12  0.000174157
  13  157.295
  14  1.1262
  15  11.0777
  16  7.43925e-05
  17  0.0028395
  18  1.91603
  19  9.41667
  20  0.000181333
  21  68.1165
  22  50.766
  23  2.83253e-06
  24  0.000453182
  25  0.431931
  26  4.87525e-05
  27  8.78892e-05
  28  4.24177e-05
  29  7.14275e-06
  30  0.278536
  31  0.219628
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  2.930e+00  1.916e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.228e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
296         beta:  1.234e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  5.025e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  9.055e-01  2.196e-01  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.468e+00  2.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.32
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 7.49e-08 +/- 4.90e-08
Energy Flux (Fixed Index): 2.63e-05 +/- 1.72e-05

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) = 6850.48691775
delta logL = 0.238899516513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6850.38656882
delta logL = 0.33924844702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6964       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5249       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89365       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6850.387     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      216 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6960        1.3477        .80766E-02    .19113E-03
   2  alpha         1.5245        .44661        .37621       -.57397E-04
   3  Normalizat    1.5053        .22445        .66907E-01    .12810E-04
   4  Prefactor     .89363        .18223        .67951E-01    .26514E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.69602
  alpha      = 1.52447
  Normalizat = 1.50533
  Prefactor  = 0.893631
 **********
 **   18 **HESSE 
 **********

 FCN=   6850.387     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6960        2.4305        .78476E-04   -1.5448    
   2  alpha         1.5245        .88436        .14865E-01   -.40086    
   3  Normalizat    1.5053        .26828        .29596E-03   -.77629    
   4  Prefactor     .89363        .21692        .30060E-03   -.96364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1372e-11
Minuit parameter uncertainties:
  1  2.43067
  2  0.907699
  3  0.268531
  4  0.217128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865725': 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) = 6850.38656866
delta logL = 0.339248614161

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  1.696e+00  2.431e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  1.524e+00  9.077e-01  0.000e+00  5.000e+00 ( 1.000e+00)
296         beta:  1.234e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  5.025e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  8.936e-01  2.171e-01  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.505e+00  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.03
Ra Dec: 189.885 4.728
Photon Index (Free Index): 1.52 +/- 0.91
Photon Flux (Free Index): 3.00e-08 +/- 4.73e-08
Energy Flux (Free Index): 3.12e-05 +/- 2.81e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/865725/cmap_HighResolution_291168001_291427201_4FGL_J1239.5+0443_daily_bin200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.49e-08', energy_flux2='3.12e-05', photon_flux_error='4.90e-08', dlogl='3.39e-01', energy_flux='2.63e-05', photon_flux2='3.00e-08', job_status='DONE', time_completed='2021-09-06 03:14:44.792901', photon_index_error2='0.91', photon_index2='1.52', ts='4.32', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.81e-05', EG='1.47', time_epoch_completed='1630923284.79', return_code='0', job_id='865725', GAL2='0.89', EG2='1.51', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='4.73e-08', ts2='5.03', photon_index='2.23' WHERE bin_id='200' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:14:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 865725: <4FGL_J1239.5+0443_daily_bin200> in cluster <slac> Done

Job <4FGL_J1239.5+0443_daily_bin200> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 03:00:25 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 03:00:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 03:00:32 2021
Terminated at Mon Sep  6 03:14:45 2021
Results reported at Mon Sep  6 03:14:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin200 189.885 4.7284 291168001 291427201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1239.5+0443 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   826.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            860 sec.

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

