/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 116 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 = 7392
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1239.5+0443_daily_bin430
RA = 189.885, Dec = 4.7284
tmin = 350784001, tmax = 351043201
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='867722', job_status='RUN', time_executed='2021-09-06 03:08:10.450769', time_epoch_executed='1630922890.45' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867722

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867722/ft1_4FGL_J1239.5+0443_daily_bin430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867722/ft2_4FGL_J1239.5+0443_daily_bin430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867722/ft1_4FGL_J1239.5+0443_daily_bin430.fits outfile=/scratch/kocevski/867722/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin430.fits ra=189.885 dec=4.7284 rad=12.0 tmin=350784001.0 tmax=351043201.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.76
user 3.17
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/867722/ft1_filtered_4FGL_J1239.5+0443_daily_bin430.fits" evtable="EVENTS" scfile=/scratch/kocevski/867722/ft2_4FGL_J1239.5+0443_daily_bin430.fits sctable="SC_DATA" outfile=/scratch/kocevski/867722/ltcube_350784001_351043201_4FGL_J1239.5+0443_daily_bin430.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/867722/ft2_4FGL_J1239.5+0443_daily_bin430.fits
.....................!
real 15.28
user 14.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867722/ft1_filtered_4FGL_J1239.5+0443_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/867722/ft2_4FGL_J1239.5+0443_daily_bin430.fits sctable="SC_DATA" expcube=/scratch/kocevski/867722/ltcube_350784001_351043201_4FGL_J1239.5+0443_daily_bin430.fits outfile=/scratch/kocevski/867722/expmap_350784001_351043201_4FGL_J1239.5+0443_daily_bin430.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/867722/ltcube_350784001_351043201_4FGL_J1239.5+0443_daily_bin430.fits
.....................!
real 192.20
user 186.20
sys 5.22

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/867722/ft1_filtered_4FGL_J1239.5+0443_daily_bin430.fits scfile=/scratch/kocevski/867722/ft2_4FGL_J1239.5+0443_daily_bin430.fits outfile=/scratch/kocevski/867722/cmap_350784001_351043201_4FGL_J1239.5+0443_daily_bin430.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867722/ft1_filtered_4FGL_J1239.5+0443_daily_bin430.fits scfile=/scratch/kocevski/867722/ft2_4FGL_J1239.5+0443_daily_bin430.fits outfile=/scratch/kocevski/867722/cmap_HighResolution_350784001_351043201_4FGL_J1239.5+0443_daily_bin430.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/867722/ft1_filtered_4FGL_J1239.5+0443_daily_bin430.fits', '/scratch/kocevski/867722/ft2_4FGL_J1239.5+0443_daily_bin430.fits', expMap='/scratch/kocevski/867722/expmap_350784001_351043201_4FGL_J1239.5+0443_daily_bin430.fits', expCube='/scratch/kocevski/867722/ltcube_350784001_351043201_4FGL_J1239.5+0443_daily_bin430.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/867722/Model_4FGL_J1239.5+0443_daily_bin430.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/867722/ft1_filtered_4FGL_J1239.5+0443_daily_bin430.fits
Spacecraft file(s): /scratch/kocevski/867722/ft2_4FGL_J1239.5+0443_daily_bin430.fits
Exposure map: /scratch/kocevski/867722/expmap_350784001_351043201_4FGL_J1239.5+0443_daily_bin430.fits
Exposure cube: /scratch/kocevski/867722/ltcube_350784001_351043201_4FGL_J1239.5+0443_daily_bin430.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/867722/Model_4FGL_J1239.5+0443_daily_bin430.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 1
logL (Fixed Index) = 5864.9845482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2291       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.591       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.467       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.8685       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4163       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10197E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    104.59       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9560       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .92031E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5967       1.0000         .10000E-03   10000.    
    18 'norm      '    7.1187       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7555       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2699       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.9241       1.0000         .10000E-03   10000.    
    23 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.9234       1.0000         .10000E-03   10000.    
    25 'norm      '    .65563       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    25.415       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .88211       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0654       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=   5864.855     FROM MIGRAD    STATUS=CONVERGED    778 CALLS     4578 TOTAL
                     EDM=   .98E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.153       -.10294E-05** at limit **
   2  Prefactor     .10000E-03    3.9026       -.32786E-07** at limit **
   3  Prefactor     5.2287        8.6278        .60602E-06    .12799E-05
   4  Prefactor     .10000E-03    52.804        .48999E-06** at limit **
   5  Prefactor     49.560        45.401        .12789E-05    .59515E-05
   6  Prefactor     .10000E-03    15.639       -.13232E-06** at limit **
   7  Prefactor     13.472        22.153       -.50845E-07    .15017E-06
   8  Prefactor     .10000E-03    8.4170       -.12456E-06** at limit **
   9  norm          5.8701        2.8684        .29258E-07    .16908E-04
  10  norm          1.4084        3.6280        .82121E-07   -.14613E-04
  11  Prefactor     .10000E-03    13.157       -.20804E-06** at limit **
  12  norm          .10000E-03    50.376        .95080E-07** at limit **
  13  Prefactor     104.64        101.79       -.17052E-05   -.18048E-05
  14  norm          1.9559        .68291        .81042E-08    .38781E-04
  15  Prefactor     .10000E-03    6.6548        .56694E-06** at limit **
  16  Prefactor     .10000E-03    7.4743        .13581E-07** at limit **
  17  Prefactor     6.5973        6.5919       -.11893E-07    .54582E-05
  18  norm          7.1185        2.1676        .30051E-07   -.20393E-05
  19  Prefactor     2.7583        6.9671        .20581E-05    .75472E-05
  20  Prefactor     5.2734        17.672        .70509E-07    .58978E-07
  21  Prefactor     .10000E-03    11.907        .18079E-06** at limit **
  22  Prefactor     8.9209        60.675        .46368E-06   -.27170E-05
  23  norm          .10000E-03    15.636       -.97799E-08** at limit **
  24  Prefactor     6.9153        12.013        .81798E-07   -.17878E-04
  25  norm          .65563        .26428       -.28071E-07    .58677E-04
  26  Prefactor     .10000E-03    20.075        .41840E-06** at limit **
  27  Prefactor     25.305        60.849        .75347E-05    .11216E-06
  28  Prefactor     .10000E-03    11.859        .41827E-07** at limit **
  29  Prefactor     .10000E-03    8.5547        .75394E-07** at limit **
  30  Normalizat    .88259        .20965       -.24568E-06   -.31352E-04
  31  Prefactor     1.0650        .17144       -.53259E-06   -.16996E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.22867
  Prefactor  = 0.0001
  Prefactor  = 49.5603
  Prefactor  = 0.0001
  Prefactor  = 13.4718
  Prefactor  = 0.0001
  norm       = 5.87007
  norm       = 1.40845
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 104.635
  norm       = 1.95587
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.59734
  norm       = 7.11853
  Prefactor  = 2.75829
  Prefactor  = 5.27338
  Prefactor  = 0.0001
  Prefactor  = 8.9209
  norm       = 0.0001
  Prefactor  = 6.91534
  norm       = 0.655631
  Prefactor  = 0.0001
  Prefactor  = 25.3048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.882585
  Prefactor  = 1.06495
 **********
 **   18 **HESSE 
 **********

 FCN=   5864.855     FROM HESSE     STATUS=OK           626 CALLS     5204 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9074        .14775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2287        8.6168        .87891E-03   -1.5251    
   4  Prefactor     .10000E-03    52.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     49.560        45.504        .56946E-04   -1.4299    
   6  Prefactor     .10000E-03    15.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.472        22.081        .10915E-03   -1.4974    
   8  Prefactor     .10000E-03    8.4667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.8701        2.8658        .87573E-04   -1.5223    
  10  norm          1.4084        3.5610        .20248E-03   -1.5471    
  11  Prefactor     .10000E-03    13.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    50.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     104.64        101.76        .19660E-03   -1.3659    
  14  norm          1.9559        .67413        .32862E-04   -1.5428    
  15  Prefactor     .10000E-03    22.138        .37850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.4777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.5973        6.5920        .15624E-03   -1.5194    
  18  norm          7.1185        2.1673        .58704E-04   -1.5174    
  19  Prefactor     2.7583        6.9755        .12261E-02   -1.5376    
  20  Prefactor     5.2734        17.665        .17509E-03   -1.5249    
  21  Prefactor     .10000E-03    11.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.9209        59.467        .13417E-03   -1.5111    
  23  norm          .10000E-03    15.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.9153        11.913        .15247E-03   -1.5182    
  25  norm          .65563        .26264        .23798E-04   -1.5546    
  26  Prefactor     .10000E-03    20.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     25.305        60.865        .79461E-04   -1.4701    
  28  Prefactor     .10000E-03    11.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    8.6352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .88259        .24271        .29729E-03   -.97075    
  31  Prefactor     1.0650        .19901        .23105E-03   -.90595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09581e-11
