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


Performing analysis on: 4FGL_J1243.9-0218_daily_bin635
RA = 190.984, Dec = -2.3082
tmin = 403920001, tmax = 404179201
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='881170', job_status='RUN', time_executed='2021-09-06 03:44:59.651680', time_epoch_executed='1630925099.65' WHERE source_name='4FGL J1243.9-0218' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/881170

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/881170/ft1_4FGL_J1243.9-0218_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/881170/ft2_4FGL_J1243.9-0218_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/881170/ft1_4FGL_J1243.9-0218_daily_bin635.fits outfile=/scratch/kocevski/881170/ft1_filteredMKT_4FGL_J1243.9-0218_daily_bin635.fits ra=190.984 dec=-2.3082 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.12
user 9.66
sys 0.40

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/881170/ft2_4FGL_J1243.9-0218_daily_bin635.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/881170/ft2_4FGL_J1243.9-0218_daily_bin635.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/881170/ft1_filteredMKT_4FGL_J1243.9-0218_daily_bin635.fits evtable="EVENTS" outfile="/scratch/kocevski/881170/ft1_filtered_4FGL_J1243.9-0218_daily_bin635.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.52
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/881170/ft1_filtered_4FGL_J1243.9-0218_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/881170/ft2_4FGL_J1243.9-0218_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/881170/ltcube_403920001_404179201_4FGL_J1243.9-0218_daily_bin635.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/881170/ft2_4FGL_J1243.9-0218_daily_bin635.fits
.....................!
real 10.17
user 9.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/881170/ft1_filtered_4FGL_J1243.9-0218_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/881170/ft2_4FGL_J1243.9-0218_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/881170/ltcube_403920001_404179201_4FGL_J1243.9-0218_daily_bin635.fits outfile=/scratch/kocevski/881170/expmap_403920001_404179201_4FGL_J1243.9-0218_daily_bin635.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/881170/ltcube_403920001_404179201_4FGL_J1243.9-0218_daily_bin635.fits
.....................!
real 190.89
user 185.03
sys 5.28

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1243.9-0218 @ 190.984 -2.3082

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/881170/ft1_filtered_4FGL_J1243.9-0218_daily_bin635.fits scfile=/scratch/kocevski/881170/ft2_4FGL_J1243.9-0218_daily_bin635.fits outfile=/scratch/kocevski/881170/cmap_403920001_404179201_4FGL_J1243.9-0218_daily_bin635.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=190.984 yref=-2.3082 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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/881170/ft1_filtered_4FGL_J1243.9-0218_daily_bin635.fits scfile=/scratch/kocevski/881170/ft2_4FGL_J1243.9-0218_daily_bin635.fits outfile=/scratch/kocevski/881170/cmap_HighResolution_403920001_404179201_4FGL_J1243.9-0218_daily_bin635.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=190.984 yref=-2.3082 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/881170/ft1_filtered_4FGL_J1243.9-0218_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/881170/ft2_4FGL_J1243.9-0218_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/881170/Model_4FGL_J1243.9-0218_daily_bin635.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/881170/ft1_filtered_4FGL_J1243.9-0218_daily_bin635.fits.........................!
real 20.03
user 17.78
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/881170/ft1_filtered_4FGL_J1243.9-0218_daily_bin635.fits', '/scratch/kocevski/881170/ft2_4FGL_J1243.9-0218_daily_bin635.fits', expMap='/scratch/kocevski/881170/expmap_403920001_404179201_4FGL_J1243.9-0218_daily_bin635.fits', expCube='/scratch/kocevski/881170/ltcube_403920001_404179201_4FGL_J1243.9-0218_daily_bin635.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/881170/Model_4FGL_J1243.9-0218_daily_bin635.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1243.9-0218'

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  1.163e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.781e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/881170/ft1_filtered_4FGL_J1243.9-0218_daily_bin635.fits
Spacecraft file(s): /scratch/kocevski/881170/ft2_4FGL_J1243.9-0218_daily_bin635.fits
Exposure map: /scratch/kocevski/881170/expmap_403920001_404179201_4FGL_J1243.9-0218_daily_bin635.fits
Exposure cube: /scratch/kocevski/881170/ltcube_403920001_404179201_4FGL_J1243.9-0218_daily_bin635.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/881170/Model_4FGL_J1243.9-0218_daily_bin635.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) = 815.633900893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10671E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32823E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.550       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.242       1.0000         .10000E-03   10000.    
     8 'norm      '    .10474E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0019       1.0000         .10000E-03   10000.    
    11 'norm      '    .10487E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12775E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6386       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0031       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.2105       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14549E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5672       1.0000         .10000E-03   10000.    
    23 'Prefactor '    31.169       1.0000         .10000E-03   10000.    
    24 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    121.16       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.9685       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .14380E-05   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   815.6238     FROM MIGRAD    STATUS=CONVERGED    683 CALLS     3421 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.302       -.53532E-06** at limit **
   2  Prefactor     .10000E-03    17.746       -.75799E-07** at limit **
   3  Prefactor     .10000E-03    60.088       -.66836E-07** at limit **
   4  Prefactor     .10000E-03    204.62       -.66980E-06** at limit **
   5  Prefactor     11.516        81.208        .81471E-06   -.13781E-04
   6  Prefactor     .10000E-03    41.255       -.29127E-06** at limit **
   7  Prefactor     20.261        32.453        .25591E-08   -.24762E-04
   8  norm          .10000E-03    7.4112       -.94536E-07** at limit **
   9  norm          .10000E-03    14.319       -.13700E-05** at limit **
  10  Prefactor     4.9138        691.30        .49795E-06    .42071E-06
  11  norm          .10000E-03    70.505       -.20791E-06** at limit **
  12  Prefactor     .10000E-03    348.45       -.93333E-06** at limit **
  13  Prefactor     8.6145        35.730        .31131E-06   -.47473E-04
  14  norm          2.0033        1.5849       -.94460E-08   -.70018E-04
  15  Prefactor     .10000E-03    9.5170        .27461E-08** at limit **
  16  Prefactor     .10000E-03    41.532        .12312E-06** at limit **
  17  norm          6.2118        6.3849       -.29662E-07   -.10546E-03
  18  Prefactor     .10000E-03    7.9566        .42011E-07** at limit **
  19  Prefactor     .10000E-03    36.104        .37524E-07** at limit **
  20  Prefactor     .10000E-03    100.16        .12645E-07** at limit **
  21  norm          .10000E-03    31.802        .58533E-07** at limit **
  22  norm          1.5669        .88593       -.21306E-07   -.15490E-03
  23  Prefactor     31.461        361.64        .25090E-06   -.17148E-05
  24  norm          .10000E-03    21.499        .90310E-06** at limit **
  25  norm          .10000E-03    32.458        .31675E-07** at limit **
  26  Prefactor     121.20        104.28        .34063E-06   -.35839E-04
  27  Normalizat    1.9682        .37689       -.36779E-05   -.91734E-04
  28  Prefactor     .26079E-11    .40556        .12845E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.5156
  Prefactor  = 0.0001
  Prefactor  = 20.2606
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 4.91381
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.61454
  norm       = 2.00326
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.21178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.56692
  Prefactor  = 31.4613
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 121.195
  Normalizat = 1.96825
  Prefactor  = 2.60791e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   815.6238     FROM HESSE     STATUS=OK           509 CALLS     3930 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.746        .11755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    60.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    204.95        .21351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.516        81.621        .11788E-03   -1.5029    
   6  Prefactor     .10000E-03    41.238        .17925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.261        32.222        .89024E-04   -1.4807    
   8  norm          .10000E-03    7.4249        .75404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    13.682        .20370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9138        708.25        .17981E-03   -1.5265    
  11  norm          .10000E-03    70.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    348.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.6145        35.655        .13638E-03   -1.5121    
  14  norm          2.0033        1.5808        .30129E-04   -1.5425    
  15  Prefactor     .10000E-03    9.5171        .86079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.616        .17983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.2118        6.4155        .67049E-04   -1.5209    
  18  Prefactor     .10000E-03    7.9564        .78703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.104        .16773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    100.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    31.803        .15742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5669        .88918        .19200E-04   -1.5458    
  23  Prefactor     31.461        360.08        .35884E-03   -1.4586    
  24  norm          .10000E-03    21.212        .12854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    32.465        .15903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     121.20        104.70        .18281E-03   -1.3502    
  27  Normalizat    1.9682        .39763        .22316E-03   -.65349    
  28  Prefactor     .26079E-11    .98227        .10212E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31213e-10
