/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 = 7567
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1239.5+0443_daily_bin179
RA = 189.885, Dec = 4.7284
tmin = 285724801, tmax = 285984001
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='865691', job_status='RUN', time_executed='2021-09-06 03:00:41.812119', time_epoch_executed='1630922441.81' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865691

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865691/ft1_4FGL_J1239.5+0443_daily_bin179.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865691/ft2_4FGL_J1239.5+0443_daily_bin179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865691/ft1_4FGL_J1239.5+0443_daily_bin179.fits outfile=/scratch/kocevski/865691/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin179.fits ra=189.885 dec=4.7284 rad=12.0 tmin=285724801.0 tmax=285984001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.29
user 3.95
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/865691/ft2_4FGL_J1239.5+0443_daily_bin179.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/865691/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin179.fits evtable="EVENTS" outfile="/scratch/kocevski/865691/ft1_filtered_4FGL_J1239.5+0443_daily_bin179.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865691/ft1_filtered_4FGL_J1239.5+0443_daily_bin179.fits" evtable="EVENTS" scfile=/scratch/kocevski/865691/ft2_4FGL_J1239.5+0443_daily_bin179.fits sctable="SC_DATA" outfile=/scratch/kocevski/865691/ltcube_285724801_285984001_4FGL_J1239.5+0443_daily_bin179.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/865691/ft2_4FGL_J1239.5+0443_daily_bin179.fits
.....................!
real 13.68
user 13.27
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865691/ft1_filtered_4FGL_J1239.5+0443_daily_bin179.fits evtable="EVENTS" scfile=/scratch/kocevski/865691/ft2_4FGL_J1239.5+0443_daily_bin179.fits sctable="SC_DATA" expcube=/scratch/kocevski/865691/ltcube_285724801_285984001_4FGL_J1239.5+0443_daily_bin179.fits outfile=/scratch/kocevski/865691/expmap_285724801_285984001_4FGL_J1239.5+0443_daily_bin179.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/865691/ltcube_285724801_285984001_4FGL_J1239.5+0443_daily_bin179.fits
.....................!
real 191.39
user 186.52
sys 4.29

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/865691/ft1_filtered_4FGL_J1239.5+0443_daily_bin179.fits scfile=/scratch/kocevski/865691/ft2_4FGL_J1239.5+0443_daily_bin179.fits outfile=/scratch/kocevski/865691/cmap_285724801_285984001_4FGL_J1239.5+0443_daily_bin179.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.60
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865691/ft1_filtered_4FGL_J1239.5+0443_daily_bin179.fits scfile=/scratch/kocevski/865691/ft2_4FGL_J1239.5+0443_daily_bin179.fits outfile=/scratch/kocevski/865691/cmap_HighResolution_285724801_285984001_4FGL_J1239.5+0443_daily_bin179.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.83
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/865691/ft1_filtered_4FGL_J1239.5+0443_daily_bin179.fits', '/scratch/kocevski/865691/ft2_4FGL_J1239.5+0443_daily_bin179.fits', expMap='/scratch/kocevski/865691/expmap_285724801_285984001_4FGL_J1239.5+0443_daily_bin179.fits', expCube='/scratch/kocevski/865691/ltcube_285724801_285984001_4FGL_J1239.5+0443_daily_bin179.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/865691/Model_4FGL_J1239.5+0443_daily_bin179.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/865691/ft1_filtered_4FGL_J1239.5+0443_daily_bin179.fits
Spacecraft file(s): /scratch/kocevski/865691/ft2_4FGL_J1239.5+0443_daily_bin179.fits
Exposure map: /scratch/kocevski/865691/expmap_285724801_285984001_4FGL_J1239.5+0443_daily_bin179.fits
Exposure cube: /scratch/kocevski/865691/ltcube_285724801_285984001_4FGL_J1239.5+0443_daily_bin179.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/865691/Model_4FGL_J1239.5+0443_daily_bin179.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) = 5978.58620402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.956       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    66.293       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5902       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.9359       1.0000         .10000E-03   10000.    
    10 'norm      '    4.1504       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.2997       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.738       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0853       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.213       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.794       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.0750       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.1240       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11264E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3561       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0011       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=   5978.426     FROM MIGRAD    STATUS=CONVERGED    807 CALLS     4188 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.967        82.531        .29726E-06    .51615E-05
   2  Prefactor     .10000E-03    6.9277        .92165E-08** at limit **
   3  Prefactor     .10000E-03    4.8112       -.24353E-07** at limit **
   4  Prefactor     .10000E-03    68.046        .17587E-06** at limit **
   5  Prefactor     66.290        52.232        .33044E-08   -.53631E-05
   6  Prefactor     8.5902        17.063        .17150E-05   -.70846E-05
   7  Prefactor     .10000E-03    13.995        .12073E-06** at limit **
   8  Prefactor     .10000E-03    20.124       -.46119E-06** at limit **
   9  norm          4.9358        3.0407        .16639E-06    .15841E-05
  10  norm          4.1502        3.8189       -.12738E-07   -.15837E-04
  11  Prefactor     .10000E-03    55.704       -.59827E-06** at limit **
  12  norm          .10000E-03    16.646       -.91558E-07** at limit **
  13  Prefactor     .10000E-03    193.08       -.15050E-05** at limit **
  14  norm          7.2995        1.1353       -.26219E-07   -.98401E-04
  15  Prefactor     .10000E-03    6.6125       -.36576E-08** at limit **
  16  Prefactor     40.736        35.025       -.10397E-06   -.41374E-05
  17  Prefactor     .10000E-03    3.4098        .42025E-08** at limit **
  18  norm          1.0853        1.7749        .26487E-06    .40510E-04
  19  Prefactor     .10000E-03    2.2216        .62850E-08** at limit **
  20  Prefactor     .10000E-03    24.530        .10565E-06** at limit **
  21  Prefactor     10.214        34.769        .15664E-06    .47105E-06
  22  Prefactor     23.794        50.584       -.21432E-06   -.14656E-05
  23  norm          .10000E-03    7.5766        .21847E-07** at limit **
  24  Prefactor     .10000E-03    11.896       -.35091E-06** at limit **
  25  norm          1.0750        .35623        .11799E-07   -.56841E-04
  26  Prefactor     7.1237        13.567        .33904E-05   -.17898E-04
  27  Prefactor     .10000E-03    24.630        .10565E-06** at limit **
  28  Prefactor     .10000E-03    106.20        .43051E-05** at limit **
  29  Prefactor     .10000E-03    4.8477        .32703E-08** at limit **
  30  Normalizat    1.3563        .25448       -.27782E-07   -.25827E-04
  31  Prefactor     1.0010        .19664       -.43961E-06   -.14501E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.9665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.2901
  Prefactor  = 8.59017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.93585
  norm       = 4.15016
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 7.29952
  Prefactor  = 0.0001
  Prefactor  = 40.7356
  Prefactor  = 0.0001
  norm       = 1.08529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2139
  Prefactor  = 23.7943
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07499
  Prefactor  = 7.1237
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.35629
  Prefactor  = 1.00096
 **********
 **   18 **HESSE 
 **********

 FCN=   5978.426     FROM HESSE     STATUS=OK           616 CALLS     4804 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.967        82.530        .85482E-04   -1.4770    
   2  Prefactor     .10000E-03    6.9691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8273        .16560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    68.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     66.290        52.492        .49293E-04   -1.4078    
   6  Prefactor     8.5902        17.059        .68384E-03   -1.5122    
   7  Prefactor     .10000E-03    14.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.9358        3.0348        .51103E-03   -1.5264    
  10  norm          4.1502        3.8129        .13606E-03   -1.5301    
  11  Prefactor     .10000E-03    56.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    16.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    194.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.2995        1.1381        .29569E-04   -1.5168    
  15  Prefactor     .10000E-03    6.6296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     40.736        35.329        .62803E-04   -1.4431    
  17  Prefactor     .10000E-03    3.4131        .13944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0853        1.7316        .12443E-03   -1.5500    
  19  Prefactor     .10000E-03    2.2232        .11255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.214        34.915        .12538E-03   -1.5069    
  22  Prefactor     23.794        50.590        .41059E-03   -1.4732    
  23  norm          .10000E-03    7.5778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.0750        .35770        .25008E-04   -1.5501    
  26  Prefactor     7.1237        13.602        .75146E-03   -1.5174    
  27  Prefactor     .10000E-03    24.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    110.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.8546        .16626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3563        .30261        .30289E-03   -.81901    
  31  Prefactor     1.0010        .23184        .28214E-03   -.92698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84578e-11
