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


Performing analysis on: 4FGL_J1243.9-0218_daily_bin436
RA = 190.984, Dec = -2.3082
tmin = 352339201, tmax = 352598401
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='879579', job_status='RUN', time_executed='2021-09-06 03:37:44.853807', time_epoch_executed='1630924664.85' WHERE source_name='4FGL J1243.9-0218' and cadence='daily' and bin_id='436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/879579

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/879579/ft1_4FGL_J1243.9-0218_daily_bin436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/879579/ft2_4FGL_J1243.9-0218_daily_bin436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/879579/ft1_4FGL_J1243.9-0218_daily_bin436.fits outfile=/scratch/kocevski/879579/ft1_filteredMKT_4FGL_J1243.9-0218_daily_bin436.fits ra=190.984 dec=-2.3082 rad=12.0 tmin=352339201.0 tmax=352598401.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.48
user 3.23
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/879579/ft2_4FGL_J1243.9-0218_daily_bin436.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/879579/ft1_filteredMKT_4FGL_J1243.9-0218_daily_bin436.fits evtable="EVENTS" outfile="/scratch/kocevski/879579/ft1_filtered_4FGL_J1243.9-0218_daily_bin436.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.57
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/879579/ft1_filtered_4FGL_J1243.9-0218_daily_bin436.fits" evtable="EVENTS" scfile=/scratch/kocevski/879579/ft2_4FGL_J1243.9-0218_daily_bin436.fits sctable="SC_DATA" outfile=/scratch/kocevski/879579/ltcube_352339201_352598401_4FGL_J1243.9-0218_daily_bin436.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/879579/ft2_4FGL_J1243.9-0218_daily_bin436.fits
.....................!
real 14.09
user 13.73
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/879579/ft1_filtered_4FGL_J1243.9-0218_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/879579/ft2_4FGL_J1243.9-0218_daily_bin436.fits sctable="SC_DATA" expcube=/scratch/kocevski/879579/ltcube_352339201_352598401_4FGL_J1243.9-0218_daily_bin436.fits outfile=/scratch/kocevski/879579/expmap_352339201_352598401_4FGL_J1243.9-0218_daily_bin436.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/879579/ltcube_352339201_352598401_4FGL_J1243.9-0218_daily_bin436.fits
.....................!
real 191.17
user 186.10
sys 4.67

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/879579/ft1_filtered_4FGL_J1243.9-0218_daily_bin436.fits scfile=/scratch/kocevski/879579/ft2_4FGL_J1243.9-0218_daily_bin436.fits outfile=/scratch/kocevski/879579/cmap_352339201_352598401_4FGL_J1243.9-0218_daily_bin436.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/879579/ft1_filtered_4FGL_J1243.9-0218_daily_bin436.fits scfile=/scratch/kocevski/879579/ft2_4FGL_J1243.9-0218_daily_bin436.fits outfile=/scratch/kocevski/879579/cmap_HighResolution_352339201_352598401_4FGL_J1243.9-0218_daily_bin436.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10535E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8658       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10915E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .30812E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.9977       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.4351       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .51492E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8787       1.0000         .10000E-03   10000.    
    14 'norm      '    .45965       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3332       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9578       1.0000         .10000E-03   10000.    
    17 'norm      '    .94124       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.525       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    12.027       1.0000         .10000E-03   10000.    
    22 'norm      '    .70521       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .51083E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2467       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91866       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=   7233.002     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3061 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6.5214       -.27677E-05** at limit **
   2  Prefactor     3.8655        11.008       -.99672E-07   -.16562E-04
   3  Prefactor     .10000E-03    36.508       -.24197E-06** at limit **
   4  Prefactor     .10000E-03    238.27        .31355E-04** at limit **
   5  Prefactor     .10000E-03    5.3908       -.13069E-07** at limit **
   6  Prefactor     .10000E-03    13.993        .33956E-06** at limit **
   7  Prefactor     .10000E-03    6.4837       -.51695E-06** at limit **
   8  norm          .10000E-03    .78454       -.55151E-07** at limit **
   9  norm          3.9982        3.9467       -.24474E-06   -.51703E-03
  10  Prefactor     .10000E-03    20.342       -.10338E-05** at limit **
  11  norm          9.4160        49.373       -.65837E-06   -.29359E-04
  12  Prefactor     .10000E-03    419.81       -.33812E-05** at limit **
  13  Prefactor     3.8823        5.4696       -.19947E-05    .26724E-05
  14  norm          .45978        .55150       -.40513E-07   -.60937E-03
  15  Prefactor     8.3274        6.9963        .30470E-06   -.21343E-04
  16  Prefactor     1.9594        8.1628       -.53848E-06    .66303E-05
  17  norm          .94083        1.5511       -.10569E-06   -.34279E-04
  18  Prefactor     16.525        7.8341        .53311E-08   -.43958E-04
  19  Prefactor     .10000E-03    25.695        .16939E-05** at limit **
  20  Prefactor     .10000E-03    12.374       -.24592E-06** at limit **
  21  norm          12.022        22.796        .84952E-06    .38709E-05
  22  norm          .70517        .20544       -.27002E-08   -.13163E-03
  23  Prefactor     .10001E-03    311.73       -.50551E-04** at limit **
  24  norm          .10000E-03    4.9224        .33295E-07** at limit **
  25  norm          .10000E-03    2.9036        .40960E-08** at limit **
  26  Prefactor     .10000E-03    28.877        .46119E-06** at limit **
  27  Normalizat    1.2466        .19889       -.86406E-06   -.29831E-03
  28  Prefactor     .91862        .13974        .17757E-06   -.37016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Prefactor  = 3.86554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 3.99824
  Prefactor  = 0.0001
  norm       = 9.41603
  Prefactor  = 0.0001
  Prefactor  = 3.88227
  norm       = 0.459778
  Prefactor  = 8.32736
  Prefactor  = 1.95939
  norm       = 0.940826
  Prefactor  = 16.5251
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.0223
  norm       = 0.705174
  Prefactor  = 0.00010001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24663
  Prefactor  = 0.918623
 **********
 **   18 **HESSE 
 **********

 FCN=   7233.002     FROM HESSE     STATUS=OK           529 CALLS     3590 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    32.964        .39189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8655        11.002        .20524E-03   -1.5315    
   3  Prefactor     .10000E-03    36.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    238.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.3935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.688        .39999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.1977        .14225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.9982        3.9326        .12833E-03   -1.5308    
  10  Prefactor     .10000E-03    20.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.4160        49.498        .13047E-03   -1.5094    
  12  Prefactor     .10000E-03    427.52        .21143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.8823        5.4753        .10244E-02   -1.5314    
  14  norm          .45978        .51284        .58788E-03   -1.5572    
  15  Prefactor     8.3274        6.9856        .13887E-03   -1.5131    
  16  Prefactor     1.9594        8.1124        .29650E-03   -1.5428    
  17  norm          .94083        1.5013        .12467E-03   -1.5514    
  18  Prefactor     16.525        7.8317        .98526E-04   -1.4895    
  19  Prefactor     .10000E-03    25.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.022        22.793        .11551E-03   -1.5014    
  22  norm          .70517        .20545        .19820E-04   -1.5540    
  23  Prefactor     .10001E-03    31.247        .15531       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.9744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.9067        .14153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    29.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2466        .23168        .27730E-03   -.85174    
  28  Prefactor     .91862        .16391        .23207E-03   -.95493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.58867e-10
