/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 3 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7413
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0943.6+4207_daily_bin1156
RA = 145.91, Dec = 42.1169
tmin = 538963201, tmax = 539222401
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='454275', job_status='RUN', time_executed='2021-08-31 23:30:56.540493', time_epoch_executed='1630477856.54' WHERE source_name='4FGL J0943.6+4207' and cadence='daily' and bin_id='1156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/454275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/454275/ft1_4FGL_J0943.6+4207_daily_bin1156.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/454275/ft2_4FGL_J0943.6+4207_daily_bin1156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/454275/ft1_4FGL_J0943.6+4207_daily_bin1156.fits outfile=/scratch/kocevski/454275/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin1156.fits ra=145.91 dec=42.1169 rad=12.0 tmin=538963201.0 tmax=539222401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.56
user 4.34
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/454275/ft2_4FGL_J0943.6+4207_daily_bin1156.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/454275/ft2_4FGL_J0943.6+4207_daily_bin1156.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/454275/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin1156.fits evtable="EVENTS" outfile="/scratch/kocevski/454275/ft1_filtered_4FGL_J0943.6+4207_daily_bin1156.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/454275/ft1_filtered_4FGL_J0943.6+4207_daily_bin1156.fits" evtable="EVENTS" scfile=/scratch/kocevski/454275/ft2_4FGL_J0943.6+4207_daily_bin1156.fits sctable="SC_DATA" outfile=/scratch/kocevski/454275/ltcube_538963201_539222401_4FGL_J0943.6+4207_daily_bin1156.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/454275/ft2_4FGL_J0943.6+4207_daily_bin1156.fits
.....................!
real 15.20
user 14.86
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/454275/ft1_filtered_4FGL_J0943.6+4207_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/454275/ft2_4FGL_J0943.6+4207_daily_bin1156.fits sctable="SC_DATA" expcube=/scratch/kocevski/454275/ltcube_538963201_539222401_4FGL_J0943.6+4207_daily_bin1156.fits outfile=/scratch/kocevski/454275/expmap_538963201_539222401_4FGL_J0943.6+4207_daily_bin1156.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/454275/ltcube_538963201_539222401_4FGL_J0943.6+4207_daily_bin1156.fits
.....................!
real 190.72
user 186.51
sys 3.83

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