Minuit parameter uncertainties:
  1  82.9632
  2  6.27329e-06
  3  1.18672e-07
  4  0.000126918
  5  52.5286
  6  17.0689
  7  4.99265e-05
  8  7.90077e-05
  9  3.03486
  10  3.81313
  11  0.000272171
  12  3.40968e-05
  13  0.00188986
  14  1.13812
  15  4.6631e-06
  16  35.3469
  17  7.10606e-07
  18  1.73163
  19  3.473e-07
  20  4.21317e-05
  21  34.9852
  22  50.6817
  23  4.89507e-06
  24  6.13182e-05
  25  0.357706
  26  13.6079
  27  4.19497e-05
  28  0.000948452
  29  1.41835e-07
  30  0.30301
  31  0.232068
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  1.085e+00  1.732e+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:  1.001e+00  2.321e-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.356e+00  3.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 189.885 4.728
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/865691/likelihoodResults_285724801_285984001_4FGL_J1239.5+0443_daily_bin179.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) = 5977.92542304
delta logL = 0.501026288045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5977.91840105
delta logL = 0.50804827807

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85758       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6981       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0387       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=   5977.918     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85496        11.811        .12653E-01    .91283E-03
   2  alpha         3.7003        4.1466        .49747        .41404E-04
   3  Normalizat    1.2826        .57069E-01    .69922E-01   -.11606E-04
   4  Prefactor     1.0386        .47225E-01    .62772E-01   -.19265E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.854965
  alpha      = 3.7003
  Normalizat = 1.28257
  Prefactor  = 1.03858
 **********
 **   18 **HESSE 
 **********

 FCN=   5977.918     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      245 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85496        31.849        .60927E-04   -1.5523    
   2  alpha         3.7003        3.0715        .23490E-01    .50079    
   3  Normalizat    1.2826        .35002        .30937E-03   -.84088    
   4  Prefactor     1.0386        .30173        .27762E-03   -.91454    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.87282e-07
