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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin674
RA = 189.885, Dec = 4.7284
tmin = 414028801, tmax = 414288001
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='868068', job_status='RUN', time_executed='2021-09-06 03:09:29.139846', time_epoch_executed='1630922969.14' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/868068

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/868068/ft1_4FGL_J1239.5+0443_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/868068/ft2_4FGL_J1239.5+0443_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/868068/ft1_4FGL_J1239.5+0443_daily_bin674.fits outfile=/scratch/kocevski/868068/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin674.fits ra=189.885 dec=4.7284 rad=12.0 tmin=414028801.0 tmax=414288001.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 5.28
user 4.94
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/868068/ft1_filtered_4FGL_J1239.5+0443_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/868068/ft2_4FGL_J1239.5+0443_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/868068/ltcube_414028801_414288001_4FGL_J1239.5+0443_daily_bin674.fits outfile=/scratch/kocevski/868068/expmap_414028801_414288001_4FGL_J1239.5+0443_daily_bin674.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/868068/ltcube_414028801_414288001_4FGL_J1239.5+0443_daily_bin674.fits
.....................!
real 192.53
user 187.30
sys 4.29

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 172 point sources and 0 extended sources

Setting source of interest to:
4FGL J1239.5+0443 @ 189.885 4.7284

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/868068/ft1_filtered_4FGL_J1239.5+0443_daily_bin674.fits scfile=/scratch/kocevski/868068/ft2_4FGL_J1239.5+0443_daily_bin674.fits outfile=/scratch/kocevski/868068/cmap_414028801_414288001_4FGL_J1239.5+0443_daily_bin674.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.54
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    112.59       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13371E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16222E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.771       1.0000         .10000E-03   10000.    
     9 'norm      '    3.5580       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2956       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    146.77       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8284       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.321       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.4985       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    71.117       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15237E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.779       1.0000         .10000E-03   10000.    
    25 'norm      '    3.0509       1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.026       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    69.235       1.0000         .10000E-03   10000.    
    29 'Prefactor '    15.857       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .93993       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .80037       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=   5064.979     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     4057 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     112.47        124.42        .58922E-06   -.19609E-04
   2  Prefactor     .10000E-03    4.4428       -.17312E-06** at limit **
   3  Prefactor     .10000E-03    2.3606       -.37659E-07** at limit **
   4  Prefactor     .10000E-03    46.953       -.53369E-07** at limit **
   5  Prefactor     .10000E-03    69.053       -.96167E-06** at limit **
   6  Prefactor     .10000E-03    15.056       -.41773E-07** at limit **
   7  Prefactor     .10000E-03    94.669        .17743E-05** at limit **
   8  Prefactor     19.765        25.707       -.21479E-06   -.40630E-05
   9  norm          3.5583        5.6591        .15332E-06   -.49430E-04
  10  norm          2.3058        6.6719       -.32109E-05   -.61146E-04
  11  Prefactor     .10000E-03    15.995        .14910E-06** at limit **
  12  norm          146.63        94.557        .34967E-05   -.19349E-04
  13  Prefactor     .10000E-03    97.632        .78465E-07** at limit **
  14  norm          1.8265        .94195        .35269E-06   -.81576E-04
  15  Prefactor     20.318        13.956       -.25886E-07    .52809E-06
  16  Prefactor     .10000E-03    38.978        .16450E-06** at limit **
  17  Prefactor     .10000E-03    5.5037        .97090E-07** at limit **
  18  norm          5.4974        2.2366        .54375E-07   -.12543E-04
  19  Prefactor     .10000E-03    4.0989        .12196E-06** at limit **
  20  Prefactor     .10000E-03    11.427        .44086E-07** at limit **
  21  Prefactor     71.131        71.155        .17647E-06   -.82791E-06
  22  Prefactor     .10000E-03    98.113       -.16406E-06** at limit **
  23  norm          .10000E-03    9.0662        .32520E-07** at limit **
  24  Prefactor     16.765        17.246        .66538E-06   -.41576E-04
  25  norm          3.0509        .54558       -.24016E-07    .15207E-03
  26  Prefactor     25.018        19.818       -.31576E-06    .30023E-05
  27  Prefactor     .10000E-03    50.749        .89072E-08** at limit **
  28  Prefactor     69.224        31.280       -.14077E-06   -.27292E-05
  29  Prefactor     15.854        13.689       -.10411E-06    .34078E-05
  30  Normalizat    .94086        .25911        .13910E-05   -.24550E-04
  31  Prefactor     .79970        .18855       -.48347E-06    .25209E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 112.472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.7652
  norm       = 3.55826
  norm       = 2.30582
  Prefactor  = 0.0001
  norm       = 146.634
  Prefactor  = 0.0001
  norm       = 1.82648
  Prefactor  = 20.3177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.49737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.1314
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.765
  norm       = 3.05088
  Prefactor  = 25.0182
  Prefactor  = 0.0001
  Prefactor  = 69.2243
  Prefactor  = 15.8535
  Normalizat = 0.940856
  Prefactor  = 0.799703
 **********
 **   18 **HESSE 
 **********

 FCN=   5064.979     FROM HESSE     STATUS=OK           616 CALLS     4673 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     112.47        124.52        .18956E-03   -1.3583    
   2  Prefactor     .10000E-03    4.4466        .14649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3611        .10679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    46.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    69.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    95.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.765        25.571        .90078E-04   -1.4819    
   9  norm          3.5583        5.6164        .14876E-03   -1.5331    
  10  norm          2.3058        6.7181        .23243E-03   -1.5404    
  11  Prefactor     .10000E-03    16.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          146.63        94.609        .16631E-03   -1.3280    
  13  Prefactor     .10000E-03    97.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8265        .94095        .41809E-04   -1.5438    
  15  Prefactor     20.318        13.963        .88852E-04   -1.4806    
  16  Prefactor     .10000E-03    39.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.5130        .16301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.4974        2.2362        .64610E-04   -1.5239    
  19  Prefactor     .10000E-03    4.1079        .14067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     71.131        71.742        .47603E-04   -1.4019    
  22  Prefactor     .10000E-03    98.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    9.0672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.765        17.290        .48888E-03   -1.4889    
  25  norm          3.0509        .55103        .20158E-04   -1.5359    
  26  Prefactor     25.018        19.825        .80075E-04   -1.4707    
  27  Prefactor     .10000E-03    50.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     69.224        31.333        .48241E-04   -1.4042    
  29  Prefactor     15.854        13.703        .10058E-03   -1.4911    
  30  Normalizat    .94086        .30175        .31935E-03   -.95039    
  31  Prefactor     .79970        .21889        .26949E-03   -.99739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67955e-11