Minuit parameter uncertainties:
  1  0.000301509
  2  1.98569e-05
  3  2.43022e-05
  4  0.000904715
  5  61.4351
  6  0.000158125
  7  32.2501
  8  2.16657e-05
  9  0.000379476
  10  119.456
  11  7.52185e-05
  12  0.000821197
  13  35.0873
  14  1.58087
  15  8.39085e-07
  16  2.55852e-05
  17  6.41626
  18  5.468e-06
  19  5.68215e-06
  20  0.000163864
  21  3.80171e-05
  22  0.889189
  23  214.518
  24  0.000232875
  25  1.79213e-05
  26  104.861
  27  0.3983
  28  3.25577e-06
Done.

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

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  5.468e-06  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.781e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  2.608e-12  3.256e-06  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.968e+00  3.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 190.984 -2.308
Photon Flux Upper Limit: 2.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.64e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/881170/likelihoodResults_403920001_404179201_4FGL_J1243.9-0218_daily_bin635.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) = 815.624064836
delta logL = -0.000258225632251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 815.623812721
delta logL = -6.1102921336e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4356       1.0000          .0000       10.000    
     3 'Normalizat'    1.9685       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53934E-05   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+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=   815.6238     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      307 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10472E-03    9.9732        .66752E-02** at limit **
   2  Index         2.3400        5.4598        .50000        .57955E-04
   3  Normalizat    1.9683        .17912E-01    .22316E-03    .40950E-04
   4  Prefactor     .98228E-10    .32251E-02    .10208E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104719
  Index      = 2.34
  Normalizat = 1.96825
  Prefactor  = 9.82275e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   815.6238     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      336 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10472E-03    95.013        .69846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3400        6.1641        .50000       -.56096    
   3  Normalizat    1.9683        .56133E-01    .44632E-04   -.65349    
   4  Prefactor     .98228E-10    .31837E-01    .20415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.52014e-08