Minuit parameter uncertainties:
  1  10.4418
  2  10.6522
  3  0.350664
  4  0.302228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865691': 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) = 5977.91839978
delta logL = 0.5080495483

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  8.550e-01  1.044e+01  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  3.700e+00  1.065e+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:  1.039e+00  3.022e-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.283e+00  3.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.58
Ra Dec: 189.885 4.728
Photon Index (Free Index): 3.70 +/- 10.65
Photon Flux (Free Index): 1.02e-07 +/- 1.18e-07
Energy Flux (Free Index): 1.67e-05 +/- 3.18e-05

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/865691/cmap_HighResolution_285724801_285984001_4FGL_J1239.5+0443_daily_bin179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-05', comment='SUCCESS', energy_flux2='1.67e-05', dlogl='5.08e-01', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-06 03:15:19.221415', photon_index_error2='10.65', photon_index2='3.70', ts='0.50', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='3.18e-05', EG='1.36', time_epoch_completed='1630923319.22', return_code='0', job_id='865691', GAL2='1.04', EG2='1.28', return_code2='102', photon_flux_error2='1.18e-07', ts2='1.58', photon_index='2.23' WHERE bin_id='179' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:15:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 865691: <4FGL_J1239.5+0443_daily_bin179> in cluster <slac> Done

Job <4FGL_J1239.5+0443_daily_bin179> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 03:00:22 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 03:00:26 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:26 2021
Terminated at Mon Sep  6 03:15:20 2021
Results reported at Mon Sep  6 03:15:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin179 189.885 4.7284 285724801 285984001 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 :                                   868.23 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             320.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            898 sec.

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

