/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 32 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 = 5262
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1239.5+0443_daily_bin73
RA = 189.885, Dec = 4.7284
tmin = 258249601, tmax = 258508801
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='864471', job_status='RUN', time_executed='2021-09-06 02:58:02.584643', time_epoch_executed='1630922282.58' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/864471

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/864471/ft1_4FGL_J1239.5+0443_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/864471/ft2_4FGL_J1239.5+0443_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/864471/ft1_4FGL_J1239.5+0443_daily_bin73.fits outfile=/scratch/kocevski/864471/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin73.fits ra=189.885 dec=4.7284 rad=12.0 tmin=258249601.0 tmax=258508801.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 1.20
user 1.00
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/864471/ft1_filtered_4FGL_J1239.5+0443_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/864471/ft2_4FGL_J1239.5+0443_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/864471/ltcube_258249601_258508801_4FGL_J1239.5+0443_daily_bin73.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/864471/ft2_4FGL_J1239.5+0443_daily_bin73.fits
.....................!
real 13.72
user 13.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/864471/ft1_filtered_4FGL_J1239.5+0443_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/864471/ft2_4FGL_J1239.5+0443_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/864471/ltcube_258249601_258508801_4FGL_J1239.5+0443_daily_bin73.fits outfile=/scratch/kocevski/864471/expmap_258249601_258508801_4FGL_J1239.5+0443_daily_bin73.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/864471/ltcube_258249601_258508801_4FGL_J1239.5+0443_daily_bin73.fits
.....................!
real 192.04
user 186.40
sys 4.78

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/864471/ft1_filtered_4FGL_J1239.5+0443_daily_bin73.fits scfile=/scratch/kocevski/864471/ft2_4FGL_J1239.5+0443_daily_bin73.fits outfile=/scratch/kocevski/864471/cmap_258249601_258508801_4FGL_J1239.5+0443_daily_bin73.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.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11039E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1836       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .40166E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11221E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10530E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    192.98       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1185       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.480       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.868       1.0000         .10000E-03   10000.    
    18 'norm      '    .97581       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.2553       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.6277       1.0000         .10000E-03   10000.    
    25 'norm      '    1.6981       1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.304       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.175       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.7138       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .55345       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=   4577.955     FROM MIGRAD    STATUS=CONVERGED    791 CALLS     4105 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.361       -.43505E-05** at limit **
   2  Prefactor     .10000E-03    4.2953        .15535E-07** at limit **
   3  Prefactor     .10000E-03    2.6126        .19912E-07** at limit **
   4  Prefactor     .10000E-03    140.81       -.47026E-05** at limit **
   5  Prefactor     .10000E-03    13.321        .13466E-06** at limit **
   6  Prefactor     2.1847        33.241        .11050E-05   -.61722E-05
   7  Prefactor     .10000E-03    122.86        .12558E-06** at limit **
   8  Prefactor     .10000E-03    6.6622       -.88437E-07** at limit **
   9  norm          .10000E-03    1.4609        .55312E-07** at limit **
  10  norm          .10000E-03    3.7068       -.90381E-06** at limit **
  11  Prefactor     .10000E-03    22.326       -.48293E-06** at limit **
  12  norm          .10000E-03    19.430        .35957E-06** at limit **
  13  Prefactor     192.77        218.09       -.13434E-04   -.14021E-03
  14  norm          4.1184        .93253        .51581E-07    .37147E-03
  15  Prefactor     .10000E-03    6.0317       -.95844E-08** at limit **
  16  Prefactor     13.478        25.299       -.13706E-06   -.13050E-05
  17  Prefactor     19.870        14.134        .22356E-07    .12625E-04
  18  norm          .97358        1.8648       -.21626E-06    .17853E-04
  19  Prefactor     6.2561        9.7446        .15935E-06   -.44858E-05
  20  Prefactor     .10000E-03    18.151       -.53484E-06** at limit **
  21  Prefactor     .10000E-03    18.148       -.58445E-06** at limit **
  22  Prefactor     .10000E-03    19.933        .46859E-06** at limit **
  23  norm          .10000E-03    18.562       -.10624E-06** at limit **
  24  Prefactor     3.6281        10.065        .89367E-05   -.29158E-03
  25  norm          1.6981        .39622        .18640E-08   -.58255E-04
  26  Prefactor     17.304        16.231       -.66036E-06   -.44715E-04
  27  Prefactor     .10001E-03    60.939        .66928E-05** at limit **
  28  Prefactor     13.176        15.173        .34495E-07   -.23156E-06
  29  Prefactor     .10000E-03    6.5595        .20796E-06** at limit **
  30  Normalizat    1.7141        .27108        .38947E-06   -.14742E-05
  31  Prefactor     .55313        .20925       -.95754E-06    .14263E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 2.1847
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 192.768
  norm       = 4.1184
  Prefactor  = 0.0001
  Prefactor  = 13.4777
  Prefactor  = 19.8695
  norm       = 0.97358
  Prefactor  = 6.25612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.62811
  norm       = 1.69812
  Prefactor  = 17.3038
  Prefactor  = 0.000100007
  Prefactor  = 13.1759
  Prefactor  = 0.0001
  Normalizat = 1.71411
  Prefactor  = 0.553128
 **********
 **   18 **HESSE 
 **********

 FCN=   4577.955     FROM HESSE     STATUS=OK           616 CALLS     4721 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.2986        .13696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6151        .10681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    141.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1847        33.291        .27857E-03   -1.5412    
   7  Prefactor     .10000E-03    128.88        .42523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.6815        .17053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.4787        .79802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.8369        .25326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    19.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     192.77        226.30        .14538E-03   -1.2922    
  14  norm          4.1184        .93017        .28993E-04   -1.5302    
  15  Prefactor     .10000E-03    6.0377        .16224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.478        25.339        .10910E-03   -1.4974    
  17  Prefactor     19.870        14.119        .89858E-04   -1.4816    
  18  norm          .97358        1.6839        .11934E-02   -1.5511    
  19  Prefactor     6.2561        9.7276        .16050E-03   -1.5208    
  20  Prefactor     .10000E-03    18.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    18.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.6281        10.287        .10606E-02   -1.5327    
  25  norm          1.6981        .39681        .19899E-04   -1.5447    
  26  Prefactor     17.304        16.260        .48141E-03   -1.4876    
  27  Prefactor     .10001E-03    62.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     13.176        15.173        .11035E-03   -1.4982    
  29  Prefactor     .10000E-03    6.5666        .16925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.7141        .32202        .25372E-03   -.71927    
  31  Prefactor     .55313        .24617        .33058E-03   -1.0960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11336e-09