Minuit parameter uncertainties:
  1  0.00136425
  2  11.0077
  3  7.65888e-06
  4  0.000601262
  5  6.98166e-08
  6  5.40566e-06
  7  0.00038197
  8  2.78591e-06
  9  3.93287
  10  9.89804e-06
  11  43.2335
  12  0.00052021
  13  5.47599
  14  0.512849
  15  6.98624
  16  7.97545
  17  1.5014
  18  7.83223
  19  4.13095e-05
  20  2.51318e-06
  21  22.8097
  22  0.205447
  23  0.00113453
  24  4.31045e-06
  25  6.23649e-07
  26  6.54118e-05
  27  0.231868
  28  0.163996
Done.

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

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  1.653e+01  7.832e+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:  9.186e-01  1.640e-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.247e+00  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.12
Ra Dec: 190.984 -2.308
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.58e-08 +/- 3.59e-08
Energy Flux (Fixed Index): 3.49e-05 +/- 1.65e-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) = 7231.34744686
delta logL = 1.65417070916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7231.34732959
delta logL = 1.65428797359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.416       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5623       1.0000          .0000       10.000    
     3 'Normalizat'    1.2864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90182       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=   7231.347     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      237 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.321        18.097        .19865E-02   -.11905E-03
   2  Index         1.5620        .41908        .16381        .92226E-04
   3  Normalizat    1.2864        .18909        .61897E-01    .13101E-03
   4  Prefactor     .90186        .13769        .45028E-01    .22094E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.3207
  Index      = 1.56203
  Normalizat = 1.28644
  Prefactor  = 0.901859
 **********
 **   18 **HESSE 
 **********

 FCN=   7231.347     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.321        12.434        .39729E-03   -1.4701    
   2  Index         1.5620        .31883        .65069E-02   -.75817    
   3  Normalizat    1.2864        .21863        .27377E-03   -.83972    
   4  Prefactor     .90186        .16033        .23399E-03   -.96076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46947e-11
Minuit parameter uncertainties:
  1  12.4355
  2  0.319244
  3  0.218785
  4  0.160416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/879579': 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) = 7231.34730004
delta logL = 1.65431752961

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  2.532e+01  1.244e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.562e+00  3.192e-01  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.019e-01  1.604e-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.286e+00  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.48
Ra Dec: 190.984 -2.308
Photon Index (Free Index): 1.56 +/- 0.32
Photon Flux (Free Index): 3.97e-08 +/- 2.56e-08
Energy Flux (Free Index): 1.02e-04 +/- 8.27e-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/879579/cmap_HighResolution_352339201_352598401_4FGL_J1243.9-0218_daily_bin436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.58e-08', energy_flux2='1.02e-04', photon_flux_error='3.59e-08', dlogl='1.65e+00', energy_flux='3.49e-05', photon_flux2='3.97e-08', job_status='DONE', time_completed='2021-09-06 03:49:57.282327', photon_index_error2='0.32', photon_index2='1.56', ts='17.12', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='8.27e-05', EG='1.25', time_epoch_completed='1630925397.28', return_code='0', job_id='879579', GAL2='0.90', EG2='1.29', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='2.56e-08', ts2='20.48', photon_index='2.19' WHERE bin_id='436' AND source_name='4FGL J1243.9-0218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:49:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 879579: <4FGL_J1243.9-0218_daily_bin436> in cluster <slac> Done

Job <4FGL_J1243.9-0218_daily_bin436> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 03:35:46 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 03:37:33 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:37:33 2021
Terminated at Mon Sep  6 03:49:58 2021
Results reported at Mon Sep  6 03:49:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1243.9-0218_daily_bin436 190.984 -2.3082 352339201 352598401 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 :                                   729.53 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            852 sec.

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

