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


Performing analysis on: 4FGL_J1243.9-0218_daily_bin1084
RA = 190.984, Dec = -2.3082
tmin = 520300801, tmax = 520560001
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='884679', job_status='RUN', time_executed='2021-09-06 03:53:17.706596', time_epoch_executed='1630925597.71' WHERE source_name='4FGL J1243.9-0218' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/884679

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/884679/ft1_4FGL_J1243.9-0218_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/884679/ft2_4FGL_J1243.9-0218_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/884679/ft1_4FGL_J1243.9-0218_daily_bin1084.fits outfile=/scratch/kocevski/884679/ft1_filteredMKT_4FGL_J1243.9-0218_daily_bin1084.fits ra=190.984 dec=-2.3082 rad=12.0 tmin=520300801.0 tmax=520560001.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 6.12
user 5.80
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/884679/ft1_filtered_4FGL_J1243.9-0218_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/884679/ft2_4FGL_J1243.9-0218_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/884679/ltcube_520300801_520560001_4FGL_J1243.9-0218_daily_bin1084.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/884679/ft2_4FGL_J1243.9-0218_daily_bin1084.fits
.....................!
real 13.41
user 12.97
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/884679/ft1_filtered_4FGL_J1243.9-0218_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/884679/ft2_4FGL_J1243.9-0218_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/884679/ltcube_520300801_520560001_4FGL_J1243.9-0218_daily_bin1084.fits outfile=/scratch/kocevski/884679/expmap_520300801_520560001_4FGL_J1243.9-0218_daily_bin1084.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/884679/ltcube_520300801_520560001_4FGL_J1243.9-0218_daily_bin1084.fits
.....................!
real 192.66
user 185.68
sys 4.68

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/884679/ft1_filtered_4FGL_J1243.9-0218_daily_bin1084.fits scfile=/scratch/kocevski/884679/ft2_4FGL_J1243.9-0218_daily_bin1084.fits outfile=/scratch/kocevski/884679/cmap_520300801_520560001_4FGL_J1243.9-0218_daily_bin1084.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/884679/ft1_filtered_4FGL_J1243.9-0218_daily_bin1084.fits scfile=/scratch/kocevski/884679/ft2_4FGL_J1243.9-0218_daily_bin1084.fits outfile=/scratch/kocevski/884679/cmap_HighResolution_520300801_520560001_4FGL_J1243.9-0218_daily_bin1084.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/884679/ft1_filtered_4FGL_J1243.9-0218_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/884679/ft2_4FGL_J1243.9-0218_daily_bin1084.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/884679/Model_4FGL_J1243.9-0218_daily_bin1084.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/884679/ft1_filtered_4FGL_J1243.9-0218_daily_bin1084.fits.....................!
real 39.56
user 37.86
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.334       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7503       1.0000         .10000E-03   10000.    
     5 'Prefactor '    61.866       1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.254       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .92601       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.7197       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5677       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.2038       1.0000         .10000E-03   10000.    
    22 'norm      '    3.3620       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    25.566       1.0000         .10000E-03   10000.    
    25 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1309       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90262       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=   4012.209     FROM MIGRAD    STATUS=CONVERGED    673 CALLS     3490 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7712       -.15203E-05** at limit **
   2  Prefactor     15.334        19.499        .32025E-06   -.60262E-05
   3  Prefactor     .10000E-03    22.448       -.69470E-06** at limit **
   4  Prefactor     9.7774        94.081        .63592E-04    .45945E-05
   5  Prefactor     61.871        35.823        .16846E-05    .39125E-04
   6  Prefactor     30.252        29.273       -.21548E-05   -.13652E-04
   7  Prefactor     .10000E-03    14.838       -.27309E-05** at limit **
   8  norm          .92607        2.8624       -.67719E-06   -.93704E-03
   9  norm          .10000E-03    2.1232       -.13599E-06** at limit **
  10  Prefactor     .10000E-03    16.227        .36599E-05** at limit **
  11  norm          .10000E-03    21.698        .33448E-05** at limit **
  12  Prefactor     .10000E-03    96.407       -.92044E-05** at limit **
  13  Prefactor     .10000E-03    4.1982        .17357E-07** at limit **
  14  norm          4.7199        1.1730       -.13836E-07    .35832E-03
  15  Prefactor     .10000E-03    12.052        .15805E-05** at limit **
  16  Prefactor     .10000E-03    6.6397       -.76379E-08** at limit **
  17  norm          1.5677        2.6757        .58700E-07   -.46057E-03
  18  Prefactor     .10000E-03    13.493       -.49889E-05** at limit **
  19  Prefactor     .10000E-03    38.971       -.22814E-04** at limit **
  20  Prefactor     .10000E-03    46.414        .12690E-04** at limit **
  21  norm          7.2026        60.804       -.88520E-06    .11645E-04
  22  norm          3.3620        .60029        .50130E-07   -.45057E-03
  23  Prefactor     .10000E-03    46.665        .13745E-04** at limit **
  24  norm          25.561        17.963        .67827E-06   -.39608E-04
  25  norm          .10000E-03    7.9568        .23107E-06** at limit **
  26  Prefactor     .10000E-03    11.894        .31653E-05** at limit **
  27  Normalizat    1.1308        .31853       -.38231E-05    .92222E-04
  28  Prefactor     .90268        .20659       -.13163E-06   -.10468E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 15.3338
  Prefactor  = 0.0001
  Prefactor  = 9.7774
  Prefactor  = 61.8705
  Prefactor  = 30.2515
  Prefactor  = 0.0001
  norm       = 0.926072
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.71991
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.56767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.20258
  norm       = 3.36201
  Prefactor  = 0.0001
  norm       = 25.5606
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13081
  Prefactor  = 0.902676
 **********
 **   18 **HESSE 
 **********

 FCN=   4012.209     FROM HESSE     STATUS=OK           511 CALLS     4001 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.334        19.547        .10228E-03   -1.4925    
   3  Prefactor     .10000E-03    22.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.7774        93.176        .12833E-03   -1.5082    
   5  Prefactor     61.871        35.665        .51015E-04   -1.4133    
   6  Prefactor     30.252        29.298        .72843E-04   -1.4607    
   7  Prefactor     .10000E-03    14.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .92607        2.5947        .17874E-02   -1.5516    
   9  norm          .10000E-03    2.1415        .90034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    21.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    96.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.2011        .12675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.7199        1.1803        .30776E-04   -1.5273    
  15  Prefactor     .10000E-03    12.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.6556        .15940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5677        2.6486        .12364E-03   -1.5458    
  18  Prefactor     .10000E-03    13.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    38.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    46.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.2026        60.740        .14945E-03   -1.5171    
  22  norm          3.3620        .60391        .19408E-04   -1.5341    
  23  Prefactor     .10000E-03    46.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          25.561        17.973        .79227E-04   -1.4696    
  25  norm          .10000E-03    7.9720        .17452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1308        .36976        .33386E-03   -.88769    
  28  Prefactor     .90268        .23910        .26004E-03   -.96048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.54092e-10