Minuit parameter uncertainties:
  1  2.20545e-05
  2  4.25295e-07
  3  8.61884
  4  4.14044e-06
  5  45.5361
  6  3.46471e-07
  7  22.0948
  8  2.25033e-06
  9  2.86591
  10  3.56153
  11  2.70583e-06
  12  1.53606e-05
  13  101.93
  14  0.674131
  15  0.000334485
  16  1.65782e-07
  17  6.5927
  18  2.16735
  19  6.97756
  20  17.6825
  21  3.75058e-07
  22  46.1315
  23  3.20238e-06
  24  11.9172
  25  0.26264
  26  3.26898e-06
  27  61.0149
  28  7.03149e-06
  29  3.46921e-06
  30  0.243007
  31  0.199146
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  7.119e+00  2.167e+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.065e+00  1.991e-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:  8.826e-01  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.17
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.82e-07 +/- 5.54e-08
Energy Flux (Fixed Index): 6.38e-05 +/- 1.94e-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) = 5864.8490759
delta logL = 0.00616088005518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5864.8486184
delta logL = 0.00661837862299

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0887       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2655       1.0000          .0000       5.0000    
     3 'Normalizat'    .87751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0676       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=   5864.849     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      195 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0887        3.0865        .37667E-02    .14943E-02
   2  alpha         2.2655        .44944        .21342        .16507E-04
   3  Normalizat    .87748        .20267        .67360E-01    .17383E-04
   4  Prefactor     1.0676        .17002        .38974E-01    .55981E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.08866
  alpha      = 2.26552
  Normalizat = 0.877485
  Prefactor  = 1.06763
 **********
 **   18 **HESSE 
 **********

 FCN=   5864.849     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0887        2.1456        .58153E-04   -1.5175    
   2  alpha         2.2655        .32737        .90129E-02   -.93931E-01
   3  Normalizat    .87748        .23413        .29800E-03   -.97256    
   4  Prefactor     1.0676        .19595        .23078E-03   -.90508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32801e-10
