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


Performing analysis on: 4FGL_J1243.9-0218_daily_bin966
RA = 190.984, Dec = -2.3082
tmin = 489715201, tmax = 489974401
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='883029', job_status='RUN', time_executed='2021-09-06 03:46:36.862901', time_epoch_executed='1630925196.86' WHERE source_name='4FGL J1243.9-0218' and cadence='daily' and bin_id='966'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/883029

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/883029/ft1_4FGL_J1243.9-0218_daily_bin966.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/883029/ft2_4FGL_J1243.9-0218_daily_bin966.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/883029/ft1_4FGL_J1243.9-0218_daily_bin966.fits outfile=/scratch/kocevski/883029/ft1_filteredMKT_4FGL_J1243.9-0218_daily_bin966.fits ra=190.984 dec=-2.3082 rad=12.0 tmin=489715201.0 tmax=489974401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.23
user 3.85
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/883029/ft1_filtered_4FGL_J1243.9-0218_daily_bin966.fits" evtable="EVENTS" scfile=/scratch/kocevski/883029/ft2_4FGL_J1243.9-0218_daily_bin966.fits sctable="SC_DATA" outfile=/scratch/kocevski/883029/ltcube_489715201_489974401_4FGL_J1243.9-0218_daily_bin966.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/883029/ft2_4FGL_J1243.9-0218_daily_bin966.fits
.....................!
real 14.63
user 14.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/883029/ft1_filtered_4FGL_J1243.9-0218_daily_bin966.fits evtable="EVENTS" scfile=/scratch/kocevski/883029/ft2_4FGL_J1243.9-0218_daily_bin966.fits sctable="SC_DATA" expcube=/scratch/kocevski/883029/ltcube_489715201_489974401_4FGL_J1243.9-0218_daily_bin966.fits outfile=/scratch/kocevski/883029/expmap_489715201_489974401_4FGL_J1243.9-0218_daily_bin966.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/883029/ltcube_489715201_489974401_4FGL_J1243.9-0218_daily_bin966.fits
.....................!
real 193.04
user 187.76
sys 4.61

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/883029/ft1_filtered_4FGL_J1243.9-0218_daily_bin966.fits scfile=/scratch/kocevski/883029/ft2_4FGL_J1243.9-0218_daily_bin966.fits outfile=/scratch/kocevski/883029/cmap_489715201_489974401_4FGL_J1243.9-0218_daily_bin966.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.96
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/883029/ft1_filtered_4FGL_J1243.9-0218_daily_bin966.fits scfile=/scratch/kocevski/883029/ft2_4FGL_J1243.9-0218_daily_bin966.fits outfile=/scratch/kocevski/883029/cmap_HighResolution_489715201_489974401_4FGL_J1243.9-0218_daily_bin966.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.59
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/883029/ft1_filtered_4FGL_J1243.9-0218_daily_bin966.fits evtable="EVENTS" scfile=/scratch/kocevski/883029/ft2_4FGL_J1243.9-0218_daily_bin966.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/883029/Model_4FGL_J1243.9-0218_daily_bin966.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/883029/ft1_filtered_4FGL_J1243.9-0218_daily_bin966.fits.....................!
real 67.15
user 60.49
sys 2.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12855E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    91.756       1.0000         .10000E-03   10000.    
     4 'Prefactor '    51.763       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5608       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.7856       1.0000         .10000E-03   10000.    
     9 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    34.736       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4641       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8921       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.924       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.417       1.0000         .10000E-03   10000.    
    21 'norm      '    60.793       1.0000         .10000E-03   10000.    
    22 'norm      '    .88244       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1495       1.0000         .10000E-03   10000.    
    24 'norm      '    7.4741       1.0000         .10000E-03   10000.    
    25 'norm      '    4.5219       1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.851       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4228       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .82005       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=   7447.632     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3622 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2859       -.43877E-06** at limit **
   2  Prefactor     .10000E-03    65.349       -.17075E-05** at limit **
   3  Prefactor     91.735        51.959        .65562E-06    .26001E-04
   4  Prefactor     51.779        59.753       -.47305E-06    .96150E-05
   5  Prefactor     9.6507        31.764        .47803E-06    .67372E-05
   6  Prefactor     .10000E-03    15.063        .77849E-07** at limit **
   7  Prefactor     .10000E-03    46.417       -.42434E-05** at limit **
   8  norm          3.7814        3.2352        .10695E-07    .26893E-03
   9  norm          .10000E-03    1.8522        .34031E-07** at limit **
  10  Prefactor     .10000E-03    73.077        .87128E-07** at limit **
  11  norm          34.732        30.985        .16269E-07    .54613E-05
  12  Prefactor     .10000E-03    111.48       -.60530E-07** at limit **
  13  Prefactor     .10000E-03    2.0178        .51251E-07** at limit **
  14  norm          1.4640        .69449       -.57233E-07    .27315E-03
  15  Prefactor     .10000E-03    6.8165        .19544E-06** at limit **
  16  Prefactor     .10000E-03    4.2575        .21550E-06** at limit **
  17  norm          2.8921        1.7495        .88160E-08    .51656E-04
  18  Prefactor     30.926        12.864       -.12152E-06    .20288E-04
  19  Prefactor     .10000E-03    12.752        .86686E-07** at limit **
  20  Prefactor     15.418        30.536       -.88832E-07   -.93066E-05
  21  norm          60.795        35.247       -.25936E-06   -.29511E-05
  22  norm          .88258        .26916       -.52031E-07   -.57726E-03
  23  Prefactor     1.9721        493.10       -.87250E-06   -.80843E-05
  24  norm          7.4870        10.484       -.69719E-06   -.44293E-04
  25  norm          4.5216        5.1677       -.14288E-05   -.20853E-03
  26  Prefactor     25.852        14.849       -.13360E-06   -.83312E-05
  27  Normalizat    1.4228        .25179        .29071E-05   -.68554E-04
  28  Prefactor     .82006        .16808       -.25913E-05    .10398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 91.7348
  Prefactor  = 51.7785
  Prefactor  = 9.65072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.78141
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 34.7322
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.46401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.89208
  Prefactor  = 30.926
  Prefactor  = 0.0001
  Prefactor  = 15.4177
  norm       = 60.7946
  norm       = 0.882584
  Prefactor  = 1.97207
  norm       = 7.487
  norm       = 4.52162
  Prefactor  = 25.8522
  Normalizat = 1.42283
  Prefactor  = 0.820061
 **********
 **   18 **HESSE 
 **********

 FCN=   7447.632     FROM HESSE     STATUS=OK           515 CALLS     4137 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    67.869        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     91.735        51.974        .20976E-03   -1.3789    
   4  Prefactor     51.779        59.752        .55744E-04   -1.4268    
   5  Prefactor     9.6507        31.838        .12960E-03   -1.5087    
   6  Prefactor     .10000E-03    15.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    47.575        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.7814        3.2008        .13224E-03   -1.5319    
   9  norm          .10000E-03    1.8744        .11440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    73.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          34.732        30.988        .67994E-04   -1.4529    
  12  Prefactor     .10000E-03    111.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0198        .11972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4640        .68652        .44699E-04   -1.5466    
  15  Prefactor     .10000E-03    6.8608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.2786        .17389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8921        1.7431        .84035E-04   -1.5368    
  18  Prefactor     30.926        12.872        .72051E-04   -1.4595    
  19  Prefactor     .10000E-03    12.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.418        30.608        .10201E-03   -1.4922    
  21  norm          60.795        35.247        .51460E-04   -1.4147    
  22  norm          .88258        .26841        .22457E-04   -1.5520    
  23  Prefactor     1.9721        500.10        .28105E-03   -1.5427    
  24  norm          7.4870        10.434        .14670E-03   -1.5161    
  25  norm          4.5216        5.2460        .94663E-03   -1.5283    
  26  Prefactor     25.852        14.850        .78789E-04   -1.4691    
  27  Normalizat    1.4228        .27950        .29878E-03   -.79971    
  28  Prefactor     .82006        .18474        .26920E-03   -.98993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1835e-10
