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


Performing analysis on: 4FGL_J0943.7+6137_daily_bin1525
RA = 145.926, Dec = 61.6192
tmin = 634608001, tmax = 634867201
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='469335', job_status='RUN', time_executed='2021-09-01 00:20:43.628315', time_epoch_executed='1630480843.63' WHERE source_name='4FGL J0943.7+6137' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469335

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469335/ft1_4FGL_J0943.7+6137_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469335/ft2_4FGL_J0943.7+6137_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469335/ft1_4FGL_J0943.7+6137_daily_bin1525.fits outfile=/scratch/kocevski/469335/ft1_filteredMKT_4FGL_J0943.7+6137_daily_bin1525.fits ra=145.926 dec=61.6192 rad=12.0 tmin=634608001.0 tmax=634867201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.11
user 2.86
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469335/ft1_filtered_4FGL_J0943.7+6137_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/469335/ft2_4FGL_J0943.7+6137_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/469335/ltcube_634608001_634867201_4FGL_J0943.7+6137_daily_bin1525.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/469335/ft2_4FGL_J0943.7+6137_daily_bin1525.fits
.....................!
real 12.83
user 12.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469335/ft1_filtered_4FGL_J0943.7+6137_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/469335/ft2_4FGL_J0943.7+6137_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/469335/ltcube_634608001_634867201_4FGL_J0943.7+6137_daily_bin1525.fits outfile=/scratch/kocevski/469335/expmap_634608001_634867201_4FGL_J0943.7+6137_daily_bin1525.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/469335/ltcube_634608001_634867201_4FGL_J0943.7+6137_daily_bin1525.fits
.....................!
real 189.71
user 185.26
sys 4.08

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/469335/ft1_filtered_4FGL_J0943.7+6137_daily_bin1525.fits scfile=/scratch/kocevski/469335/ft2_4FGL_J0943.7+6137_daily_bin1525.fits outfile=/scratch/kocevski/469335/cmap_634608001_634867201_4FGL_J0943.7+6137_daily_bin1525.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469335/ft1_filtered_4FGL_J0943.7+6137_daily_bin1525.fits scfile=/scratch/kocevski/469335/ft2_4FGL_J0943.7+6137_daily_bin1525.fits outfile=/scratch/kocevski/469335/cmap_HighResolution_634608001_634867201_4FGL_J0943.7+6137_daily_bin1525.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/469335/ft1_filtered_4FGL_J0943.7+6137_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/469335/ft2_4FGL_J0943.7+6137_daily_bin1525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/469335/Model_4FGL_J0943.7+6137_daily_bin1525.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/469335/ft1_filtered_4FGL_J0943.7+6137_daily_bin1525.fits......................!
real 39.99
user 38.67
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/469335/ft1_filtered_4FGL_J0943.7+6137_daily_bin1525.fits', '/scratch/kocevski/469335/ft2_4FGL_J0943.7+6137_daily_bin1525.fits', expMap='/scratch/kocevski/469335/expmap_634608001_634867201_4FGL_J0943.7+6137_daily_bin1525.fits', expCube='/scratch/kocevski/469335/ltcube_634608001_634867201_4FGL_J0943.7+6137_daily_bin1525.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/469335/Model_4FGL_J0943.7+6137_daily_bin1525.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/469335/ft1_filtered_4FGL_J0943.7+6137_daily_bin1525.fits
Spacecraft file(s): /scratch/kocevski/469335/ft2_4FGL_J0943.7+6137_daily_bin1525.fits
Exposure map: /scratch/kocevski/469335/expmap_634608001_634867201_4FGL_J0943.7+6137_daily_bin1525.fits
Exposure cube: /scratch/kocevski/469335/ltcube_634608001_634867201_4FGL_J0943.7+6137_daily_bin1525.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/469335/Model_4FGL_J0943.7+6137_daily_bin1525.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) = 2631.08885021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    110.66       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6436       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13019E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.235       1.0000         .10000E-03   10000.    
     6 'norm      '    1.9352       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10544E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    66.636       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.645       1.0000         .10000E-03   10000.    
    10 'Prefactor '    72.260       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9444       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .59400E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7159       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .31354E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.412       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    294.30       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18259E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .52063E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19241E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    12.577       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12640E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .73405       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .56434E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    4.6370       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11045E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    .46981E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .49886E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .49748E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .14314E-02   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10651E-01   1.0000         .10000E-03   10000.    
    32 'norm      '    1.9036       1.0000         .10000E-03   10000.    
    33 'norm      '    2.0834       1.0000         .10000E-03   10000.    
    34 'Prefactor '    1306.9       1.0000         .10000E-03   10000.    
    35 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    37 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    38 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    39 'Prefactor '    1.1148       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=   2630.847     FROM MIGRAD    STATUS=CONVERGED    326 CALLS     4549 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     109.50        42.962        .65164E-05    .32173E-02
   2  norm          2.6447        3.9596       -.15285E-05    .22666E-04
   3  Prefactor     .10000E-03    3.4551        .89697E-05** at limit **
   4  Prefactor     .10000E-03    13.150       -.38099E-07** at limit **
   5  Prefactor     11.143        16.940       -.90119E-05   -.44278E-03
   6  norm          2.0089        3.9078       -.94878E-06   -.47231E-04
   7  Prefactor     .10000E-03    17.814        .17404E-04** at limit **
   8  Prefactor     65.860        36.770        .84889E-05   -.64066E-05
   9  Prefactor     32.640        41.023        .11239E-04    .34338E-03
  10  Prefactor     70.955        30.315        .36314E-05   -.33527E-02
  11  Prefactor     8.9118        15.949       -.71812E-05   -.22314E-02
  12  Prefactor     .10000E-03    46.021        .90484E-05** at limit **
  13  norm          2.7146        2.1591       -.12152E-05    .16440E-03
  14  Prefactor     .10000E-03    42.937        .76956E-05** at limit **
  15  Prefactor     14.439        16.455        .65115E-05    .84697E-03
  16  Prefactor     .10000E-03    8.9127       -.70542E-05** at limit **
  17  Prefactor     288.67        293.97       -.20077E-04   -.22420E-01
  18  Prefactor     .10000E-03    15.701        .51012E-05** at limit **
  19  Prefactor     .10000E-03    7.0020       -.16279E-05** at limit **
  20  Prefactor     .10000E-03    32.446       -.22488E-05** at limit **
  21  norm          12.220        31.553       -.27039E-04   -.48150E-02
  22  Prefactor     .10014E-03    49.054        .28596E-04** at limit **
  23  norm          .73383        2.8055        .44779E-05   -.57913E-04
  24  Prefactor     .10323E-03    167.55        .29313E-04** at limit **
  25  norm          4.6329        1.6232       -.38995E-06    .27839E-04
  26  Prefactor     .19039E-03    267.34       -.19170E-05** at limit **
  27  norm          .10000E-03    21.014        .19542E-05** at limit **
  28  Prefactor     .10000E-03    46.327        .14052E-04** at limit **
  29  norm          .10000E-03    6.9170       -.23589E-05** at limit **
  30  norm          .10004E-03    57.146        .80551E-05** at limit **
  31  Prefactor     .10000E-03    108.38        .53754E-05** at limit **
  32  norm          1.9012        .86239       -.52711E-07   -.18706E-04
  33  norm          2.0808        1.8629       -.46245E-06    .26757E-04
  34  Prefactor     1310.1        171.39        .69849E-05   -.80828E-01
  35  norm         10000.0        196.58        .16774E-04** at limit **
  36  Prefactor     .10000E-03    3.3465        .15183E-05** at limit **
  37  Prefactor    10000.0        108.95       -.42491E-04** at limit **
  38  Normalizat    .10000E-01    .13440       -.12608E-03** at limit **
  39  Prefactor     1.1180        .17065        .57947E-05   -.49727E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 109.504
  norm       = 2.6447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1433
  norm       = 2.00894
  Prefactor  = 0.0001
  Prefactor  = 65.8598
  Prefactor  = 32.64
  Prefactor  = 70.9551
  Prefactor  = 8.91178
  Prefactor  = 0.0001
  norm       = 2.71458
  Prefactor  = 0.0001
  Prefactor  = 14.4395
  Prefactor  = 0.0001
  Prefactor  = 288.667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.2202
  Prefactor  = 0.00010014
  norm       = 0.733828
  Prefactor  = 0.000103227
  norm       = 4.63287
  Prefactor  = 0.000190394
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100039
  Prefactor  = 0.000100003
  norm       = 1.90115
  norm       = 2.08075
  Prefactor  = 1310.1
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 1.11803
 **********
 **   18 **HESSE 
 **********

 FCN=   2630.847     FROM HESSE     STATUS=OK          1014 CALLS     5563 TOTAL
                     EDM=   .65E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     109.50        59.343        .95593E-03   -1.3611    
   2  norm          2.6447        3.9841        .62689E-02   -1.5383    
   3  Prefactor     .10000E-03    1.8342        .23505E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.047        .10289E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.143        17.118        .29880E-02   -1.5040    
   6  norm          2.0089        5.0921        .74629E-02   -1.5424    
   7  Prefactor     .10000E-03    17.698        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     65.860        58.527        .12292E-02   -1.4083    
   9  Prefactor     32.640        46.141        .17021E-02   -1.4565    
  10  Prefactor     70.955        50.843        .11807E-02   -1.4021    
  11  Prefactor     8.9118        15.999        .33504E-02   -1.5111    
  12  Prefactor     .10000E-03    45.113        .94775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7146        2.1698        .61784E-02   -1.5378    
  14  Prefactor     .10000E-03    42.238        .10686E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.439        16.440        .26376E-02   -1.4948    
  16  Prefactor     .10000E-03    8.8906        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     288.67        288.94        .59169E-03   -1.2293    
  18  Prefactor     .10000E-03    15.579        .10154E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.9760        .10569E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    32.013        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.220        32.102        .28238E-02   -1.5009    
  22  Prefactor     .10014E-03    48.163        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .73383        2.8771        .12192E-01   -1.5537    
  24  Prefactor     .10323E-03    156.54        .95153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.6329        1.6234        .46726E-02   -1.5277    
  26  Prefactor     .19039E-03    266.83        .90782E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    20.845        .96435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    45.415        .10579E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    6.8922        .10580E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10004E-03    55.834        .10254E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    103.46        .90762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          1.9012        .86205        .68515E-02   -1.5432    
  33  norm          2.0808        1.8723        .71518E-02   -1.5419    
  34  Prefactor     1310.1        5571.5        .29668E-03   -.83007    
  35  norm         10000.0        203.47        .99532E-02    1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .10000E-03    3.3293        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor    10000.0        568.84        .94424E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Normalizat    .10000E-01    .11544        .20176       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Prefactor     1.1180        .17640        .37051E-01   -.88892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00654958
