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


Performing analysis on: 4FGL_J1243.9-0218_daily_bin1275
RA = 190.984, Dec = -2.3082
tmin = 569808001, tmax = 570067201
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='885004', job_status='RUN', time_executed='2021-09-06 03:51:54.495435', time_epoch_executed='1630925514.5' WHERE source_name='4FGL J1243.9-0218' and cadence='daily' and bin_id='1275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/885004

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/885004/ft1_4FGL_J1243.9-0218_daily_bin1275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/885004/ft2_4FGL_J1243.9-0218_daily_bin1275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/885004/ft1_4FGL_J1243.9-0218_daily_bin1275.fits outfile=/scratch/kocevski/885004/ft1_filteredMKT_4FGL_J1243.9-0218_daily_bin1275.fits ra=190.984 dec=-2.3082 rad=12.0 tmin=569808001.0 tmax=570067201.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 3.58
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/885004/ft2_4FGL_J1243.9-0218_daily_bin1275.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/885004/ft1_filteredMKT_4FGL_J1243.9-0218_daily_bin1275.fits evtable="EVENTS" outfile="/scratch/kocevski/885004/ft1_filtered_4FGL_J1243.9-0218_daily_bin1275.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.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/885004/ft1_filtered_4FGL_J1243.9-0218_daily_bin1275.fits" evtable="EVENTS" scfile=/scratch/kocevski/885004/ft2_4FGL_J1243.9-0218_daily_bin1275.fits sctable="SC_DATA" outfile=/scratch/kocevski/885004/ltcube_569808001_570067201_4FGL_J1243.9-0218_daily_bin1275.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/885004/ft2_4FGL_J1243.9-0218_daily_bin1275.fits
.....................!
real 16.41
user 16.03
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/885004/ft1_filtered_4FGL_J1243.9-0218_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/885004/ft2_4FGL_J1243.9-0218_daily_bin1275.fits sctable="SC_DATA" expcube=/scratch/kocevski/885004/ltcube_569808001_570067201_4FGL_J1243.9-0218_daily_bin1275.fits outfile=/scratch/kocevski/885004/expmap_569808001_570067201_4FGL_J1243.9-0218_daily_bin1275.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/885004/ltcube_569808001_570067201_4FGL_J1243.9-0218_daily_bin1275.fits
.....................!
real 191.90
user 187.19
sys 4.21

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/885004/ft1_filtered_4FGL_J1243.9-0218_daily_bin1275.fits scfile=/scratch/kocevski/885004/ft2_4FGL_J1243.9-0218_daily_bin1275.fits outfile=/scratch/kocevski/885004/cmap_569808001_570067201_4FGL_J1243.9-0218_daily_bin1275.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/885004/ft1_filtered_4FGL_J1243.9-0218_daily_bin1275.fits scfile=/scratch/kocevski/885004/ft2_4FGL_J1243.9-0218_daily_bin1275.fits outfile=/scratch/kocevski/885004/cmap_HighResolution_569808001_570067201_4FGL_J1243.9-0218_daily_bin1275.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.55
user 0.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/885004/ft1_filtered_4FGL_J1243.9-0218_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/885004/ft2_4FGL_J1243.9-0218_daily_bin1275.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/885004/Model_4FGL_J1243.9-0218_daily_bin1275.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/885004/ft1_filtered_4FGL_J1243.9-0218_daily_bin1275.fits.....................!
real 58.28
user 56.95
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/885004/ft1_filtered_4FGL_J1243.9-0218_daily_bin1275.fits', '/scratch/kocevski/885004/ft2_4FGL_J1243.9-0218_daily_bin1275.fits', expMap='/scratch/kocevski/885004/expmap_569808001_570067201_4FGL_J1243.9-0218_daily_bin1275.fits', expCube='/scratch/kocevski/885004/ltcube_569808001_570067201_4FGL_J1243.9-0218_daily_bin1275.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/885004/Model_4FGL_J1243.9-0218_daily_bin1275.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/885004/ft1_filtered_4FGL_J1243.9-0218_daily_bin1275.fits
Spacecraft file(s): /scratch/kocevski/885004/ft2_4FGL_J1243.9-0218_daily_bin1275.fits
Exposure map: /scratch/kocevski/885004/expmap_569808001_570067201_4FGL_J1243.9-0218_daily_bin1275.fits
Exposure cube: /scratch/kocevski/885004/ltcube_569808001_570067201_4FGL_J1243.9-0218_daily_bin1275.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/885004/Model_4FGL_J1243.9-0218_daily_bin1275.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) = 7229.91058204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .42418       1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.583       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0215       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.5642       1.0000         .10000E-03   10000.    
     9 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.732       1.0000         .10000E-03   10000.    
    11 'norm      '    114.62       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .36113       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7163       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.127       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9456       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.067       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.722       1.0000         .10000E-03   10000.    
    20 'Prefactor '    54.624       1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.2120       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    21.048       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5377       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .77212       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=   7229.900     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3512 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8031        .36695E-07** at limit **
   2  Prefactor     .72250E-01    12.962        .29025E-06   -.65956E-04
   3  Prefactor     42.711        39.882        .12810E-05    .29036E-03
   4  Prefactor     .10000E-03    17.729        .94574E-07** at limit **
   5  Prefactor     1.0129        11.226       -.30900E-05    .56775E-03
   6  Prefactor     .10000E-03    7.5618       -.30448E-07** at limit **
   7  Prefactor     .10000E-03    9.6788        .68758E-07** at limit **
   8  norm          6.5645        2.8396       -.10242E-06    .37970E-03
   9  norm          .10000E-03    2.9212       -.14369E-06** at limit **
  10  Prefactor     26.731        26.928        .10463E-05    .16400E-03
  11  norm          114.58        59.226       -.11217E-05   -.18686E-03
  12  Prefactor     .10000E-03    51.708       -.53474E-06** at limit **
  13  Prefactor     .10000E-03    4.2893       -.50225E-07** at limit **
  14  norm          .36165        .69300       -.10292E-06   -.31432E-03
  15  Prefactor     3.7119        7.4971        .64409E-05   -.69466E-03
  16  Prefactor     10.118        12.575       -.17009E-05   -.46448E-03
  17  norm          1.9447        1.3755        .32579E-07    .17651E-04
  18  Prefactor     10.064        8.3735       -.11132E-05   -.33437E-03
  19  Prefactor     21.697        30.298        .13989E-05    .15634E-03
  20  Prefactor     54.613        42.337       -.19451E-06   -.12338E-04
  21  norm          .10000E-03    13.242        .14608E-07** at limit **
  22  norm          1.2118        .30409        .19248E-07    .22379E-03
  23  Prefactor     .10000E-03    27.238       -.53846E-06** at limit **
  24  norm          21.041        13.135       -.22879E-05   -.11108E-02
  25  norm          .10000E-03    4.0756       -.17244E-07** at limit **
  26  Prefactor     .10000E-03    8.0673       -.21878E-08** at limit **
  27  Normalizat    1.5387        .23349        .65180E-06    .14236E-03
  28  Prefactor     .77170        .15692       -.75412E-06    .20873E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.07225
  Prefactor  = 42.7115
  Prefactor  = 0.0001
  Prefactor  = 1.01291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.56453
  norm       = 0.0001
  Prefactor  = 26.731
  norm       = 114.579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.361649
  Prefactor  = 3.71189
  Prefactor  = 10.1176
  norm       = 1.94467
  Prefactor  = 10.0635
  Prefactor  = 21.6968
  Prefactor  = 54.6128
  norm       = 0.0001
  norm       = 1.21185
  Prefactor  = 0.0001
  norm       = 21.0408
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.53866
  Prefactor  = 0.771703
 **********
 **   18 **HESSE 
 **********

 FCN=   7229.900     FROM HESSE     STATUS=OK           519 CALLS     4031 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8100        .16194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .72250E-01    21.219        .81966E-01   -1.5654    
   3  Prefactor     42.711        40.586        .61433E-04   -1.4400    
   4  Prefactor     .10000E-03    17.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0129        52.141        .52643E-02   -1.5507    
   6  Prefactor     .10000E-03    7.5635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.7439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.5645        2.8261        .90344E-04   -1.5195    
   9  norm          .10000E-03    2.9854        .28170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.731        26.993        .77482E-04   -1.4673    
  11  norm          114.58        56.957        .18790E-03   -1.3563    
  12  Prefactor     .10000E-03    51.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3204        .17195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .36165        .65752        .76169E-04   -1.5588    
  15  Prefactor     3.7119        7.7645        .10474E-02   -1.5323    
  16  Prefactor     10.118        12.797        .12591E-03   -1.5072    
  17  norm          1.9447        1.3627        .79663E-04   -1.5429    
  18  Prefactor     10.064        8.3909        .12629E-03   -1.5073    
  19  Prefactor     21.697        30.359        .85941E-04   -1.4776    
  20  Prefactor     54.613        42.475        .54272E-04   -1.4229    
  21  norm          .10000E-03    13.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.2118        .30523        .21755E-04   -1.5488    
  23  Prefactor     .10000E-03    27.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          21.041        13.749        .87304E-04   -1.4790    
  25  norm          .10000E-03    4.0808        .16765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.1346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.5387        .28090        .28664E-03   -.76698    
  28  Prefactor     .77170        .18704        .27800E-03   -1.0078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06186e-08