Minuit parameter uncertainties:
  1  9.53716e-06
  2  5.70056e-05
  3  51.9997
  4  59.821
  5  31.8937
  6  1.72977e-06
  7  0.000254788
  8  3.20097
  9  6.0319e-09
  10  0.000157494
  11  31.0019
  12  0.000197899
  13  9.29513e-07
  14  0.686522
  15  7.66357e-06
  16  3.18115e-06
  17  1.74315
  18  12.8731
  19  3.77813e-06
  20  30.6392
  21  35.2595
  22  0.26841
  23  63.3492
  24  10.4361
  25  5.24653
  26  14.8521
  27  0.279804
  28  0.184875
Done.

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

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  3.093e+01  1.287e+01  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:  8.201e-01  1.849e-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.423e+00  2.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.77
Ra Dec: 190.984 -2.308
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.42e-07 +/- 5.90e-08
Energy Flux (Fixed Index): 6.52e-05 +/- 2.71e-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) = 7446.46024399
delta logL = 1.17135162693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7446.44156909
delta logL = 1.19002652289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9712       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9536       1.0000          .0000       10.000    
     3 'Normalizat'    1.2774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89426       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=   7446.442     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      249 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9712        41.907        .31724E-02    .11888E-02
   2  Index         2.9537        1.7676        .64781E-01    .24493E-03
   3  Normalizat    1.2774        .11757        .70443E-01    .27264E-04
   4  Prefactor     .89424        .69333E-01    .44932E-01    .85823E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.97116
  Index      = 2.95367
  Normalizat = 1.27744
  Prefactor  = 0.894239
 **********
 **   18 **HESSE 
 **********

 FCN=   7446.442     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9712        73.514        .87653E-04   -1.5076    
   2  Index         2.9537        2.5030        .26715E-02   -.42165    
   3  Normalizat    1.2774        .45772        .31169E-03   -.84242    
   4  Prefactor     .89424        .29795        .25905E-03   -.96343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68899e-07