Minuit parameter uncertainties:
  1  0.0424173
  2  243.977
  3  0.0561345
  4  3.53868e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/881170': 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): 102
logL (Free Index) = 815.623808681
delta logL = -2.07060975299e-06

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  1.047e-04  4.242e-02  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.340e+00  2.440e+02  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.781e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.823e-11  3.539e-06  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.968e+00  5.613e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 190.984 -2.308

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/881170/cmap_HighResolution_403920001_404179201_4FGL_J1243.9-0218_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-02', job_status='DONE', photon_flux_upper_limit='2.16e-07', time_completed='2021-09-06 03:53:39.672725', job_id='881170', GAL2='0.00', fit_tolerance='1e-08', EG2='1.97', EG='1.97', time_epoch_completed='1630925619.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-2.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='635' AND source_name='4FGL J1243.9-0218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:53:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 881170: <4FGL_J1243.9-0218_daily_bin635> in cluster <slac> Done

Job <4FGL_J1243.9-0218_daily_bin635> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 03:40:37 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 03:40:54 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:40:54 2021
Terminated at Mon Sep  6 03:53:40 2021
Results reported at Mon Sep  6 03:53:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1243.9-0218_daily_bin635 190.984 -2.3082 403920001 404179201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1243.9-0218 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   413.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             175.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            783 sec.

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

