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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin469
RA = 189.885, Dec = 4.7284
tmin = 360892801, tmax = 361152001
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='867760', job_status='RUN', time_executed='2021-09-06 03:08:11.167448', time_epoch_executed='1630922891.17' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867760

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867760/ft1_4FGL_J1239.5+0443_daily_bin469.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867760/ft2_4FGL_J1239.5+0443_daily_bin469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867760/ft1_4FGL_J1239.5+0443_daily_bin469.fits outfile=/scratch/kocevski/867760/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin469.fits ra=189.885 dec=4.7284 rad=12.0 tmin=360892801.0 tmax=361152001.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.47
user 3.39
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/867760/ft1_filtered_4FGL_J1239.5+0443_daily_bin469.fits" evtable="EVENTS" scfile=/scratch/kocevski/867760/ft2_4FGL_J1239.5+0443_daily_bin469.fits sctable="SC_DATA" outfile=/scratch/kocevski/867760/ltcube_360892801_361152001_4FGL_J1239.5+0443_daily_bin469.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/867760/ft2_4FGL_J1239.5+0443_daily_bin469.fits
.....................!
real 17.38
user 16.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867760/ft1_filtered_4FGL_J1239.5+0443_daily_bin469.fits evtable="EVENTS" scfile=/scratch/kocevski/867760/ft2_4FGL_J1239.5+0443_daily_bin469.fits sctable="SC_DATA" expcube=/scratch/kocevski/867760/ltcube_360892801_361152001_4FGL_J1239.5+0443_daily_bin469.fits outfile=/scratch/kocevski/867760/expmap_360892801_361152001_4FGL_J1239.5+0443_daily_bin469.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/867760/ltcube_360892801_361152001_4FGL_J1239.5+0443_daily_bin469.fits
.....................!
real 196.70
user 190.30
sys 3.85

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/867760/ft1_filtered_4FGL_J1239.5+0443_daily_bin469.fits scfile=/scratch/kocevski/867760/ft2_4FGL_J1239.5+0443_daily_bin469.fits outfile=/scratch/kocevski/867760/cmap_360892801_361152001_4FGL_J1239.5+0443_daily_bin469.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867760/ft1_filtered_4FGL_J1239.5+0443_daily_bin469.fits scfile=/scratch/kocevski/867760/ft2_4FGL_J1239.5+0443_daily_bin469.fits outfile=/scratch/kocevski/867760/cmap_HighResolution_360892801_361152001_4FGL_J1239.5+0443_daily_bin469.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/867760/ft1_filtered_4FGL_J1239.5+0443_daily_bin469.fits evtable="EVENTS" scfile=/scratch/kocevski/867760/ft2_4FGL_J1239.5+0443_daily_bin469.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/867760/Model_4FGL_J1239.5+0443_daily_bin469.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/867760/ft1_filtered_4FGL_J1239.5+0443_daily_bin469.fits.....................!
real 51.79
user 50.44
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1814       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    165.61       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8467       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.4588       1.0000         .10000E-03   10000.    
    10 'norm      '    13.078       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.728       1.0000         .10000E-03   10000.    
    12 'norm      '    13.961       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4466       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4114       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.379       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.3496       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.237       1.0000         .10000E-03   10000.    
    21 'Prefactor '    68.625       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.500       1.0000         .10000E-03   10000.    
    23 'norm      '    83.521       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10309E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    43.820       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .12115E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .71986       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1682       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=   6063.342     FROM MIGRAD    STATUS=CONVERGED    826 CALLS     4193 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    198.22        .51375E-05** at limit **
   2  Prefactor     8.1813        9.1441       -.37028E-07    .29264E-04
   3  Prefactor     .10000E-03    5.2372        .78423E-07** at limit **
   4  Prefactor     165.61        126.52       -.56259E-06    .18157E-04
   5  Prefactor     .10000E-03    47.978       -.65088E-06** at limit **
   6  Prefactor     .10000E-03    7.4666       -.12962E-07** at limit **
   7  Prefactor     4.8477        37.424       -.18931E-05   -.19770E-05
   8  Prefactor     .10000E-03    8.1784        .70150E-07** at limit **
   9  norm          2.4594        2.0483       -.69565E-07    .50189E-04
  10  norm          13.079        5.4481        .49960E-06    .73051E-03
  11  Prefactor     42.729        30.394       -.42760E-06   -.10443E-04
  12  norm          13.961        38.485       -.14500E-05    .80743E-05
  13  Prefactor     7.4503        193.36        .60980E-06    .75808E-05
  14  norm          1.4115        .67430       -.78845E-07    .55069E-03
  15  Prefactor     .10000E-03    4.3148       -.25517E-08** at limit **
  16  Prefactor     35.385        33.663       -.11129E-05   -.12526E-04
  17  Prefactor     .10000E-03    4.0590        .41571E-07** at limit **
  18  norm          3.3496        1.7093       -.88853E-07    .11200E-03
  19  Prefactor     .10000E-03    4.7916       -.60046E-06** at limit **
  20  Prefactor     32.238        38.332       -.12590E-06    .77293E-04
  21  Prefactor     68.569        46.530        .13259E-05    .35783E-03
  22  Prefactor     26.509        43.694       -.28732E-06    .31782E-04
  23  norm          83.514        35.875        .95720E-06    .34171E-03
  24  Prefactor     .10000E-03    4.0886        .63733E-07** at limit **
  25  norm          .10000E-03    .28968       -.60081E-06** at limit **
  26  Prefactor     .10000E-03    3.8110        .46422E-07** at limit **
  27  Prefactor     43.751        68.481       -.33019E-05    .47050E-04
  28  Prefactor     .10000E-03    6.8278       -.73832E-07** at limit **
  29  Prefactor     .10003E-03    6.4825        .37028E-06** at limit **
  30  Normalizat    .71993        .21773        .16839E-05    .53656E-03
  31  Prefactor     1.1681        .17299        .99852E-06    .80196E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 8.18129
  Prefactor  = 0.0001
  Prefactor  = 165.61
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.84771
  Prefactor  = 0.0001
  norm       = 2.45941
  norm       = 13.0787
  Prefactor  = 42.7289
  norm       = 13.9612
  Prefactor  = 7.45033
  norm       = 1.41147
  Prefactor  = 0.0001
  Prefactor  = 35.3845
  Prefactor  = 0.0001
  norm       = 3.34963
  Prefactor  = 0.0001
  Prefactor  = 32.2381
  Prefactor  = 68.5686
  Prefactor  = 26.5089
  norm       = 83.5142
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 43.7515
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  Normalizat = 0.719933
  Prefactor  = 1.16808
 **********
 **   18 **HESSE 
 **********

 FCN=   6063.342     FROM HESSE     STATUS=OK           616 CALLS     4809 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    198.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1813        9.1377        .14017E-03   -1.5136    
   3  Prefactor     .10000E-03    5.2540        .17396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     165.61        126.71        .31343E-04   -1.3127    
   5  Prefactor     .10000E-03    48.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.4771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.8477        37.409        .18272E-03   -1.5268    
   8  Prefactor     .10000E-03    8.2225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.4594        2.0477        .98494E-04   -1.5394    
  10  norm          13.079        5.4433        .48637E-03   -1.4985    
  11  Prefactor     42.729        30.403        .61329E-04   -1.4400    
  12  norm          13.961        38.546        .10720E-03   -1.4960    
  13  Prefactor     7.4503        193.58        .14697E-03   -1.5162    
  14  norm          1.4115        .66642        .39642E-04   -1.5470    
  15  Prefactor     .10000E-03    4.3190        .15788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.385        33.835        .67375E-04   -1.4518    
  17  Prefactor     .10000E-03    4.0734        .15318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3496        1.7077        .69303E-04   -1.5342    
  19  Prefactor     .10000E-03    15.333        .32781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.238        38.273        .70573E-04   -1.4572    
  21  Prefactor     68.569        47.047        .24227E-03   -1.4050    
  22  Prefactor     26.509        43.707        .77819E-04   -1.4678    
  23  norm          83.514        35.873        .43953E-04   -1.3878    
  24  Prefactor     .10000E-03    4.0965        .15368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .70717        .59755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.8170        .14844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     43.751        68.708        .60563E-04   -1.4384    
  28  Prefactor     .10000E-03    6.8343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10003E-03    40.908        .37916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .71993        .25323        .34131E-03   -1.0311    
  31  Prefactor     1.1681        .20304        .22887E-03   -.87319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22569e-09