Minuit parameter uncertainties:
  1  54.2422
  2  2.64947
  3  0.45918
  4  0.298497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/883029': 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) = 7446.44156905
delta logL = 1.19002657138

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  9.971e+00  5.424e+01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.954e+00  2.649e+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:  8.942e-01  2.985e-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.277e+00  4.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.64
Ra Dec: 190.984 -2.308
Photon Index (Free Index): 2.95 +/- 2.65
Photon Flux (Free Index): 2.53e-07 +/- 2.31e-07
Energy Flux (Free Index): 5.17e-05 +/- 3.37e-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/883029/cmap_HighResolution_489715201_489974401_4FGL_J1243.9-0218_daily_bin966.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.42e-07', energy_flux2='5.17e-05', photon_flux_error='5.90e-08', dlogl='1.19e+00', energy_flux='6.52e-05', photon_flux2='2.53e-07', job_status='DONE', time_completed='2021-09-06 04:00:37.823848', photon_index_error2='2.65', photon_index2='2.95', ts='10.77', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='3.37e-05', EG='1.42', time_epoch_completed='1630926037.82', return_code='0', job_id='883029', GAL2='0.89', EG2='1.28', return_code2='0', energy_flux_error='2.71e-05', photon_flux_error2='2.31e-07', ts2='13.64', photon_index='2.19' WHERE bin_id='966' AND source_name='4FGL J1243.9-0218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:00:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 883029: <4FGL_J1243.9-0218_daily_bin966> in cluster <slac> Done

Job <4FGL_J1243.9-0218_daily_bin966> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 03:45:33 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 03:46:21 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:46:21 2021
Terminated at Mon Sep  6 04:00:38 2021
Results reported at Mon Sep  6 04:00:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1243.9-0218_daily_bin966 190.984 -2.3082 489715201 489974401 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 :                                   811.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            905 sec.

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

