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


Performing analysis on: 4FGL_J0943.7+6137_daily_bin1282
RA = 145.926, Dec = 61.6192
tmin = 571622401, tmax = 571881601
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='467729', job_status='RUN', time_executed='2021-09-01 00:17:52.762248', time_epoch_executed='1630480672.76' WHERE source_name='4FGL J0943.7+6137' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467729

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467729/ft1_4FGL_J0943.7+6137_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467729/ft2_4FGL_J0943.7+6137_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467729/ft1_4FGL_J0943.7+6137_daily_bin1282.fits outfile=/scratch/kocevski/467729/ft1_filteredMKT_4FGL_J0943.7+6137_daily_bin1282.fits ra=145.926 dec=61.6192 rad=12.0 tmin=571622401.0 tmax=571881601.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.21
user 2.01
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/467729/ft2_4FGL_J0943.7+6137_daily_bin1282.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/467729/ft2_4FGL_J0943.7+6137_daily_bin1282.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/467729/ft1_filteredMKT_4FGL_J0943.7+6137_daily_bin1282.fits evtable="EVENTS" outfile="/scratch/kocevski/467729/ft1_filtered_4FGL_J0943.7+6137_daily_bin1282.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.43
user 0.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467729/ft1_filtered_4FGL_J0943.7+6137_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/467729/ft2_4FGL_J0943.7+6137_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/467729/ltcube_571622401_571881601_4FGL_J0943.7+6137_daily_bin1282.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/467729/ft2_4FGL_J0943.7+6137_daily_bin1282.fits
.....................!
real 9.97
user 9.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467729/ft1_filtered_4FGL_J0943.7+6137_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/467729/ft2_4FGL_J0943.7+6137_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/467729/ltcube_571622401_571881601_4FGL_J0943.7+6137_daily_bin1282.fits outfile=/scratch/kocevski/467729/expmap_571622401_571881601_4FGL_J0943.7+6137_daily_bin1282.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/467729/ltcube_571622401_571881601_4FGL_J0943.7+6137_daily_bin1282.fits
.....................!
real 152.25
user 147.92
sys 4.01

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 240 point sources and 0 extended sources

Setting source of interest to:
4FGL J0943.7+6137 @ 145.926 61.6192

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/467729/ft1_filtered_4FGL_J0943.7+6137_daily_bin1282.fits scfile=/scratch/kocevski/467729/ft2_4FGL_J0943.7+6137_daily_bin1282.fits outfile=/scratch/kocevski/467729/cmap_571622401_571881601_4FGL_J0943.7+6137_daily_bin1282.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=145.926 yref=61.6192 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.51
user 0.30
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467729/ft1_filtered_4FGL_J0943.7+6137_daily_bin1282.fits scfile=/scratch/kocevski/467729/ft2_4FGL_J0943.7+6137_daily_bin1282.fits outfile=/scratch/kocevski/467729/cmap_HighResolution_571622401_571881601_4FGL_J0943.7+6137_daily_bin1282.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=145.926 yref=61.6192 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.46
user 0.30
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/467729/ft1_filtered_4FGL_J0943.7+6137_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/467729/ft2_4FGL_J0943.7+6137_daily_bin1282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/467729/Model_4FGL_J0943.7+6137_daily_bin1282.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/467729/ft1_filtered_4FGL_J0943.7+6137_daily_bin1282.fits......................!
real 33.07
user 31.92
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/467729/ft1_filtered_4FGL_J0943.7+6137_daily_bin1282.fits', '/scratch/kocevski/467729/ft2_4FGL_J0943.7+6137_daily_bin1282.fits', expMap='/scratch/kocevski/467729/expmap_571622401_571881601_4FGL_J0943.7+6137_daily_bin1282.fits', expCube='/scratch/kocevski/467729/ltcube_571622401_571881601_4FGL_J0943.7+6137_daily_bin1282.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/467729/Model_4FGL_J0943.7+6137_daily_bin1282.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0943.7+6137'

