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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin204
RA = 189.885, Dec = 4.7284
tmin = 292204801, tmax = 292464001
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='865731', job_status='RUN', time_executed='2021-09-06 03:04:22.863454', time_epoch_executed='1630922662.86' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865731

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865731/ft1_4FGL_J1239.5+0443_daily_bin204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865731/ft2_4FGL_J1239.5+0443_daily_bin204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865731/ft1_4FGL_J1239.5+0443_daily_bin204.fits outfile=/scratch/kocevski/865731/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin204.fits ra=189.885 dec=4.7284 rad=12.0 tmin=292204801.0 tmax=292464001.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 9.68
user 9.13
sys 0.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/865731/ft2_4FGL_J1239.5+0443_daily_bin204.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/865731/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin204.fits evtable="EVENTS" outfile="/scratch/kocevski/865731/ft1_filtered_4FGL_J1239.5+0443_daily_bin204.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/865731/ft1_filtered_4FGL_J1239.5+0443_daily_bin204.fits" evtable="EVENTS" scfile=/scratch/kocevski/865731/ft2_4FGL_J1239.5+0443_daily_bin204.fits sctable="SC_DATA" outfile=/scratch/kocevski/865731/ltcube_292204801_292464001_4FGL_J1239.5+0443_daily_bin204.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/865731/ft2_4FGL_J1239.5+0443_daily_bin204.fits
.....................!
real 12.31
user 11.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865731/ft1_filtered_4FGL_J1239.5+0443_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/865731/ft2_4FGL_J1239.5+0443_daily_bin204.fits sctable="SC_DATA" expcube=/scratch/kocevski/865731/ltcube_292204801_292464001_4FGL_J1239.5+0443_daily_bin204.fits outfile=/scratch/kocevski/865731/expmap_292204801_292464001_4FGL_J1239.5+0443_daily_bin204.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/865731/ltcube_292204801_292464001_4FGL_J1239.5+0443_daily_bin204.fits
.....................!
real 190.53
user 185.40
sys 4.17

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/865731/ft1_filtered_4FGL_J1239.5+0443_daily_bin204.fits scfile=/scratch/kocevski/865731/ft2_4FGL_J1239.5+0443_daily_bin204.fits outfile=/scratch/kocevski/865731/cmap_292204801_292464001_4FGL_J1239.5+0443_daily_bin204.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.71
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865731/ft1_filtered_4FGL_J1239.5+0443_daily_bin204.fits scfile=/scratch/kocevski/865731/ft2_4FGL_J1239.5+0443_daily_bin204.fits outfile=/scratch/kocevski/865731/cmap_HighResolution_292204801_292464001_4FGL_J1239.5+0443_daily_bin204.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.78
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    133.55       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11718E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11612E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8771       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.415       1.0000         .10000E-03   10000.    
     9 'norm      '    .31807       1.0000         .10000E-03   10000.    
    10 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.1750       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.080       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10421E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.9125       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.506       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.527       1.0000         .10000E-03   10000.    
    22 'Prefactor '    82.435       1.0000         .10000E-03   10000.    
    23 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .78998       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    23.434       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .98230       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .97819       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=   2713.939     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     4917 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     133.59        192.44       -.47051E-05   -.35781E-04
   2  Prefactor     .10000E-03    89.182       -.57442E-06** at limit **
   3  Prefactor     .10000E-03    14.192        .71259E-07** at limit **
   4  Prefactor     .10001E-03    461.22       -.21002E-05** at limit **
   5  Prefactor     .10000E-03    35.012       -.33353E-08** at limit **
   6  Prefactor     .10000E-03    15.772       -.66176E-07** at limit **
   7  Prefactor     5.8749        73.708        .85573E-06   -.44177E-05
   8  Prefactor     37.324        31.615        .37837E-05    .14329E-03
   9  norm          .34257        7.2987        .11192E-05   -.90452E-03
  10  norm          .10000E-03    10.316        .51282E-07** at limit **
  11  Prefactor     .10000E-03    26.679        .13534E-06** at limit **
  12  norm          .10000E-03    34.638       -.16309E-06** at limit **
  13  Prefactor     .10000E-03    162.13        .13431E-05** at limit **
  14  norm          3.1758        1.3337        .31110E-07    .32436E-04
  15  Prefactor     18.080        19.025        .35916E-06   -.40878E-05
  16  Prefactor     .10000E-03    38.640        .28158E-06** at limit **
  17  Prefactor     .10000E-03    8.6107       -.68953E-07** at limit **
  18  norm          .10000E-03    2.0671        .14045E-06** at limit **
  19  Prefactor     8.9129        14.330        .36475E-06    .11215E-04
  20  Prefactor     28.513        60.410        .49265E-06   -.29232E-05
  21  Prefactor     12.488        148.14       -.82501E-06   -.98734E-05
  22  Prefactor     82.439        72.457        .30448E-06   -.11552E-04
  23  norm          .10000E-03    38.409        .95718E-07** at limit **
  24  Prefactor     .10000E-03    27.090        .29738E-06** at limit **
  25  norm          .79003        .45923        .64093E-07    .30174E-03
  26  Prefactor     .10000E-03    16.425       -.23156E-07** at limit **
  27  Prefactor     .10000E-03    56.181        .21925E-06** at limit **
  28  Prefactor     23.433        42.507        .59467E-06   -.32952E-05
  29  Prefactor     .10000E-03    5.6407        .13730E-07** at limit **
  30  Normalizat    .98242        .32226       -.22572E-05   -.10034E-03
  31  Prefactor     .97813        .25304        .53930E-08   -.13557E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 133.587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.87494
  Prefactor  = 37.3235
  norm       = 0.342575
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 3.17578
  Prefactor  = 18.0803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.9129
  Prefactor  = 28.513
  Prefactor  = 12.488
  Prefactor  = 82.4387
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.790032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4333
  Prefactor  = 0.0001
  Normalizat = 0.982418
  Prefactor  = 0.978128
 **********
 **   18 **HESSE 
 **********

 FCN=   2713.939     FROM HESSE     STATUS=OK           614 CALLS     5531 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     133.59        191.66        .17424E-03   -1.3391    
   2  Prefactor     .10000E-03    91.527        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    460.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8749        73.329        .16565E-03   -1.5223    
   8  Prefactor     37.324        52.798        .65523E-04   -1.4485    
   9  norm          .34257        80.322        .20410E-02   -1.5591    
  10  norm          .10000E-03    10.586        .32450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    34.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    161.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.1758        1.3270        .34808E-04   -1.5352    
  15  Prefactor     18.080        19.003        .94194E-04   -1.4857    
  16  Prefactor     .10000E-03    38.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.6287        .14930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.300        .14062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.9129        14.299        .13426E-03   -1.5111    
  20  Prefactor     28.513        60.325        .75038E-04   -1.4640    
  21  Prefactor     12.488        150.76        .11318E-03   -1.5001    
  22  Prefactor     82.439        72.528        .44239E-04   -1.3890    
  23  norm          .10000E-03    38.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .79003        .46162        .24345E-04   -1.5530    
  26  Prefactor     .10000E-03    16.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    56.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     23.433        42.479        .82746E-04   -1.4739    
  29  Prefactor     .10000E-03    5.6416        .12085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .98242        .37166        .30023E-03   -.93622    
  31  Prefactor     .97813        .29447        .24538E-03   -.93462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81327e-08
