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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin556
RA = 189.885, Dec = 4.7284
tmin = 383443201, tmax = 383702401
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='867872', job_status='RUN', time_executed='2021-09-06 03:06:39.219268', time_epoch_executed='1630922799.22' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867872

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867872/ft1_4FGL_J1239.5+0443_daily_bin556.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867872/ft2_4FGL_J1239.5+0443_daily_bin556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867872/ft1_4FGL_J1239.5+0443_daily_bin556.fits outfile=/scratch/kocevski/867872/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin556.fits ra=189.885 dec=4.7284 rad=12.0 tmin=383443201.0 tmax=383702401.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.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/867872/ft2_4FGL_J1239.5+0443_daily_bin556.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/867872/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin556.fits evtable="EVENTS" outfile="/scratch/kocevski/867872/ft1_filtered_4FGL_J1239.5+0443_daily_bin556.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.60
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/867872/ft1_filtered_4FGL_J1239.5+0443_daily_bin556.fits" evtable="EVENTS" scfile=/scratch/kocevski/867872/ft2_4FGL_J1239.5+0443_daily_bin556.fits sctable="SC_DATA" outfile=/scratch/kocevski/867872/ltcube_383443201_383702401_4FGL_J1239.5+0443_daily_bin556.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/867872/ft2_4FGL_J1239.5+0443_daily_bin556.fits
.....................!
real 16.63
user 16.08
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867872/ft1_filtered_4FGL_J1239.5+0443_daily_bin556.fits evtable="EVENTS" scfile=/scratch/kocevski/867872/ft2_4FGL_J1239.5+0443_daily_bin556.fits sctable="SC_DATA" expcube=/scratch/kocevski/867872/ltcube_383443201_383702401_4FGL_J1239.5+0443_daily_bin556.fits outfile=/scratch/kocevski/867872/expmap_383443201_383702401_4FGL_J1239.5+0443_daily_bin556.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/867872/ltcube_383443201_383702401_4FGL_J1239.5+0443_daily_bin556.fits
.....................!
real 194.88
user 188.92
sys 5.34

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/867872/ft1_filtered_4FGL_J1239.5+0443_daily_bin556.fits scfile=/scratch/kocevski/867872/ft2_4FGL_J1239.5+0443_daily_bin556.fits outfile=/scratch/kocevski/867872/cmap_383443201_383702401_4FGL_J1239.5+0443_daily_bin556.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867872/ft1_filtered_4FGL_J1239.5+0443_daily_bin556.fits scfile=/scratch/kocevski/867872/ft2_4FGL_J1239.5+0443_daily_bin556.fits outfile=/scratch/kocevski/867872/cmap_HighResolution_383443201_383702401_4FGL_J1239.5+0443_daily_bin556.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.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.165       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .78681       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11875E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.961       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2222       1.0000         .10000E-03   10000.    
    10 'norm      '    .12424E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .24986E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.7739       1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.216       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4095       1.0000         .10000E-03   10000.    
    18 'norm      '    18.654       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10707E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .48995       1.0000         .10000E-03   10000.    
    26 'Prefactor '    33.711       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .14593E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.9939       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2021       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .86545       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=   6169.389     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     3517 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.814       -.52378E-05** at limit **
   2  Prefactor     13.170        10.725        .86456E-07    .92958E-05
   3  Prefactor     .78583        8.9992        .40953E-06   -.32495E-03
   4  Prefactor     .10000E-03    38.338       -.18430E-05** at limit **
   5  Prefactor     .10000E-03    19.560        .16130E-05** at limit **
   6  Prefactor     .10000E-03    10.290       -.37508E-08** at limit **
   7  Prefactor     30.949        24.392        .45189E-05    .19524E-03
   8  Prefactor     .10000E-03    3.7842        .19714E-08** at limit **
   9  norm          1.2226        1.7142        .98416E-08   -.53345E-04
  10  norm          .10001E-03    1.6686       -.16504E-06** at limit **
  11  Prefactor     .10000E-03    16.389       -.31654E-05** at limit **
  12  norm          .10003E-03    38.967       -.46015E-06** at limit **
  13  Prefactor     .10000E-03    38.882       -.32765E-05** at limit **
  14  norm          1.7739        .68058       -.65375E-08    .40417E-03
  15  Prefactor     28.210        15.432       -.79573E-08    .22872E-04
  16  Prefactor     .10000E-03    20.647       -.20704E-05** at limit **
  17  Prefactor     6.4070        9.9821        .39369E-06   -.54586E-03
  18  norm          18.653        3.1691        .11784E-07    .97781E-04
  19  Prefactor     .10000E-03    13.715        .67844E-06** at limit **
  20  Prefactor     .10000E-03    31.568        .55419E-05** at limit **
  21  Prefactor     .10000E-03    17.163        .38944E-06** at limit **
  22  Prefactor     .10000E-03    18.127        .30671E-05** at limit **
  23  norm          .10000E-03    12.035       -.82474E-07** at limit **
  24  Prefactor     .10000E-03    4.6126        .57181E-08** at limit **
  25  norm          .48995        .22220        .39288E-08   -.11141E-03
  26  Prefactor     33.710        15.582        .62954E-07   -.39631E-04
  27  Prefactor     .10000E-03    28.820        .12045E-06** at limit **
  28  Prefactor     .10000E-03    29.857        .31716E-05** at limit **
  29  Prefactor     2.9891        6.4628        .11846E-05   -.10075E-02
  30  Normalizat    1.2022        .21776       -.41517E-06    .18337E-04
  31  Prefactor     .86534        .17326       -.23356E-06   -.10611E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.1702
  Prefactor  = 0.78583
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.9491
  Prefactor  = 0.0001
  norm       = 1.22264
  norm       = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.000100026
  Prefactor  = 0.0001
  norm       = 1.77386
  Prefactor  = 28.2099
  Prefactor  = 0.0001
  Prefactor  = 6.40697
  norm       = 18.6532
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.48995
  Prefactor  = 33.7098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.9891
  Normalizat = 1.20219
  Prefactor  = 0.865339
 **********
 **   18 **HESSE 
 **********

 FCN=   6169.389     FROM HESSE     STATUS=OK           632 CALLS     4149 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.170        10.734        .11040E-03   -1.4982    
   3  Prefactor     .78583        10.044        .47481E-03   -1.5531    
   4  Prefactor     .10000E-03    38.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.949        24.584        .72009E-04   -1.4595    
   8  Prefactor     .10000E-03    3.7889        .14917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2226        1.6826        .11801E-03   -1.5487    
  10  norm          .10001E-03    3.5914        .33207E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10003E-03    41.577        .13993       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.7739        .67818        .36377E-04   -1.5442    
  15  Prefactor     28.210        15.465        .75422E-04   -1.4645    
  16  Prefactor     .10000E-03    20.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.4070        10.512        .79267E-03   -1.5202    
  18  norm          18.653        3.1720        .54375E-04   -1.4844    
  19  Prefactor     .10000E-03    14.082        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    12.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.6302        .16471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .48995        .22330        .24155E-04   -1.5568    
  26  Prefactor     33.710        15.610        .34508E-03   -1.4546    
  27  Prefactor     .10000E-03    28.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    30.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.9891        10.115        .11730E-02   -1.5362    
  30  Normalizat    1.2022        .25581        .28557E-03   -.86535    
  31  Prefactor     .86534        .20329        .26839E-03   -.97363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65633e-09