Minuit parameter uncertainties:
  1  59.3752
  2  3.98451
  3  1.96626e-05
  4  3.08448e-07
  5  17.1259
  6  5.09322
  7  0.00011373
  8  58.5781
  9  46.1914
  10  50.8743
  11  16.007
  12  0.000116672
  13  2.16987
  14  8.40758e-05
  15  16.445
  16  3.29939e-05
  17  290.396
  18  3.12969e-05
  19  6.71387e-06
  20  1.86124e-05
  21  32.1471
  22  0.00518853
  23  2.8776
  24  0.0450706
  25  1.62339
  26  0.312009
  27  1.32891e-05
  28  0.000171498
  29  9.73945e-06
  30  0.00297278
  31  0.0010776
  32  0.862052
  33  1.87236
  34  3374.14
  35  0.38192
  36  4.46716e-06
  37  0.0266871
  38  2.14831e-06
  39  0.176495
Done.

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

Extracting fit parameters...

4FGL J0943.7+6137
   Spectrum: PowerLaw
376    Prefactor:  1.000e-04  6.714e-06  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.118e+00  1.765e-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:  1.000e-02  2.148e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/469335/likelihoodResults_634608001_634867201_4FGL_J0943.7+6137_daily_bin1525.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) = 2630.84771718
delta logL = -0.000667474731472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2630.84705162
delta logL = -1.91409162653e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6939       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1178       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=   2630.847     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      253 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.058        .13335E-01** at limit **
   2  Index         2.2528        6.3592        .50000        .19998E-07
   3  Normalizat    .10000E-01    .21086E-02    .97471E-02** at limit **
   4  Prefactor     1.1180        .16478E-01    .20971E-03    .10265E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.25285
  Normalizat = 0.01
  Prefactor  = 1.11804
 **********
 **   18 **HESSE 
 **********

 FCN=   2630.847     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    524.46        .14125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2528        7.8014        .50000       -.58168    
   3  Normalizat    .10000E-01    .20890E-01    .19494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1180        .51853E-01    .41943E-04   -.88892    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.12707e-11