Minuit parameter uncertainties:
  1  0.000806965
  2  5.59206e-07
  3  1.20431e-08
  4  0.00151714
  5  1.27315e-05
  6  17.0674
  7  0.00156241
  8  1.23453e-05
  9  7.49169e-07
  10  4.83666e-05
  11  0.000123227
  12  8.05563e-05
  13  227.339
  14  0.930173
  15  5.7154e-07
  16  25.3596
  17  14.1214
  18  1.68395
  19  9.73007
  20  6.78328e-05
  21  6.98445e-05
  22  2.49983e-05
  23  2.04412e-05
  24  10.292
  25  0.396809
  26  16.2644
  27  0.00130251
  28  15.1775
  29  7.84106e-06
  30  0.322411
  31  0.246645
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  9.736e-01  1.684e+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:  5.531e-01  2.466e-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.714e+00  3.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/864471/likelihoodResults_258249601_258508801_4FGL_J1239.5+0443_daily_bin73.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) = 4577.91224433
delta logL = 0.04240585549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4577.85577808
delta logL = 0.0988721078902

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42905       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2949       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54106       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=   4577.856     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      221 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42922        1.1523        .17466E-01    .25482E-02
   2  alpha         1.2945        .93844        .49903       -.12630E-05
   3  Normalizat    1.7381        .26378        .57089E-01    .47076E-05
   4  Prefactor     .54108        .20871        .75419E-01    .22978E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.429218
  alpha      = 1.29451
  Normalizat = 1.7381
  Prefactor  = 0.541081
 **********
 **   18 **HESSE 
 **********

 FCN=   4577.856     FROM HESSE     STATUS=OK            35 CALLS      256 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42922        1.1512        .88227E-03   -1.5577    
   2  alpha         1.2945        1.3782        .22269E-01   -.50316    
   3  Normalizat    1.7381        .31011        .25241E-03   -.71291    
   4  Prefactor     .54108        .24503        .33396E-03   -1.1013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78624e-09
Minuit parameter uncertainties:
  1  1.15126
  2  1.49061
  3  0.310461
  4  0.245511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/864471': 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) = 4577.85577789
delta logL = 0.0988722975126

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  4.292e-01  1.151e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  1.295e+00  1.491e+00  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.411e-01  2.455e-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.738e+00  3.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
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/864471/cmap_HighResolution_258249601_258508801_4FGL_J1239.5+0443_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-05', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-06 03:10:12.962793', job_id='864471', GAL2='0.54', fit_tolerance='1e-08', EG2='1.74', EG='1.71', time_epoch_completed='1630923012.96', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='9.89e-02', ts2='0.67', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='73' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:10:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 864471: <4FGL_J1239.5+0443_daily_bin73> in cluster <slac> Done

Job <4FGL_J1239.5+0443_daily_bin73> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 02:55:53 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:57:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 02:57:21 2021
Terminated at Mon Sep  6 03:10:14 2021
Results reported at Mon Sep  6 03:10:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin73 189.885 4.7284 258249601 258508801 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 :                                   728.17 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             288.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            861 sec.

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