Minuit parameter uncertainties:
  1  0.000200176
  2  10.7352
  3  5.61977
  4  8.3994e-05
  5  3.6298e-05
  6  6.94436e-07
  7  24.5922
  8  1.09795e-07
  9  1.68269
  10  0.000335894
  11  9.70909e-05
  12  0.00207581
  13  0.000151493
  14  0.678179
  15  15.4667
  16  5.80464e-05
  17  10.5146
  18  3.17198
  19  1.76026e-05
  20  0.000226355
  21  1.25774e-05
  22  9.65288e-05
  23  1.53493e-06
  24  1.02026e-06
  25  0.223296
  26  15.6119
  27  6.57895e-06
  28  0.000123564
  29  10.1204
  30  0.256081
  31  0.203469
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  1.865e+01  3.172e+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:  8.653e-01  2.035e-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.202e+00  2.561e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 116.79
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.77e-07 +/- 8.10e-08
Energy Flux (Fixed Index): 1.67e-04 +/- 2.84e-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) = 6169.27056
delta logL = 0.118113006731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6169.25629129
delta logL = 0.132381712041

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.945       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1303       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84859       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=   6169.256     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      197 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.945        3.4651        .23005E-02   -.72582E-02
   2  alpha         2.1304        .19754        .12644       -.18170E-04
   3  Normalizat    1.2316        .21514        .63956E-01    .39543E-06
   4  Prefactor     .84858        .17246        .44346E-01    .13650E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.9453
  alpha      = 2.13037
  Normalizat = 1.23158
  Prefactor  = 0.84858
 **********
 **   18 **HESSE 
 **********

 FCN=   6169.256     FROM HESSE     STATUS=OK            27 CALLS      224 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.945        3.2398        .55416E-04   -1.4837    
   2  alpha         2.1304        .18778        .55161E-03   -.14840    
   3  Normalizat    1.2316        .25239        .28290E-03   -.85633    
   4  Prefactor     .84858        .20164        .27071E-03   -.97962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89843e-09
Minuit parameter uncertainties:
  1  3.23985
  2  0.187959
  3  0.252645
  4  0.201813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867872': 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) = 6169.25629123
delta logL = 0.132381768331

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  1.895e+01  3.240e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.130e+00  1.880e-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.486e-01  2.018e-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.232e+00  2.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 116.72
Ra Dec: 189.885 4.728
Photon Index (Free Index): 2.13 +/- 0.19
Photon Flux (Free Index): 4.50e-07 +/- 9.27e-08
Energy Flux (Free Index): 1.76e-04 +/- 3.49e-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/867872/cmap_HighResolution_383443201_383702401_4FGL_J1239.5+0443_daily_bin556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.77e-07', energy_flux2='1.76e-04', photon_flux_error='8.10e-08', dlogl='1.32e-01', energy_flux='1.67e-04', photon_flux2='4.50e-07', job_status='DONE', time_completed='2021-09-06 03:18:37.724398', photon_index_error2='0.19', photon_index2='2.13', ts='116.79', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='3.49e-05', EG='1.20', time_epoch_completed='1630923517.72', return_code='0', job_id='867872', GAL2='0.85', EG2='1.23', return_code2='0', energy_flux_error='2.84e-05', photon_flux_error2='9.27e-08', ts2='116.72', photon_index='2.23' WHERE bin_id='556' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:18:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 867872: <4FGL_J1239.5+0443_daily_bin556> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin556 189.885 4.7284 383443201 383702401 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 :                                   714.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            753 sec.

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