Minuit parameter uncertainties:
  1  0.00014686
  2  19.5555
  3  6.78594e-06
  4  60.4898
  5  35.677
  6  29.3114
  7  1.07443e-05
  8  2.59498
  9  1.45888e-05
  10  1.39341e-06
  11  9.96698e-06
  12  1.76053e-05
  13  3.27586e-06
  14  1.18027
  15  3.4532e-05
  16  1.01656e-05
  17  2.64879
  18  6.47773e-05
  19  7.50435e-05
  20  1.7634e-05
  21  41.8896
  22  0.603906
  23  6.68938e-06
  24  17.9768
  25  4.59777e-06
  26  1.09664e-05
  27  0.370612
  28  0.239381
Done.

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

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  6.478e-05  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.027e-01  2.394e-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.131e+00  3.706e-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: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/884679/likelihoodResults_520300801_520560001_4FGL_J1243.9-0218_daily_bin1084.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) = 4012.20973129
delta logL = -0.000351340065208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4012.20938267
delta logL = -2.71599810731e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11977E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2118       1.0000          .0000       10.000    
     3 'Normalizat'    1.1301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90313       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4012.209     FROM MIGRAD    STATUS=FAILED        91 CALLS      245 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    513.03        .18142E-02** at limit **
   2  Index         2.2373        5.4939        .50000       -.17308E-04
   3  Normalizat    1.1308        .47824E-01    .33386E-03    .29677E-04
   4  Prefactor     .90268        .33916E-01    .26004E-03    .14711E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4012.209     FROM SIMPLEX   STATUS=UNCHANGED    162 CALLS      407 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    513.03        .68336E-03** at limit **
   2  Index         2.2373        5.4939        .13575E-05   -.17308E-04
   3  Normalizat    1.1308        .47824E-01    .12592E-06    .29677E-04
   4  Prefactor     .90268        .33916E-01    .36794E-07    .14711E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4012.209     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      442 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1769.6        .36285E-03** at limit **
   2  Index         2.2375        7.5082        .50000       -.17316E-04
   3  Normalizat    1.1308        .10692        .13354E-04    .26135E-04
   4  Prefactor     .90268        .75827E-01    .10402E-04    .10493E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.23746
  Normalizat = 1.13081
  Prefactor  = 0.902678
 **********
 **   18 **HESSE 
 **********

 FCN=   4012.209     FROM HESSE     STATUS=OK            29 CALLS      471 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.142        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2375        6.0504        .50000       -.58537    
   3  Normalizat    1.1308        .32683        .26709E-05   -.88769    
   4  Prefactor     .90268        .23193        .20803E-05   -.96048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78676e-10
Minuit parameter uncertainties:
  1  0.000593123
  2  5.08317
  3  0.327418
  4  0.23218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/884679': 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) = 4012.20937976
delta logL = 1.88756985153e-07

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  5.931e-04  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.237e+00  5.083e+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:  9.027e-01  2.322e-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.131e+00  3.274e-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/884679/cmap_HighResolution_520300801_520560001_4FGL_J1243.9-0218_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-09-06 04:04:43.204114', job_id='884679', GAL2='0.90', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630926283.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1084' AND source_name='4FGL J1243.9-0218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:04:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 884679: <4FGL_J1243.9-0218_daily_bin1084> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1243.9-0218_daily_bin1084 190.984 -2.3082 520300801 520560001 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 :                                   664.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            843 sec.

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