Minuit parameter uncertainties:
  1  2.8493e-06
  2  2.47554
  3  40.6121
  4  1.0929e-05
  5  14.5473
  6  4.37448e-06
  7  1.56118e-05
  8  2.82615
  9  2.02572e-05
  10  27.0052
  11  56.9841
  12  0.000175231
  13  6.9789e-06
  14  0.657528
  15  7.76662
  16  12.8007
  17  1.36268
  18  8.39191
  19  30.381
  20  42.4985
  21  1.04044e-05
  22  0.305228
  23  1.72928e-05
  24  13.7511
  25  3.55181e-06
  26  1.10005e-05
  27  0.281188
  28  0.187196
Done.

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

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  1.006e+01  8.392e+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

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  7.717e-01  1.872e-01  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.539e+00  2.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.21
Ra Dec: 190.984 -2.308
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 3.85e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.77e-05

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

Saving results to:
/scratch/kocevski/885004/likelihoodResults_569808001_570067201_4FGL_J1243.9-0218_daily_bin1275.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) = 7229.88955312
delta logL = 0.0109282325511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7229.87738626
delta logL = 0.0230950939731

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3174       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4223       1.0000          .0000       10.000    
     3 'Normalizat'    1.5179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78078       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.

 FCN=   7229.877     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      239 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3088        148.66        .34752E-02    .35676E-03
   2  Index         2.4227        6.2074        .11831        .18838E-03
   3  Normalizat    1.5177        .13036        .65146E-01   -.31900E-03
   4  Prefactor     .78089        .59760E-01    .62507E-01   -.67174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.30878
  Index      = 2.42271
  Normalizat = 1.51767
  Prefactor  = 0.780893
 **********
 **   18 **HESSE 
 **********

 FCN=   7229.877     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3088        16.516        .13901E-03   -1.5131    
   2  Index         2.4227        1.5576        .78684E-02   -.54154    
   3  Normalizat    1.5177        .29724        .28815E-03   -.77283    
   4  Prefactor     .78089        .19663        .27648E-03   -1.0044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37683e-10