Minuit parameter uncertainties:
  1  192.56
  2  0.000160038
  3  1.84661e-06
  4  0.00351764
  5  6.22205e-05
  6  4.2353e-06
  7  41.5744
  8  52.8638
  9  10.5039
  10  1.57438e-05
  11  5.32321e-05
  12  0.000104024
  13  0.00165603
  14  1.32701
  15  19.0089
  16  0.000111976
  17  1.65157e-05
  18  5.12042e-05
  19  14.3046
  20  60.4544
  21  87.0535
  22  72.6059
  23  5.92985e-05
  24  7.46371e-05
  25  0.461622
  26  1.21888e-05
  27  0.000153231
  28  42.5342
  29  1.26861e-06
  30  0.372645
  31  0.294951
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  1.000e-04  5.120e-05  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:  9.781e-01  2.950e-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.824e-01  3.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/865731/likelihoodResults_292204801_292464001_4FGL_J1239.5+0443_daily_bin204.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): 102
logL (Free Index) = 2713.93983586
delta logL = -0.000465848449039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2713.93937517
delta logL = -5.163924925e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10943E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3086       1.0000          .0000       5.0000    
     3 'Normalizat'    .98226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97774       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2713.835     FROM MIGRAD    STATUS=CONVERGED    181 CALLS      352 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .82610E-01    .19349        .12709E-02   -.15465E-02
   2  alpha         5.0000        4.7439        .50000    ** at limit **
   3  Normalizat    .93019        .37447        .30023E-03   -.97129E-05
   4  Prefactor     1.0040        .29738        .24538E-03   -.16911E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0826096
  alpha      = 5
  Normalizat = 0.930186
  Prefactor  = 1.00397
 **********
 **   18 **HESSE 
 **********

 FCN=   2713.835     FROM HESSE     STATUS=OK            31 CALLS      383 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .82610E-01    .20919        .32368E-04   -1.5765    
   2  alpha         5.0000        4.8653        .50000        7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .93019        .37296        .12009E-04   -.95407    
   4  Prefactor     1.0040        .29698        .98153E-05   -.92597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32158e-12
Minuit parameter uncertainties:
  1  0.20919
  2  2.50559e-05
  3  0.374003
  4  0.297461
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865731': 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) = 2713.83450829
delta logL = 0.104861715305

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  8.261e-02  2.092e-01  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  5.000e+00  2.506e-05  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.004e+00  2.975e-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.302e-01  3.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/865731/cmap_HighResolution_292204801_292464001_4FGL_J1239.5+0443_daily_bin204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-05', job_status='DONE', photon_flux_upper_limit='1.77e-07', time_completed='2021-09-06 03:14:37.423405', job_id='865731', GAL2='1.00', fit_tolerance='1e-08', EG2='0.93', EG='0.98', time_epoch_completed='1630923277.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.05e-01', ts2='0.23', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='204' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:14:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 865731: <4FGL_J1239.5+0443_daily_bin204> in cluster <slac> Done

Job <4FGL_J1239.5+0443_daily_bin204> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 03:00:25 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 03:00:56 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:00:56 2021
Terminated at Mon Sep  6 03:14:38 2021
Results reported at Mon Sep  6 03:14:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin204 189.885 4.7284 292204801 292464001 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 :                                   606.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            853 sec.

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