4FGL J0943.7+6137
   Spectrum: PowerLaw
376    Prefactor:  2.807e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
377        Index:  2.706e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  5.090e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/467729/ft1_filtered_4FGL_J0943.7+6137_daily_bin1282.fits
Spacecraft file(s): /scratch/kocevski/467729/ft2_4FGL_J0943.7+6137_daily_bin1282.fits
Exposure map: /scratch/kocevski/467729/expmap_571622401_571881601_4FGL_J0943.7+6137_daily_bin1282.fits
Exposure cube: /scratch/kocevski/467729/ltcube_571622401_571881601_4FGL_J0943.7+6137_daily_bin1282.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/467729/Model_4FGL_J0943.7+6137_daily_bin1282.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) = 2818.6447106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17467E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10583E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9945.3       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9997.2       1.0000         .10000E-03   10000.    
     6 'norm      '    3.2666       1.0000         .10000E-03   10000.    
     7 'Prefactor '    882.74       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22009E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.759       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6805       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8603       1.0000         .10000E-03   10000.    
    13 'norm      '    .68344       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12752E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8769       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4226       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22329E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13826E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.4506       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7955       1.0000         .10000E-03   10000.    
    23 'norm      '    1.2798       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.8679       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .28448E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    15.974       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .29856E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    9.5894       1.0000         .10000E-03   10000.    
    30 'norm      '    8.1640       1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.3154       1.0000         .10000E-03   10000.    
    32 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    12.959       1.0000         .10000E-03   10000.    
    35 'norm      '    2.7402       1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    37 'Prefactor '    .23295E-02   1.0000         .10000E-03   10000.    
    38 'Normalizat'    .51708       1.0000         .10000E-01   10.000    
    39 'Prefactor '    1.2688       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2812.424     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     5023 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.824        .15704E-05** at limit **
   2  norm          .10000E-03    29.264        .28120E-06** at limit **
   3  Prefactor     .10000E-03    .88307        .37644E-07** at limit **
   4  Prefactor    10000.0        388.44       -.38287E-05** at limit **
   5  Prefactor    10000.0        206.42        .91129E-07** at limit **
   6  norm          3.2488        2.3088        .22508E-06    .12616E-03
   7  Prefactor    10000.0        931.52       -.15052E-05** at limit **
   8  Prefactor     .10000E-03    32.858       -.95943E-06** at limit **
   9  Prefactor     .10001E-03    557.61        .10778E-04** at limit **
  10  Prefactor     .10000E-03    11.789        .12637E-05** at limit **
  11  Prefactor     1.8910        50.070        .54011E-05   -.12563E-04
  12  Prefactor     .10998E-03    1995.0       -.82418E-05** at limit **
  13  norm          .19368        7.3543        .19054E-05    .29421E-03
  14  Prefactor     .10000E-03    129.37        .46623E-07** at limit **
  15  Prefactor     1.4526        46.474        .46570E-05    .19090E-03
  16  Prefactor     .10000E-03    14.371        .12182E-05** at limit **
  17  Prefactor     .10000E-03    161.57        .27130E-05** at limit **
  18  Prefactor     .10000E-03    14.388       -.30832E-06** at limit **
  19  Prefactor     .10000E-03    22.398        .17358E-06** at limit **
  20  Prefactor     .10000E-03    22.509       -.32623E-06** at limit **
  21  norm          1.1332        146.28        .14926E-04   -.11642E-03
  22  Prefactor     .10000E-03    154.00       -.99230E-05** at limit **
  23  norm          1.2603        1.1553        .20874E-06   -.27064E-03
  24  Prefactor     .10000E-03    12.528       -.25310E-06** at limit **
  25  norm          1.8391        1.2351       -.76311E-07   -.33563E-03
  26  Prefactor     .10000E-03    39.729       -.12765E-05** at limit **
  27  norm          16.368        28.398       -.72759E-06   -.20269E-04
  28  Prefactor     .10000E-03    43.427       -.48738E-06** at limit **
  29  norm          9.5814        5.3734        .94592E-07   -.81952E-06
  30  norm          8.1061        4.9269        .10139E-06    .69605E-04
  31  Prefactor     .10002E-03    832.66       -.25000E-04** at limit **
  32  norm          .10000E-03    .41400        .39087E-07** at limit **
  33  norm          .10000E-03    4.6322        .65324E-06** at limit **
  34  Prefactor     27.951        44.230       -.11778E-06   -.20726E-02
  35  norm          2.6927        3.8452       -.52556E-07    .11441E-03
  36  Prefactor     .10000E-03    14.080       -.46768E-05** at limit **
  37  Prefactor     .10000E-03    23.024        .51162E-06** at limit **
  38  Normalizat    .44361        .31835       -.10248E-05   -.69316E-04
  39  Prefactor     1.3044        .30568        .30956E-05   -.15787E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 3.24877
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 1.89104
  Prefactor  = 0.000109979
  norm       = 0.193684
  Prefactor  = 0.0001
  Prefactor  = 1.45258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.13324
  Prefactor  = 0.000100001
  norm       = 1.26033
  Prefactor  = 0.0001
  norm       = 1.83912
  Prefactor  = 0.0001
  norm       = 16.3677
  Prefactor  = 0.0001
  norm       = 9.5814
  norm       = 8.10607
  Prefactor  = 0.000100017
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 27.9509
  norm       = 2.69271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.443609
  Prefactor  = 1.30444
 **********
 **   18 **HESSE 
 **********

 FCN=   2812.424     FROM HESSE     STATUS=OK          1032 CALLS     6055 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.631        .10173E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    28.011        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .87727        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        407.15        .13559E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        216.95        .60923E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.2488        2.3189        .56015E-02   -1.5347    
   7  Prefactor    10000.0        906.49        .35249E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.568        .10071E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    570.34        .15151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.884        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8910        50.866        .52632E-02   -1.5983    
  12  Prefactor     .10998E-03    1757.6        .45616E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .19368        1.9083        .41686E-01   -1.5796    
  14  Prefactor     .10000E-03    124.12        .90867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4526        55.994        .75981E-02   -1.5949    
  16  Prefactor     .10000E-03    14.298        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    159.55        .47873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.938        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.701        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.192        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1332        251.82        .43028E-02   -1.5921    
  22  Prefactor     .10000E-03    160.43        .78015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2603        1.1617        .98103E-02   -1.5483    
  24  Prefactor     .10000E-03    12.303        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.8391        1.2485        .76197E-02   -1.5437    
  26  Prefactor     .10000E-03    38.951        .10706E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          16.368        28.278        .25053E-02   -1.4899    
  28  Prefactor     .10000E-03    39.689        .10696E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          9.5814        5.3969        .32352E-02   -1.5089    
  30  norm          8.1061        4.9557        .35079E-02   -1.5138    
  31  Prefactor     .10002E-03    907.67        .96013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    .38702        .14891E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          .10000E-03    3.2604        .27132E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     27.951        884.31        .27817E-02   -1.6766    
  35  norm          2.6927        4.5081        .61488E-02   -1.5380    
  36  Prefactor     .10000E-03    6.4068        .62933E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     .10000E-03    23.360        .10044E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Normalizat    .44361        .31493        .93377E-01   -1.1510    
  39  Prefactor     1.3044        .27762        .52721E-01   -.83175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.601e-06