Minuit parameter uncertainties:
  1  16.5253
  2  1.59409
  3  0.297582
  4  0.196802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/885004': 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) = 7229.87738567
delta logL = 0.0230956836467

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  8.309e+00  1.653e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.423e+00  1.594e+00  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:  7.809e-01  1.968e-01  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.518e+00  2.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.26
Ra Dec: 190.984 -2.308
Photon Index (Free Index): 2.42 +/- 1.59
Photon Flux (Free Index): 6.27e-08 +/- 1.13e-07
Energy Flux (Free Index): 1.99e-05 +/- 1.71e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/885004/cmap_HighResolution_569808001_570067201_4FGL_J1243.9-0218_daily_bin1275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='1.99e-05', photon_flux_error='3.85e-08', dlogl='2.31e-02', energy_flux='2.12e-05', photon_flux2='6.27e-08', job_status='DONE', time_completed='2021-09-06 04:06:49.944402', photon_index_error2='1.59', photon_index2='2.42', ts='3.21', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.71e-05', EG='1.54', time_epoch_completed='1630926409.94', return_code='0', job_id='885004', GAL2='0.78', EG2='1.52', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='1.13e-07', ts2='3.26', photon_index='2.19' WHERE bin_id='1275' AND source_name='4FGL J1243.9-0218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:06:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 885004: <4FGL_J1243.9-0218_daily_bin1275> in cluster <slac> Done

Job <4FGL_J1243.9-0218_daily_bin1275> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Sep  6 03:50:57 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 03:51:37 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:51:37 2021
Terminated at Mon Sep  6 04:06:50 2021
Results reported at Mon Sep  6 04:06:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1243.9-0218_daily_bin1275 190.984 -2.3082 569808001 570067201 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 :                                   887.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             349.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            953 sec.

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

