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


Performing analysis on: 4FGL_J1243.9-0218_daily_bin1281
RA = 190.984, Dec = -2.3082
tmin = 571363201, tmax = 571622401
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='885012', job_status='RUN', time_executed='2021-09-06 03:51:52.636518', time_epoch_executed='1630925512.64' WHERE source_name='4FGL J1243.9-0218' and cadence='daily' and bin_id='1281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/885012

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/885012/ft1_4FGL_J1243.9-0218_daily_bin1281.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/885012/ft2_4FGL_J1243.9-0218_daily_bin1281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/885012/ft1_4FGL_J1243.9-0218_daily_bin1281.fits outfile=/scratch/kocevski/885012/ft1_filteredMKT_4FGL_J1243.9-0218_daily_bin1281.fits ra=190.984 dec=-2.3082 rad=12.0 tmin=571363201.0 tmax=571622401.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 2.90
user 2.66
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/885012/ft1_filtered_4FGL_J1243.9-0218_daily_bin1281.fits" evtable="EVENTS" scfile=/scratch/kocevski/885012/ft2_4FGL_J1243.9-0218_daily_bin1281.fits sctable="SC_DATA" outfile=/scratch/kocevski/885012/ltcube_571363201_571622401_4FGL_J1243.9-0218_daily_bin1281.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/885012/ft2_4FGL_J1243.9-0218_daily_bin1281.fits
.....................!
real 17.41
user 16.98
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/885012/ft1_filtered_4FGL_J1243.9-0218_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/885012/ft2_4FGL_J1243.9-0218_daily_bin1281.fits sctable="SC_DATA" expcube=/scratch/kocevski/885012/ltcube_571363201_571622401_4FGL_J1243.9-0218_daily_bin1281.fits outfile=/scratch/kocevski/885012/expmap_571363201_571622401_4FGL_J1243.9-0218_daily_bin1281.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/885012/ltcube_571363201_571622401_4FGL_J1243.9-0218_daily_bin1281.fits
.....................!
real 193.18
user 187.70
sys 4.70

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/885012/ft1_filtered_4FGL_J1243.9-0218_daily_bin1281.fits scfile=/scratch/kocevski/885012/ft2_4FGL_J1243.9-0218_daily_bin1281.fits outfile=/scratch/kocevski/885012/cmap_571363201_571622401_4FGL_J1243.9-0218_daily_bin1281.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/885012/ft1_filtered_4FGL_J1243.9-0218_daily_bin1281.fits scfile=/scratch/kocevski/885012/ft2_4FGL_J1243.9-0218_daily_bin1281.fits outfile=/scratch/kocevski/885012/cmap_HighResolution_571363201_571622401_4FGL_J1243.9-0218_daily_bin1281.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/885012/ft1_filtered_4FGL_J1243.9-0218_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/885012/ft2_4FGL_J1243.9-0218_daily_bin1281.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/885012/Model_4FGL_J1243.9-0218_daily_bin1281.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/885012/ft1_filtered_4FGL_J1243.9-0218_daily_bin1281.fits.....................!
real 55.51
user 53.70
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.988       1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.739       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .49168E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12371E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12241       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.483       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .88626E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    57.046       1.0000         .10000E-03   10000.    
    11 'norm      '    138.61       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15648E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .18827       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2044       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13383E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.6107       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23415E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.952       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12280       1.0000         .10000E-03   10000.    
    21 'norm      '    31.609       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0331       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .36021E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    .10984E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .26402E-02   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5895       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .79209       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6659.432     FROM MIGRAD    STATUS=CONVERGED    217 CALLS     2691 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.350        19.991       -.48816E-05   -.14884E-04
   2  Prefactor     52.122        13.248       -.38742E-06   -.50537E-02
   3  Prefactor     .10000E-03    13.896        .46524E-05** at limit **
   4  Prefactor     .10000E-03    34.285       -.71737E-07** at limit **
   5  Prefactor     .10000E-03    15.167        .14785E-05** at limit **
   6  Prefactor     .19442E-03    33.397       -.22244E-04** at limit **
   7  Prefactor     31.283        17.664        .44004E-05    .11761E-02
   8  norm          .10000E-03    1.4328        .30763E-05** at limit **
   9  norm          .10645E-03    113.87       -.89262E-04** at limit **
  10  Prefactor     60.452        53.973        .14867E-04    .89990E-03
  11  norm          141.54        78.991        .98774E-05   -.36681E-03
  12  Prefactor     .10002E-03    68.702        .23848E-04** at limit **
  13  Prefactor     .10000E-03    3.8443        .28368E-05** at limit **
  14  norm          .18371        .67516        .21446E-05    .13501E-03
  15  Prefactor     4.9404        11.461       -.97499E-05    .43985E-04
  16  Prefactor     .10000E-03    18.143       -.89103E-06** at limit **
  17  norm          2.6126        2.1351        .67853E-06    .15588E-03
  18  Prefactor     .10000E-03    11.760        .19151E-05** at limit **
  19  Prefactor     38.849        43.904       -.97602E-05    .69949E-03
  20  Prefactor     .10437E-03    122.51       -.24311E-04** at limit **
  21  norm          31.478        18.934        .94933E-05    .36628E-02
  22  norm          1.0336        .27640       -.20582E-06    .82091E-03
  23  Prefactor     .10000E-03    25.689        .11431E-04** at limit **
  24  norm          .10000E-03    9.5838       -.81959E-05** at limit **
  25  norm          .10000E-03    3.7297       -.26165E-05** at limit **
  26  Prefactor     .10000E-03    19.395        .14513E-04** at limit **
  27  Normalizat    1.5899        .28475       -.10771E-04    .16510E-03
  28  Prefactor     .79250        .19021        .60950E-05    .11083E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.3505
  Prefactor  = 52.1225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000194417
  Prefactor  = 31.2833
  norm       = 0.0001
  norm       = 0.000106454
  Prefactor  = 60.4519
  norm       = 141.54
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  norm       = 0.183714
  Prefactor  = 4.94036
  Prefactor  = 0.0001
  norm       = 2.61256
  Prefactor  = 0.0001
  Prefactor  = 38.8492
  Prefactor  = 0.000104369
  norm       = 31.4778
  norm       = 1.03364
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.58993
  Prefactor  = 0.792498
 **********
 **   18 **HESSE 
 **********

 FCN=   6659.432     FROM HESSE     STATUS=OK           593 CALLS     3284 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.350        19.980        .21857E-02   -1.4784    
   2  Prefactor     52.122        26.803        .13939E-02   -1.4263    
   3  Prefactor     .10000E-03    13.890        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    34.258        .96127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.137        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .19442E-03    24.962        .15003       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.283        17.988        .17853E-02   -1.4589    
   8  norm          .10000E-03    1.4251        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10645E-03    3.9162        .81003E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     60.452        55.956        .13278E-02   -1.4151    
  11  norm          141.54        90.903        .85535E-03   -1.3323    
  12  Prefactor     .10002E-03    68.774        .91011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8268        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .18371        .57668        .24275E-01   -1.5622    
  15  Prefactor     4.9404        11.514        .44052E-02   -1.5263    
  16  Prefactor     .10000E-03    17.825        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.6126        2.1628        .63114E-02   -1.5385    
  18  Prefactor     .10000E-03    11.410        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     38.849        44.104        .15660E-02   -1.4461    
  20  Prefactor     .10437E-03    152.37        .96194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          31.478        29.170        .17817E-02   -1.4585    
  22  norm          1.0336        .27610        .47019E-02   -1.5505    
  23  Prefactor     .10000E-03    25.628        .92016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    9.4078        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.7216        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.083        .99814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.5899        .24557        .65996E-01   -.75282    
  28  Prefactor     .79250        .16314        .43614E-01   -1.0001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09263e-07
