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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin975
RA = 189.885, Dec = 4.7284
tmin = 492048001, tmax = 492307201
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='872738', job_status='RUN', time_executed='2021-09-06 03:19:41.058364', time_epoch_executed='1630923581.06' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='975'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/872738

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/872738/ft1_4FGL_J1239.5+0443_daily_bin975.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/872738/ft2_4FGL_J1239.5+0443_daily_bin975.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/872738/ft1_4FGL_J1239.5+0443_daily_bin975.fits outfile=/scratch/kocevski/872738/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin975.fits ra=189.885 dec=4.7284 rad=12.0 tmin=492048001.0 tmax=492307201.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.06
user 3.48
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/872738/ft1_filtered_4FGL_J1239.5+0443_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/872738/ft2_4FGL_J1239.5+0443_daily_bin975.fits sctable="SC_DATA" expcube=/scratch/kocevski/872738/ltcube_492048001_492307201_4FGL_J1239.5+0443_daily_bin975.fits outfile=/scratch/kocevski/872738/expmap_492048001_492307201_4FGL_J1239.5+0443_daily_bin975.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/872738/ltcube_492048001_492307201_4FGL_J1239.5+0443_daily_bin975.fits
.....................!
real 194.78
user 186.16
sys 4.97

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/872738/ft1_filtered_4FGL_J1239.5+0443_daily_bin975.fits scfile=/scratch/kocevski/872738/ft2_4FGL_J1239.5+0443_daily_bin975.fits outfile=/scratch/kocevski/872738/cmap_492048001_492307201_4FGL_J1239.5+0443_daily_bin975.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.66
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/872738/ft1_filtered_4FGL_J1239.5+0443_daily_bin975.fits scfile=/scratch/kocevski/872738/ft2_4FGL_J1239.5+0443_daily_bin975.fits outfile=/scratch/kocevski/872738/cmap_HighResolution_492048001_492307201_4FGL_J1239.5+0443_daily_bin975.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.055       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.445       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15348E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    73.412       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.163       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7688       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11764E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3086       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.037       1.0000         .10000E-03   10000.    
    18 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.239       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.8821       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .26523E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    170.02       1.0000         .10000E-03   10000.    
    23 'norm      '    .10950E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.1820       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1667       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .59102       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=   2122.513     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     4039 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    97.820        .76803E-05** at limit **
   2  Prefactor     28.050        26.657        .23824E-05    .34525E-04
   3  Prefactor     15.445        13.228        .12236E-05   -.14019E-04
   4  Prefactor     .10000E-03    232.45       -.98937E-04** at limit **
   5  Prefactor     .10000E-03    39.826       -.18512E-05** at limit **
   6  Prefactor     73.415        44.697        .33830E-05   -.26139E-04
   7  Prefactor     .10000E-03    38.904       -.18546E-04** at limit **
   8  Prefactor     17.165        17.874        .18062E-05   -.70158E-04
   9  norm          .10000E-03    1.9999        .15530E-06** at limit **
  10  norm          1.7682        9.3206        .22425E-05   -.31536E-03
  11  Prefactor     .10000E-03    103.80        .21801E-04** at limit **
  12  norm          .10000E-03    58.609        .18123E-04** at limit **
  13  Prefactor     .10000E-03    205.41       -.31019E-04** at limit **
  14  norm          2.3080        1.2567       -.89742E-06   -.14332E-02
  15  Prefactor     .10000E-03    32.061       -.16586E-04** at limit **
  16  Prefactor     .10000E-03    80.203       -.25689E-04** at limit **
  17  Prefactor     37.040        22.315        .13080E-05   -.22837E-03
  18  norm          .10000E-03    3.0407       -.81361E-06** at limit **
  19  Prefactor     11.221        20.135       -.15035E-04   -.57098E-03
  20  Prefactor     7.0069        302.50        .36655E-03    .16600E-04
  21  Prefactor     .10004E-03    248.16        .63623E-05** at limit **
  22  Prefactor     170.05        189.18        .21564E-04    .35969E-05
  23  norm          .10004E-03    160.03        .47424E-04** at limit **
  24  Prefactor     .10000E-03    69.613       -.22571E-04** at limit **
  25  norm          1.1817        .44835        .21851E-06   -.25515E-02
  26  Prefactor     .10000E-03    152.54        .58522E-04** at limit **
  27  Prefactor     .10000E-03    66.119       -.13826E-04** at limit **
  28  Prefactor     .10000E-03    41.676        .27120E-04** at limit **
  29  Prefactor     .10000E-03    31.627        .16263E-04** at limit **
  30  Normalizat    1.1672        .42738       -.28193E-05   -.30574E-03
  31  Prefactor     .59046        .28991       -.21858E-04   -.63238E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.0499
  Prefactor  = 15.4448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.4155
  Prefactor  = 0.0001
  Prefactor  = 17.1647
  norm       = 0.0001
  norm       = 1.76817
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.30797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.0397
  norm       = 0.000100002
  Prefactor  = 11.2213
  Prefactor  = 7.00693
  Prefactor  = 0.000100036
  Prefactor  = 170.046
  norm       = 0.00010004
  Prefactor  = 0.0001
  norm       = 1.18168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16721
  Prefactor  = 0.590463
 **********
 **   18 **HESSE 
 **********

 FCN=   2122.513     FROM HESSE     STATUS=OK           598 CALLS     4637 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    97.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.050        26.681        .75637E-04   -1.4648    
   3  Prefactor     15.445        13.257        .10191E-03   -1.4922    
   4  Prefactor     .10000E-03    232.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     73.415        44.840        .46858E-04   -1.3992    
   7  Prefactor     .10000E-03    38.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.165        17.852        .96676E-04   -1.4879    
   9  norm          .10000E-03    2.0110        .63521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7682        9.0370        .23650E-03   -1.5442    
  11  Prefactor     .10000E-03    103.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    58.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    205.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3080        1.2446        .32230E-04   -1.5404    
  15  Prefactor     .10000E-03    32.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    80.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.040        22.283        .65855E-04   -1.4490    
  18  norm          .10000E-03    3.1301        .15657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.221        20.143        .11950E-03   -1.5038    
  20  Prefactor     7.0069        298.79        .15293E-03   -1.5178    
  21  Prefactor     .10004E-03    253.24        .21441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     170.05        189.20        .15471E-03   -1.3092    
  23  norm          .10004E-03    160.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    69.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.1817        .44866        .17851E-04   -1.5491    
  26  Prefactor     .10000E-03    152.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    66.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    41.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    31.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1672        .51086        .30812E-03   -.87622    
  31  Prefactor     .59046        .34017        .30133E-03   -1.0799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1987e-09