Minuit parameter uncertainties:
  1  0.0001831
  2  1464.99
  3  1.15278e-06
  4  0.0518558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469335': 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): 102
logL (Free Index) = 2630.84704885
delta logL = 8.57698978507e-07

Extracting fit parameters...

4FGL J0943.7+6137
   Spectrum: PowerLaw
376    Prefactor:  1.000e-04  1.831e-04  1.000e-04  1.000e+04 ( 1.000e-12)
377        Index:  2.253e+00  1.465e+03  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.118e+00  5.186e-02  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:  1.000e-02  1.153e-06  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/469335/cmap_HighResolution_634608001_634867201_4FGL_J0943.7+6137_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', job_status='DONE', photon_flux_upper_limit='1.64e-07', time_completed='2021-09-01 00:33:49.617504', job_id='469335', GAL2='1.12', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630481629.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='8.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1525' AND source_name='4FGL J0943.7+6137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 00:33:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 469335: <4FGL_J0943.7+6137_daily_bin1525> in cluster <slac> Done

Job <4FGL_J0943.7+6137_daily_bin1525> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 00:20:30 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 00:20:33 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:20:33 2021
Terminated at Wed Sep  1 00:33:50 2021
Results reported at Wed Sep  1 00:33:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.7+6137_daily_bin1525 145.926 61.6192 634608001 634867201 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 :                                   777.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             335.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            800 sec.

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