Minuit parameter uncertainties:
  1  0.00184913
  2  9.13921
  3  6.19641e-06
  4  126.918
  5  0.000232516
  6  7.18184e-06
  7  26.9563
  8  1.02881e-05
  9  2.04777
  10  5.4435
  11  30.4141
  12  38.6145
  13  76.2295
  14  0.666419
  15  1.92857e-07
  16  33.853
  17  2.14235e-06
  18  1.70773
  19  2.23122e-05
  20  38.3017
  21  47.0729
  22  43.7599
  23  35.8819
  24  2.22835e-06
  25  0.000106213
  26  8.87731e-07
  27  68.8327
  28  6.98505e-06
  29  0.00221345
  30  0.253641
  31  0.203178
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  3.350e+00  1.708e+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.168e+00  2.032e-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:  7.199e-01  2.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.49
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 8.56e-08 +/- 4.36e-08
Energy Flux (Fixed Index): 3.00e-05 +/- 1.53e-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) = 6062.80377798
delta logL = 0.538500526749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6062.75502897
delta logL = 0.587249536697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8782       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7029       1.0000          .0000       5.0000    
     3 'Normalizat'    .75233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1532       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=   6062.755     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8789        1.5431        .59894E-02    .29013E-04
   2  alpha         1.7032        .37550        .29166       -.35641E-04
   3  Normalizat    .75232        .20403        .75611E-01    .22115E-04
   4  Prefactor     1.1531        .17086        .52080E-01    .20461E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.87892
  alpha      = 1.70324
  Normalizat = 0.752322
  Prefactor  = 1.15314
 **********
 **   18 **HESSE 
 **********

 FCN=   6062.755     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8789        1.7826        .68166E-04   -1.5369    
   2  alpha         1.7032        .46537        .11986E-01   -.32436    
   3  Normalizat    .75232        .23796        .33470E-03   -1.0186    
   4  Prefactor     1.1531        .19959        .23025E-03   -.87786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30078e-12