Minuit parameter uncertainties:
  1  124.808
  2  3.2998e-06
  3  6.10359e-07
  4  2.01373e-05
  5  0.000209649
  6  2.00874e-05
  7  0.000249825
  8  25.5853
  9  5.61718
  10  6.72025
  11  1.32306e-05
  12  94.7074
  13  1.80473e-06
  14  0.940954
  15  13.965
  16  3.95501e-05
  17  1.22546e-05
  18  2.23628
  19  7.0486e-06
  20  4.38836e-06
  21  71.8296
  22  0.000191143
  23  3.15331e-06
  24  17.2952
  25  0.551032
  26  19.8301
  27  1.89746e-05
  28  31.3403
  29  13.706
  30  0.302299
  31  0.219126
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  5.497e+00  2.236e+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:  7.997e-01  2.191e-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:  9.409e-01  3.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.44
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.40e-07 +/- 5.71e-08
Energy Flux (Fixed Index): 4.93e-05 +/- 2.00e-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) = 5064.97841776
delta logL = 0.000126289025502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5064.97841268
delta logL = 0.000131364455228

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4974       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2349       1.0000          .0000       5.0000    
     3 'Normalizat'    .94009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80007       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=   5064.978     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      194 TOTAL
                     EDM=   .63E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4988        2.7976        .42841E-02    .42997E-04
   2  alpha         2.2351        .52319        .27493        .26457E-05
   3  Normalizat    .94005        .23812        .72199E-01    .14437E-04
   4  Prefactor     .80008        .18557        .43718E-01    .96813E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.49876
  alpha      = 2.23512
  Normalizat = 0.940055
  Prefactor  = 0.800083
 **********
 **   18 **HESSE 
 **********

 FCN=   5064.978     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .87E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4988        2.2125        .64536E-04   -1.5239    
   2  alpha         2.2351        .44204        .11363E-01   -.10615    
   3  Normalizat    .94005        .27345        .31946E-03   -.95067    
   4  Prefactor     .80008        .21252        .26943E-03   -.99725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67068e-14
Minuit parameter uncertainties:
  1  2.21251
  2  0.444404
  3  0.273855
  4  0.212738
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/868068': 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) = 5064.97841234
delta logL = 0.000131701561259

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  5.499e+00  2.213e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.235e+00  4.444e-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.001e-01  2.127e-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:  9.401e-01  2.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.31
Ra Dec: 189.885 4.728
Photon Index (Free Index): 2.24 +/- 0.44
Photon Flux (Free Index): 1.41e-07 +/- 7.57e-08
Energy Flux (Free Index): 4.92e-05 +/- 2.05e-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/868068/cmap_HighResolution_414028801_414288001_4FGL_J1239.5+0443_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.40e-07', energy_flux2='4.92e-05', photon_flux_error='5.71e-08', dlogl='1.32e-04', energy_flux='4.93e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-06 03:20:45.277421', photon_index_error2='0.44', photon_index2='2.24', ts='16.44', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='2.05e-05', EG='0.94', time_epoch_completed='1630923645.28', return_code='0', job_id='868068', GAL2='0.80', EG2='0.94', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='7.57e-08', ts2='16.31', photon_index='2.23' WHERE bin_id='674' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:20:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 868068: <4FGL_J1239.5+0443_daily_bin674> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin674 189.885 4.7284 414028801 414288001 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 :                                   671.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            864 sec.

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