Minuit parameter uncertainties:
  1  2.1456
  2  0.328323
  3  0.234404
  4  0.196082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867722': 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) = 5864.84861834
delta logL = 0.00661843809758

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  7.089e+00  2.146e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.266e+00  3.283e-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.068e+00  1.961e-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:  8.775e-01  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.21
Ra Dec: 189.885 4.728
Photon Index (Free Index): 2.27 +/- 0.33
Photon Flux (Free Index): 1.87e-07 +/- 6.83e-08
Energy Flux (Free Index): 6.30e-05 +/- 2.02e-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/867722/cmap_HighResolution_350784001_351043201_4FGL_J1239.5+0443_daily_bin430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.82e-07', energy_flux2='6.30e-05', photon_flux_error='5.54e-08', dlogl='6.62e-03', energy_flux='6.38e-05', photon_flux2='1.87e-07', job_status='DONE', time_completed='2021-09-06 03:21:10.488619', photon_index_error2='0.33', photon_index2='2.27', ts='31.17', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.02e-05', EG='0.88', time_epoch_completed='1630923670.49', return_code='0', job_id='867722', GAL2='1.07', EG2='0.88', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='6.83e-08', ts2='31.21', photon_index='2.23' WHERE bin_id='430' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:21:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 867722: <4FGL_J1239.5+0443_daily_bin430> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin430 189.885 4.7284 350784001 351043201 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 :                                   776.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            918 sec.

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