Minuit parameter uncertainties:
  1  1.78268
  2  0.468417
  3  0.238287
  4  0.199722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867760': 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) = 6062.75502868
delta logL = 0.587249831526

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  2.879e+00  1.783e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  1.703e+00  4.684e-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.153e+00  1.997e-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:  7.523e-01  2.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.70
Ra Dec: 189.885 4.728
Photon Index (Free Index): 1.70 +/- 0.47
Photon Flux (Free Index): 5.36e-08 +/- 3.90e-08
Energy Flux (Free Index): 3.94e-05 +/- 2.52e-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/867760/cmap_HighResolution_360892801_361152001_4FGL_J1239.5+0443_daily_bin469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.56e-08', energy_flux2='3.94e-05', photon_flux_error='4.36e-08', dlogl='5.87e-01', energy_flux='3.00e-05', photon_flux2='5.36e-08', job_status='DONE', time_completed='2021-09-06 03:20:40.800299', photon_index_error2='0.47', photon_index2='1.70', ts='11.49', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='2.52e-05', EG='0.72', time_epoch_completed='1630923640.8', return_code='0', job_id='867760', GAL2='1.15', EG2='0.75', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='3.90e-08', ts2='12.70', photon_index='2.23' WHERE bin_id='469' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:20:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 867760: <4FGL_J1239.5+0443_daily_bin469> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin469 189.885 4.7284 360892801 361152001 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 :                                   743.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            886 sec.

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

