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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin611
RA = 189.885, Dec = 4.7284
tmin = 397699201, tmax = 397958401
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='867951', job_status='RUN', time_executed='2021-09-06 03:06:53.288146', time_epoch_executed='1630922813.29' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867951

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867951/ft1_4FGL_J1239.5+0443_daily_bin611.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867951/ft2_4FGL_J1239.5+0443_daily_bin611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867951/ft1_4FGL_J1239.5+0443_daily_bin611.fits outfile=/scratch/kocevski/867951/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin611.fits ra=189.885 dec=4.7284 rad=12.0 tmin=397699201.0 tmax=397958401.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.57
user 3.31
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867951/ft1_filtered_4FGL_J1239.5+0443_daily_bin611.fits evtable="EVENTS" scfile=/scratch/kocevski/867951/ft2_4FGL_J1239.5+0443_daily_bin611.fits sctable="SC_DATA" expcube=/scratch/kocevski/867951/ltcube_397699201_397958401_4FGL_J1239.5+0443_daily_bin611.fits outfile=/scratch/kocevski/867951/expmap_397699201_397958401_4FGL_J1239.5+0443_daily_bin611.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/867951/ltcube_397699201_397958401_4FGL_J1239.5+0443_daily_bin611.fits
.....................!
real 191.23
user 184.70
sys 5.70

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/867951/ft1_filtered_4FGL_J1239.5+0443_daily_bin611.fits scfile=/scratch/kocevski/867951/ft2_4FGL_J1239.5+0443_daily_bin611.fits outfile=/scratch/kocevski/867951/cmap_397699201_397958401_4FGL_J1239.5+0443_daily_bin611.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867951/ft1_filtered_4FGL_J1239.5+0443_daily_bin611.fits scfile=/scratch/kocevski/867951/ft2_4FGL_J1239.5+0443_daily_bin611.fits outfile=/scratch/kocevski/867951/cmap_HighResolution_397699201_397958401_4FGL_J1239.5+0443_daily_bin611.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38249E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3689       1.0000         .10000E-03   10000.    
     4 'Prefactor '    135.53       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.083       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8615       1.0000         .10000E-03   10000.    
     9 'norm      '    .10293E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10703E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .82796       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.098       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.705       1.0000         .10000E-03   10000.    
    18 'norm      '    3.0842       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.7968       1.0000         .10000E-03   10000.    
    20 'Prefactor '    63.152       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10799E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.0661       1.0000         .10000E-03   10000.    
    26 'Prefactor '    36.262       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    19.966       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0920       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0799       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=   6673.670     FROM MIGRAD    STATUS=CONVERGED    793 CALLS     4161 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    492.59       -.10279E-03** at limit **
   2  Prefactor     .10000E-03    5.3168       -.24184E-06** at limit **
   3  Prefactor     3.3705        9.1873       -.18149E-05   -.20255E-03
   4  Prefactor     135.57        99.243        .24978E-04    .19794E-04
   5  Prefactor     .10000E-03    22.628       -.24991E-05** at limit **
   6  Prefactor     .10000E-03    19.714        .81024E-06** at limit **
   7  Prefactor     32.057        30.678        .18034E-04    .45148E-04
   8  Prefactor     6.8555        15.083       -.23263E-05   -.16482E-03
   9  norm          .10000E-03    2.4441        .33091E-06** at limit **
  10  norm          .10000E-03    1.1134       -.23738E-06** at limit **
  11  Prefactor     .10000E-03    14.059       -.43538E-05** at limit **
  12  norm          .10000E-03    14.404        .21892E-05** at limit **
  13  Prefactor     .10000E-03    53.189       -.43290E-05** at limit **
  14  norm          .82830        .61759       -.74651E-07   -.81779E-03
  15  Prefactor     .10000E-03    5.8981        .38828E-06** at limit **
  16  Prefactor     25.111        23.082       -.13996E-04   -.69963E-05
  17  Prefactor     11.706        10.284        .23825E-06   -.13593E-05
  18  norm          3.0844        1.8356        .77378E-07   -.70022E-04
  19  Prefactor     8.7965        8.2921       -.10560E-05   -.17172E-02
  20  Prefactor     63.110        50.952       -.10477E-04    .11254E-04
  21  Prefactor     .10000E-03    21.765        .23850E-05** at limit **
  22  Prefactor     .10000E-03    21.538        .30273E-05** at limit **
  23  norm          .10000E-03    6.2583        .48234E-07** at limit **
  24  Prefactor     .10000E-03    14.732        .55479E-05** at limit **
  25  norm          2.0661        .38840        .35648E-08    .40677E-03
  26  Prefactor     36.275        19.084       -.61074E-05   -.87560E-04
  27  Prefactor     .10000E-03    17.544       -.62571E-05** at limit **
  28  Prefactor     19.975        21.296       -.91748E-05   -.12052E-05
  29  Prefactor     .10000E-03    3.6525        .14961E-07** at limit **
  30  Normalizat    1.0918        .22859        .37926E-05   -.43594E-04
  31  Prefactor     1.0800        .17634       -.18581E-06    .15059E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 3.3705
  Prefactor  = 135.573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.0565
  Prefactor  = 6.85554
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.828303
  Prefactor  = 0.0001
  Prefactor  = 25.1113
  Prefactor  = 11.7061
  norm       = 3.08444
  Prefactor  = 8.7965
  Prefactor  = 63.11
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.06614
  Prefactor  = 36.2746
  Prefactor  = 0.0001
  Prefactor  = 19.9755
  Prefactor  = 0.0001
  Normalizat = 1.09182
  Prefactor  = 1.08
 **********
 **   18 **HESSE 
 **********

 FCN=   6673.670     FROM HESSE     STATUS=OK           620 CALLS     4781 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    497.17        .19549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.3478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3705        9.1903        .22047E-03   -1.5341    
   4  Prefactor     135.57        99.309        .17297E-03   -1.3374    
   5  Prefactor     .10000E-03    22.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.057        30.644        .70741E-04   -1.4575    
   8  Prefactor     6.8555        13.449        .15317E-03   -1.5184    
   9  norm          .10000E-03    4.6588        .21952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.1294        .84112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    53.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .82830        .59536        .49887E-04   -1.5526    
  15  Prefactor     .10000E-03    5.9233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.111        23.083        .79960E-04   -1.4705    
  17  Prefactor     11.706        10.270        .11709E-03   -1.5024    
  18  norm          3.0844        1.8267        .79758E-04   -1.5357    
  19  Prefactor     8.7965        8.3390        .67572E-03   -1.5115    
  20  Prefactor     63.110        50.848        .50496E-04   -1.4117    
  21  Prefactor     .10000E-03    21.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.2588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.0661        .38879        .21278E-04   -1.5420    
  26  Prefactor     36.275        19.184        .66552E-04   -1.4503    
  27  Prefactor     .10000E-03    17.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     19.975        21.303        .89636E-04   -1.4814    
  29  Prefactor     .10000E-03    3.6561        .15248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0918        .27296        .31524E-03   -.90015    
  31  Prefactor     1.0800        .21071        .25753E-03   -.90108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14054e-09