Setting source of interest to:
4FGL J0943.6+4207 @ 145.91 42.1169

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/454275/ft1_filtered_4FGL_J0943.6+4207_daily_bin1156.fits scfile=/scratch/kocevski/454275/ft2_4FGL_J0943.6+4207_daily_bin1156.fits outfile=/scratch/kocevski/454275/cmap_538963201_539222401_4FGL_J0943.6+4207_daily_bin1156.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.91 yref=42.1169 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.61
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/454275/ft1_filtered_4FGL_J0943.6+4207_daily_bin1156.fits scfile=/scratch/kocevski/454275/ft2_4FGL_J0943.6+4207_daily_bin1156.fits outfile=/scratch/kocevski/454275/cmap_HighResolution_538963201_539222401_4FGL_J0943.6+4207_daily_bin1156.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.91 yref=42.1169 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.66
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/454275/ft1_filtered_4FGL_J0943.6+4207_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/454275/ft2_4FGL_J0943.6+4207_daily_bin1156.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/454275/Model_4FGL_J0943.6+4207_daily_bin1156.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/454275/ft1_filtered_4FGL_J0943.6+4207_daily_bin1156.fits.....................!
real 37.41
user 35.93
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/454275/ft1_filtered_4FGL_J0943.6+4207_daily_bin1156.fits', '/scratch/kocevski/454275/ft2_4FGL_J0943.6+4207_daily_bin1156.fits', expMap='/scratch/kocevski/454275/expmap_538963201_539222401_4FGL_J0943.6+4207_daily_bin1156.fits', expCube='/scratch/kocevski/454275/ltcube_538963201_539222401_4FGL_J0943.6+4207_daily_bin1156.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/454275/Model_4FGL_J0943.6+4207_daily_bin1156.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0943.6+4207'

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  2.782e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  2.604e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  8.018e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/454275/ft1_filtered_4FGL_J0943.6+4207_daily_bin1156.fits
Spacecraft file(s): /scratch/kocevski/454275/ft2_4FGL_J0943.6+4207_daily_bin1156.fits
Exposure map: /scratch/kocevski/454275/expmap_538963201_539222401_4FGL_J0943.6+4207_daily_bin1156.fits
Exposure cube: /scratch/kocevski/454275/ltcube_538963201_539222401_4FGL_J0943.6+4207_daily_bin1156.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/454275/Model_4FGL_J0943.6+4207_daily_bin1156.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) = 3765.88732875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5079       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5363       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .61158       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.480       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13505E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7686       1.0000         .10000E-03   10000.    
     9 'norm      '    2.1426       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22708E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.984       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0828       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5556       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6531       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .68768E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7700       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .27810       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0144       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .35729E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    16.684       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.496       1.0000         .10000E-03   10000.    
    27 'norm      '    21.295       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.6976       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    30.097       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .79773       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .93340       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3765.884     FROM MIGRAD    STATUS=CONVERGED    929 CALLS     5366 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5077        6.8677        .52829E-07   -.10836E-04
   2  Prefactor     4.5365        3.3068        .19410E-07   -.20034E-03
   3  Prefactor     .10000E-03    9.1139        .18784E-07** at limit **
   4  Prefactor     .10000E-03    56.982       -.52745E-06** at limit **
   5  Prefactor     .61146        2.1672       -.57710E-07    .11317E-03
   6  Prefactor     15.491        37.931        .29747E-06   -.47600E-05
   7  Prefactor     .10000E-03    2.0840        .18023E-06** at limit **
   8  Prefactor     8.7743        19.956       -.46686E-06   -.15083E-04
   9  norm          2.1430        .71236       -.21730E-06   -.25668E-02
  10  Prefactor     .10000E-03    2.5146        .11486E-05** at limit **
  11  norm          14.985        12.252        .19550E-06    .34572E-04
  12  Prefactor     2.0855        2.8840       -.24657E-06   -.19183E-03
  13  Prefactor     3.5470        9.4957        .49514E-06    .55537E-03
  14  Prefactor     2.6530        3.2115        .14062E-06    .87419E-04
  15  Prefactor     .10036E-03    249.77       -.81666E-05** at limit **
  16  norm          .10000E-03    28.339       -.50141E-07** at limit **
  17  Prefactor     .10000E-03    11.875        .29687E-06** at limit **
  18  Prefactor     1.7654        5.5731       -.21113E-06    .14830E-02
  19  Prefactor     .10000E-03    15.455       -.52130E-07** at limit **
  20  Prefactor     .10000E-03    5.9158       -.43725E-07** at limit **
  21  norm          .29216        17.766       -.89112E-06    .59761E-04
  22  Prefactor     2.0138        6.0034       -.14403E-06    .12304E-02
  23  Prefactor     .10000E-03    4.8397        .74649E-07** at limit **
  24  Prefactor     .10000E-03    190.39       -.21837E-05** at limit **
  25  norm          16.683        6.1318        .88327E-07   -.30248E-04
  26  Prefactor     10.491        8.6107        .62495E-06    .38258E-04
  27  norm          21.286        15.310       -.20768E-05   -.45492E-03
  28  Prefactor     .10000E-03    17.015       -.17932E-06** at limit **
  29  Prefactor     8.6969        6.5118       -.14294E-06   -.25928E-03
  30  Prefactor     .10000E-03    3.1573       -.60836E-07** at limit **
  31  Prefactor     30.101        43.599        .33402E-06   -.21579E-04
  32  Normalizat    .79782        .22620       -.45404E-05   -.23914E-03
  33  Prefactor     .93325        .26456        .34990E-05   -.27783E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.50772
  Prefactor  = 4.53648
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.611462
  Prefactor  = 15.491
  Prefactor  = 0.000100001
  Prefactor  = 8.77426
  norm       = 2.14305
  Prefactor  = 0.000100004
  norm       = 14.9849
  Prefactor  = 2.08545
  Prefactor  = 3.54702
  Prefactor  = 2.65301
  Prefactor  = 0.000100357
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.76541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.292158
  Prefactor  = 2.01377
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 16.6834
  Prefactor  = 10.4908
  norm       = 21.2864
  Prefactor  = 0.0001
  Prefactor  = 8.69693
  Prefactor  = 0.0001
  Prefactor  = 30.1005
  Normalizat = 0.797819
  Prefactor  = 0.933246
 **********
 **   18 **HESSE 
 **********

 FCN=   3765.884     FROM HESSE     STATUS=OK           711 CALLS     6077 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5077        6.8659        .13743E-03   -1.5125    
   2  Prefactor     4.5365        3.3049        .89091E-04   -1.5282    
   3  Prefactor     .10000E-03    9.1164        .18096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    57.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .61146        2.0387        .16526E-02   -1.5552    
   6  Prefactor     15.491        37.866        .10180E-03   -1.4921    
   7  Prefactor     .10000E-03    7.6559        .16506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.7743        19.830        .13536E-03   -1.5115    
   9  norm          2.1430        .71888        .28329E-04   -1.5415    
  10  Prefactor     .10000E-03    11.354        .16017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.985        12.247        .51736E-03   -1.4934    
  12  Prefactor     2.0855        2.8049        .11140E-03   -1.5419    
  13  Prefactor     3.5470        9.8303        .10717E-02   -1.5331    
  14  Prefactor     2.6530        3.2116        .11603E-03   -1.5382    
  15  Prefactor     .10036E-03    24.106        .76872E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    28.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.7654        7.6977        .15052E-02   -1.5442    
  19  Prefactor     .10000E-03    15.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.9270        .14574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .29216        181.37        .40506E-02   -1.5600    
  22  Prefactor     2.0138        6.2467        .12465E-02   -1.5424    
  23  Prefactor     .10000E-03    23.290        .22064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    190.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          16.683        6.1353        .88204E-04   -1.4891    
  26  Prefactor     10.491        7.5354        .61836E-03   -1.5060    
  27  norm          21.286        15.479        .86796E-04   -1.4785    
  28  Prefactor     .10000E-03    17.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.6969        6.5218        .12774E-03   -1.5118    
  30  Prefactor     .10000E-03    3.1738        .10646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     30.101        43.613        .73032E-04   -1.4610    
  32  Normalizat    .79782        .25931        .24335E-03   -1.0015    
  33  Prefactor     .93325        .29886        .27867E-03   -.94989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00897e-08