Minuit parameter uncertainties:
  1  0.000107717
  2  26.6921
  3  13.2593
  4  0.000288527
  5  0.000119419
  6  44.8608
  7  9.66186e-05
  8  17.8571
  9  2.20093e-05
  10  7.99642
  11  0.000477894
  12  1.19878e-05
  13  0.000153342
  14  1.24466
  15  0.000117001
  16  5.79835e-05
  17  22.2883
  18  0.000143366
  19  20.1554
  20  92.0067
  21  0.00607238
  22  189.879
  23  0.00509658
  24  0.000118626
  25  0.448663
  26  2.61532e-05
  27  2.82401e-05
  28  2.07508e-05
  29  4.6194e-06
  30  0.513063
  31  0.341361
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  1.000e-04  1.434e-04  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:  5.905e-01  3.414e-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.167e+00  5.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/872738/likelihoodResults_492048001_492307201_4FGL_J1239.5+0443_daily_bin975.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) = 2122.51405781
delta logL = -0.00151139320224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2122.51254656
delta logL = -1.38770701597e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2226       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59052       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2122.513     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      249 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6055        .15672E-03** at limit **
   2  alpha         2.1033        2.5343        .50000       -.11888E-06
   3  Normalizat    1.1672        .45905        .30812E-03   -.23577E-04
   4  Prefactor     .59045        .33082        .30135E-03   -.20825E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.1033
  Normalizat = 1.16723
  Prefactor  = 0.590453
 **********
 **   18 **HESSE 
 **********

 FCN=   2122.513     FROM HESSE     STATUS=OK            29 CALLS      278 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1890        .31344E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1033        2.8049        .50000       -.15935    
   3  Normalizat    1.1672        .45947        .12325E-04   -.87622    
   4  Prefactor     .59045        .33112        .12054E-04   -1.0799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37533e-11
Minuit parameter uncertainties:
  1  5.9521e-06
  2  145.919
  3  0.461069
  4  0.332219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/872738': 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) = 2122.5125462
delta logL = 2.20253241423e-07

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  1.000e-04  5.952e-06  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.103e+00  1.459e+02  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:  5.905e-01  3.322e-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.167e+00  4.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 189.885 4.728

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/872738/cmap_HighResolution_492048001_492307201_4FGL_J1239.5+0443_daily_bin975.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-05', job_status='DONE', photon_flux_upper_limit='2.09e-07', time_completed='2021-09-06 03:28:17.617079', job_id='872738', GAL2='0.59', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630924097.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='2.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='975' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:28:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 872738: <4FGL_J1239.5+0443_daily_bin975> in cluster <slac> Done

Job <4FGL_J1239.5+0443_daily_bin975> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 03:15:38 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 03:16:43 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:16:43 2021
Terminated at Mon Sep  6 03:28:18 2021
Results reported at Mon Sep  6 03:28:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin975 189.885 4.7284 492048001 492307201 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 :                                   499.55 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             225.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            760 sec.

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