Minuit parameter uncertainties:
  1  0.00290045
  2  5.88099e-05
  3  9.19411
  4  99.4315
  5  0.000110059
  6  2.13539e-05
  7  30.6585
  8  13.455
  9  7.04989e-05
  10  2.24387e-05
  11  4.56661e-05
  12  3.6403e-05
  13  7.52852e-05
  14  0.595365
  15  0.000101831
  16  23.091
  17  10.2715
  18  1.82669
  19  8.34006
  20  50.8831
  21  3.96357e-06
  22  2.7081e-05
  23  5.94984e-06
  24  0.000200127
  25  0.388787
  26  19.187
  27  6.61853e-06
  28  21.3106
  29  8.60562e-07
  30  0.273317
  31  0.21087
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  3.084e+00  1.827e+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.080e+00  2.109e-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.092e+00  2.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.89
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 7.88e-08 +/- 4.67e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 1.64e-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) = 6673.2144946
delta logL = 0.455341564199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6673.2115956
delta logL = 0.458240562952

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0605       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9217       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1246       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=   6673.212     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0587        21.187        .57972E-02    .49301E-03
   2  alpha         2.9212        3.8547        .39101        .54643E-04
   3  Normalizat    1.0042        .10493        .73788E-01    .92219E-05
   4  Prefactor     1.1245        .69077E-01    .57184E-01   -.34904E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.05872
  alpha      = 2.92123
  Normalizat = 1.00423
  Prefactor  = 1.12449
 **********
 **   18 **HESSE 
 **********

 FCN=   6673.212     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0587        1.8007        .62490E-04   -1.5358    
   2  alpha         2.9212        .72968        .14545E-01    .16930    
   3  Normalizat    1.0042        .27411        .32649E-03   -.92889    
   4  Prefactor     1.1245        .21546        .25286E-03   -.88688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90619e-11
Minuit parameter uncertainties:
  1  1.80074
  2  0.740784
  3  0.274492
  4  0.215623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867951': 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) = 6673.21159347
delta logL = 0.458242699028

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  3.059e+00  1.801e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.921e+00  7.408e-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.124e+00  2.156e-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.004e+00  2.745e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.90
Ra Dec: 189.885 4.728
Photon Index (Free Index): 2.92 +/- 0.74
Photon Flux (Free Index): 1.49e-07 +/- 9.39e-08
Energy Flux (Free Index): 3.18e-05 +/- 1.50e-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/867951/cmap_HighResolution_397699201_397958401_4FGL_J1239.5+0443_daily_bin611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.88e-08', energy_flux2='3.18e-05', photon_flux_error='4.67e-08', dlogl='4.58e-01', energy_flux='2.77e-05', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-09-06 03:20:03.593803', photon_index_error2='0.74', photon_index2='2.92', ts='7.89', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='1.09', time_epoch_completed='1630923603.59', return_code='0', job_id='867951', GAL2='1.12', EG2='1.00', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='9.39e-08', ts2='8.90', photon_index='2.23' WHERE bin_id='611' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:20:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 867951: <4FGL_J1239.5+0443_daily_bin611> in cluster <slac> Done

Job <4FGL_J1239.5+0443_daily_bin611> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 03:06:10 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 03:06:34 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:06:34 2021
Terminated at Mon Sep  6 03:20:04 2021
Results reported at Mon Sep  6 03:20:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin611 189.885 4.7284 397699201 397958401 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 :                                   787.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            834 sec.

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