Minuit parameter uncertainties:
  1  6.86657
  2  3.30507
  3  1.84478e-06
  4  3.17191e-05
  5  2.03889
  6  37.925
  7  0.000183962
  8  19.8449
  9  0.718879
  10  0.000427703
  11  12.2485
  12  2.8051
  13  9.83474
  14  3.21179
  15  0.00586913
  16  1.70416e-05
  17  9.10896e-06
  18  7.3742
  19  3.35478e-06
  20  5.11298e-06
  21  14.6006
  22  6.24871
  23  6.44091e-05
  24  0.000921483
  25  6.13558
  26  7.53613
  27  15.482
  28  2.34348e-05
  29  6.52231
  30  7.36129e-06
  31  43.6593
  32  0.259712
  33  0.299388
Done.

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

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  9.109e-06  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  2.604e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  8.018e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  9.332e-01  2.994e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  7.978e-01  2.597e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.910 42.117
Photon Flux Upper Limit: 7.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/454275/likelihoodResults_538963201_539222401_4FGL_J0943.6+4207_daily_bin1156.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) = 3765.88405145
delta logL = -0.000400059537242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3765.88365126
delta logL = 1.27181465359e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5765       1.0000          .0000       10.000    
     3 'Normalizat'    .79781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93326       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+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=   3765.884     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10351E-03    13.392        .18142E-01** at limit **
   2  Index         2.4820        5.6941        .50000        .15827E-04
   3  Normalizat    .79782        .48752E-02    .24335E-03    .11072E-04
   4  Prefactor     .93325        .60321E-02    .27867E-03    .21255E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103514
  Index      = 2.48199
  Normalizat = 0.797817
  Prefactor  = 0.933249
 **********
 **   18 **HESSE 
 **********

 FCN=   3765.884     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10351E-03    111.35        .21987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4820        8.4292        .50000       -.52776    
   3  Normalizat    .79782        .14159E-01    .97340E-05   -1.0015    
   4  Prefactor     .93325        .17519E-01    .11147E-04   -.94989    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.59585e-09
Minuit parameter uncertainties:
  1  0.0396343
  2  395.811
  3  0.0141592
  4  0.0175191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/454275': 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) = 3765.88365102
delta logL = 3.7484915083e-07

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.035e-04  3.963e-02  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  2.482e+00  3.958e+02  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  8.018e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  9.332e-01  1.752e-02  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  7.978e-01  1.416e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 145.910 42.117

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/454275/cmap_HighResolution_538963201_539222401_4FGL_J0943.6+4207_daily_bin1156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-03', job_status='DONE', photon_flux_upper_limit='7.44e-08', time_completed='2021-08-31 23:45:09.699901', job_id='454275', GAL2='0.93', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630478709.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1156' AND source_name='4FGL J0943.6+4207' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:45:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 454275: <4FGL_J0943.6+4207_daily_bin1156> in cluster <slac> Done

Job <4FGL_J0943.6+4207_daily_bin1156> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 23:30:41 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 23:30:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 23:30:43 2021
Terminated at Tue Aug 31 23:45:12 2021
Results reported at Tue Aug 31 23:45:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.6+4207_daily_bin1156 145.91 42.1169 538963201 539222401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0943.6+4207 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   841.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            871 sec.

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