Minuit parameter uncertainties:
  1  0.000107258
  2  7.94705e-06
  3  3.76028e-07
  4  0.104673
  5  0.000484659
  6  2.31894
  7  0.186729
  8  6.50058e-05
  9  0.00532075
  10  4.20125e-05
  11  19.6333
  12  0.273314
  13  1.21565
  14  7.6461e-05
  15  18.0548
  16  2.06013e-05
  17  0.000466683
  18  1.12898e-05
  19  2.71156e-05
  20  4.08881e-05
  21  33.9298
  22  0.000695949
  23  1.1617
  24  1.41241e-05
  25  1.24852
  26  7.6724e-05
  27  28.3015
  28  6.95026e-05
  29  5.39713
  30  4.95593
  31  0.00800882
  32  1.42675e-07
  33  1.99081e-05
  34  319.74
  35  4.50862
  36  5.38028e-06
  37  2.26768e-05
  38  0.316205
  39  0.277931
Done.

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

Extracting fit parameters...

4FGL J0943.7+6137
   Spectrum: PowerLaw
376    Prefactor:  1.000e-04  2.712e-05  1.000e-04  1.000e+04 ( 1.000e-12)
377        Index:  2.706e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  5.090e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
766    Prefactor:  1.304e+00  2.779e-01  0.000e+00  1.000e+01 ( 1.000e+00)
767        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
768        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
765   Normalization:  4.436e-01  3.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.926 61.619
Photon Flux Upper Limit: 2.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.87e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/467729/likelihoodResults_571622401_571881601_4FGL_J0943.7+6137_daily_bin1282.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) = 2812.42451019
delta logL = -0.000218092966861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2812.42429285
delta logL = -7.52993855713e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3853       1.0000          .0000       10.000    
     3 'Normalizat'    .44361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3044       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7690E+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.

 FCN=   2812.271     FROM MIGRAD    STATUS=CONVERGED    224 CALLS      425 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39878E-03    .90948E-01    .42859E-03** at limit **
   2  Index        10.0000        5.4239        .50000    ** at limit **
   3  Normalizat    .41771        .11686        .41381E-03    .11283E-03
   4  Prefactor     1.3202        .10426        .23307E-03    .29182E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000398779
  Index      = 10
  Normalizat = 0.417711
  Prefactor  = 1.32023
 **********
 **   18 **HESSE 
 **********

 FCN=   2812.271     FROM HESSE     STATUS=OK            33 CALLS      458 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39878E-03    .96764E-03    .25897E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        8.0226        .50000        1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .41771        .31310        .16553E-04   -1.1640    
   4  Prefactor     1.3202        .29176        .46613E-04   -.82707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51484e-10