Minuit parameter uncertainties:
  1  19.9862
  2  26.8093
  3  2.90663e-05
  4  0.000110977
  5  2.77986e-06
  6  0.0971361
  7  17.9916
  8  7.16599e-06
  9  0.0100558
  10  56.0043
  11  90.9925
  12  0.00253528
  13  1.00024e-05
  14  0.576696
  15  11.5187
  16  2.64257e-06
  17  2.16283
  18  7.91686e-06
  19  44.1409
  20  0.0517342
  21  29.1836
  22  0.276102
  23  9.86773e-05
  24  4.32268e-05
  25  1.03142e-05
  26  0.000110937
  27  0.24576
  28  0.163242
Done.

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

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  7.917e-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:  7.925e-01  1.632e-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.590e+00  2.458e-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: 9.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/885012/likelihoodResults_571363201_571622401_4FGL_J1243.9-0218_daily_bin1281.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) = 6659.43193418
delta logL = -0.000405279142797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6659.43152994
delta logL = -1.03988531919e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14357E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0734       1.0000          .0000       10.000    
     3 'Normalizat'    1.5894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79287       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6659.334     FROM MIGRAD    STATUS=CONVERGED    149 CALLS      314 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9177        7.6186        .35073E-03    .21166E-04
   2  Index         1.2981        .91287        .16475E-01   -.14370E-03
   3  Normalizat    1.5943        .27296        .29156E-03    .85386E-04
   4  Prefactor     .78616        .18861        .27266E-03    .12876E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.9177
  Index      = 1.29809
  Normalizat = 1.59425
  Prefactor  = 0.786161
 **********
 **   18 **HESSE 
 **********

 FCN=   6659.334     FROM HESSE     STATUS=OK            25 CALLS      339 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9177        7.7213        .14029E-04   -1.5366    
   2  Index         1.2981        .92534        .32950E-02   -.83364    
   3  Normalizat    1.5943        .27320        .58312E-04   -.75163    
   4  Prefactor     .78616        .18878        .10906E-04   -1.0024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36484e-11
Minuit parameter uncertainties:
  1  7.72397
  2  0.937443
  3  0.273455
  4  0.188932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/885012': 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) = 6659.33373483
delta logL = 0.0977940697512

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  2.918e+00  7.724e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.298e+00  9.374e-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:  7.862e-01  1.889e-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.594e+00  2.735e-01  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/885012/cmap_HighResolution_571363201_571622401_4FGL_J1243.9-0218_daily_bin1281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.09e-03', job_status='DONE', photon_flux_upper_limit='9.31e-08', time_completed='2021-09-06 04:05:12.564204', job_id='885012', GAL2='0.79', fit_tolerance='1e-08', EG2='1.59', EG='1.59', time_epoch_completed='1630926312.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='9.78e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1281' AND source_name='4FGL J1243.9-0218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:05:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 885012: <4FGL_J1243.9-0218_daily_bin1281> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1243.9-0218_daily_bin1281 190.984 -2.3082 571363201 571622401 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 :                                   790.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            855 sec.

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