Minuit parameter uncertainties:
  1  0.000967639
  2  0.000682609
  3  0.314419
  4  0.292127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467729': 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) = 2812.27072485
delta logL = 0.153567243077

Extracting fit parameters...

4FGL J0943.7+6137
   Spectrum: PowerLaw
376    Prefactor:  3.988e-04  9.676e-04  1.000e-04  1.000e+04 ( 1.000e-12)
377        Index:  1.000e+01  6.826e-04  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  5.090e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
766    Prefactor:  1.320e+00  2.921e-01  0.000e+00  1.000e+01 ( 1.000e+00)
767        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
768        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
765   Normalization:  4.177e-01  3.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 145.926 61.619

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/467729/cmap_HighResolution_571622401_571881601_4FGL_J0943.7+6137_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-02', job_status='DONE', photon_flux_upper_limit='2.37e-07', time_completed='2021-09-01 00:28:53.618548', job_id='467729', GAL2='1.32', fit_tolerance='1e-08', EG2='0.42', EG='0.44', time_epoch_completed='1630481333.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='1.54e-01', ts2='0.32', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1282' AND source_name='4FGL J0943.7+6137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 00:28:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 467729: <4FGL_J0943.7+6137_daily_bin1282> in cluster <slac> Done

Job <4FGL_J0943.7+6137_daily_bin1282> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 00:15:39 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 00:15:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 00:15:40 2021
Terminated at Wed Sep  1 00:28:54 2021
Results reported at Wed Sep  1 00:28:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.7+6137_daily_bin1282 145.926 61.6192 571622401 571881601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0943.7+6137 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   653.16 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             322.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            795 sec.

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

