/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 9 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.6+4207_daily_bin1282
RA = 145.91, Dec = 42.1169
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='456858', job_status='RUN', time_executed='2021-08-31 23:40:35.809382', time_epoch_executed='1630478435.81' WHERE source_name='4FGL J0943.6+4207' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456858

Creating custom pfile directory:
/scratch/kocevski/456858/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/456858/ft1_4FGL_J0943.6+4207_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/456858/ft2_4FGL_J0943.6+4207_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456858/ft1_4FGL_J0943.6+4207_daily_bin1282.fits outfile=/scratch/kocevski/456858/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin1282.fits ra=145.91 dec=42.1169 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.68
user 2.49
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/456858/ft2_4FGL_J0943.6+4207_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/456858/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin1282.fits evtable="EVENTS" outfile="/scratch/kocevski/456858/ft1_filtered_4FGL_J0943.6+4207_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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456858/ft1_filtered_4FGL_J0943.6+4207_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/456858/ft2_4FGL_J0943.6+4207_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/456858/ltcube_571622401_571881601_4FGL_J0943.6+4207_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/456858/ft2_4FGL_J0943.6+4207_daily_bin1282.fits
.....................!
real 13.71
user 12.27
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456858/ft1_filtered_4FGL_J0943.6+4207_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/456858/ft2_4FGL_J0943.6+4207_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/456858/ltcube_571622401_571881601_4FGL_J0943.6+4207_daily_bin1282.fits outfile=/scratch/kocevski/456858/expmap_571622401_571881601_4FGL_J0943.6+4207_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/456858/ltcube_571622401_571881601_4FGL_J0943.6+4207_daily_bin1282.fits
.....................!
real 190.16
user 185.68
sys 3.98

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/456858/ft1_filtered_4FGL_J0943.6+4207_daily_bin1282.fits scfile=/scratch/kocevski/456858/ft2_4FGL_J0943.6+4207_daily_bin1282.fits outfile=/scratch/kocevski/456858/cmap_571622401_571881601_4FGL_J0943.6+4207_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.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456858/ft1_filtered_4FGL_J0943.6+4207_daily_bin1282.fits scfile=/scratch/kocevski/456858/ft2_4FGL_J0943.6+4207_daily_bin1282.fits outfile=/scratch/kocevski/456858/cmap_HighResolution_571622401_571881601_4FGL_J0943.6+4207_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.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/456858/ft1_filtered_4FGL_J0943.6+4207_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/456858/ft2_4FGL_J0943.6+4207_daily_bin1282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/456858/Model_4FGL_J0943.6+4207_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/456858/ft1_filtered_4FGL_J0943.6+4207_daily_bin1282.fits.............!
real 14.83
user 13.43
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/456858/ft1_filtered_4FGL_J0943.6+4207_daily_bin1282.fits', '/scratch/kocevski/456858/ft2_4FGL_J0943.6+4207_daily_bin1282.fits', expMap='/scratch/kocevski/456858/expmap_571622401_571881601_4FGL_J0943.6+4207_daily_bin1282.fits', expCube='/scratch/kocevski/456858/ltcube_571622401_571881601_4FGL_J0943.6+4207_daily_bin1282.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/456858/Model_4FGL_J0943.6+4207_daily_bin1282.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/456858/ft1_filtered_4FGL_J0943.6+4207_daily_bin1282.fits
Spacecraft file(s): /scratch/kocevski/456858/ft2_4FGL_J0943.6+4207_daily_bin1282.fits
Exposure map: /scratch/kocevski/456858/expmap_571622401_571881601_4FGL_J0943.6+4207_daily_bin1282.fits
Exposure cube: /scratch/kocevski/456858/ltcube_571622401_571881601_4FGL_J0943.6+4207_daily_bin1282.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/456858/Model_4FGL_J0943.6+4207_daily_bin1282.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 181.720526541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 176.831876152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4108       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.7176       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6101       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4069       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9002       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9597       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4969       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2153       1.0000         .10000E-03   10000.    
     9 'norm      '    .63689       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3779.4       1.0000         .10000E-03   10000.    
    11 'norm      '    3.3766       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2023       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .40580E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .71909E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .22319E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2058.9       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10089E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    589.06       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15983E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    56.295       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12663E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13493E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .36289E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .10594E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    95.033       1.0000         .10000E-03   10000.    
    27 'norm      '    .86267E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .88531E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11501E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10759E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0487       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   175.8687     FROM MIGRAD    STATUS=CONVERGED    450 CALLS      774 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9979.6        7181.8        .39629E-02    .37291E-02
   2  Prefactor     9999.9        9707.4        .38704E-02    .10121E-02
   3  Prefactor     .10009E-03    6239.9        .63122E-02** at limit **
   4  Prefactor     .11927E-03    8938.8        .65975E-02** at limit **
   5  Prefactor     1.9002        1.0396         .0000         .0000    
   6  Prefactor     5.9597        1.0036         .0000         .0000    
   7  Prefactor     8202.3        33.613        .18687E-02    .48804E-02
   8  Prefactor     7.2153        1.0024         .0000         .0000    
   9  norm          .10000E-03    .34913       -.13878E-05** at limit **
  10  Prefactor     3813.7        1.0018        .37148E-05   -.27506E-02
  11  norm          3.3766        1.0114         .0000         .0000    
  12  Prefactor    10000.0        .12009       -.16571E-03   -.16340E-03
  13  Prefactor     .10000E-03    .21270       -.17708E-06** at limit **
  14  Prefactor     .10000E-03    .20571       -.83575E-06** at limit **
  15  Prefactor     .10000E-03    .21753       -.27662E-05** at limit **
  16  norm          .10000E-03    .20858        .31554E-05** at limit **
  17  Prefactor     50.416        .17516       -.17270E-03    .48111E-01
  18  Prefactor     .10000E-03    .26927       -.68671E-07** at limit **
  19  Prefactor     3163.8        1.9752       -.22345E-05    .64243E-02
  20  Prefactor     .10000E-03    .20715        .15421E-05** at limit **
  21  norm          50.705        .94935        .15252E-04   -.29451E-04
  22  Prefactor     .10000E-03    .20571       -.21888E-06** at limit **
  23  Prefactor     .10000E-03    .20571       -.30208E-05** at limit **
  24  Prefactor     .10000E-03    .21173       -.12312E-05** at limit **
  25  norm          .10000E-03    .20571       -.68530E-07** at limit **
  26  Prefactor     99.493        1.0230        .11069E-05   -.19216E-04
  27  norm          .10000E-03    .22304       -.27565E-06** at limit **
  28  Prefactor     .10000E-03    .20927       -.97346E-06** at limit **
  29  Prefactor     .10000E-03    .20571       -.97382E-07** at limit **
  30  Prefactor     .10000E-03    .20571       -.55678E-06** at limit **
  31  Prefactor     .10000E-03    .20571        .80979E-07** at limit **
  32  Normalizat    .10000E-01    .25505        .40660E-07** at limit **
  33  Prefactor     .93795        1.1349        .93351E-06   -.12499E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9979.65
  Prefactor  = 9999.87
  Prefactor  = 0.000100094
  Prefactor  = 0.000119274
  Prefactor  = 1.9002
  Prefactor  = 5.95967
  Prefactor  = 8202.33
  Prefactor  = 7.21531
  norm       = 0.0001
  Prefactor  = 3813.71
  norm       = 3.37659
  Prefactor  = 9999.98
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 50.4157
  Prefactor  = 0.0001
  Prefactor  = 3163.8
  Prefactor  = 0.0001
  norm       = 50.7046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 99.4933
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.937949
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   175.8687     FROM HESSE     STATUS=FAILED        17 CALLS      791 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9979.6        7181.8        .39629E-02    1.6611    
   2  Prefactor     9999.9        9707.4        .38704E-02    1.5780    
   3  Prefactor     .10009E-03    6239.9        .63122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11927E-03    8938.8        .65975E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     570.65        568.61         .0000       -1.5432    
   6  Prefactor     5.9597        1.0036         .0000       -1.5220    
   7  Prefactor     8202.3        33.613        .18687E-02    2.4465    
   8  Prefactor     7.2153        1.0024         .0000       -1.5171    
   9  norm          .10000E-03    .34913       -.13878E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3813.7        1.0018        .37148E-05   -.23954    
  11  norm          3.3766        1.0114         .0000       -1.5340    
  12  Prefactor    10000.0        .12009       -.16571E-03    1.5682    
  13  Prefactor     .10000E-03    .21270       -.17708E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .20571       -.83575E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .21753       -.27662E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .20858        .31554E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     50.416        .17516       -.17270E-03   -1.4287    
  18  Prefactor     .10000E-03    .26927       -.68671E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3163.8        1.9752       -.22345E-05   -.37604    
  20  Prefactor     .10000E-03    .20715        .15421E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          50.705        .94935        .15252E-04   -1.4283    
  22  Prefactor     .10000E-03    .20571       -.21888E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .20571       -.30208E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .21173       -.12312E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .20571       -.68530E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     99.493        1.0230        .11069E-05   -1.3710    
  27  norm          .10000E-03    .22304       -.27565E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    .20927       -.97346E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    .20571       -.97382E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    .20571       -.55678E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    .20571        .80979E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .25505        .40660E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .93795        1.1349        .93351E-06   -.94827    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.4194e-09
Minuit parameter uncertainties:
  1  2220.2
  2  95.2632
  3  0.0318955
  4  0.958887
  5  1.03966
  6  1.00356
  7  33.6133
  8  1.00242
  9  3.33704e-06
  10  1.00175
  11  1.01141
  12  0.0907095
  13  4.69961e-08
  14  6.52413e-06
  15  4.30152e-06
  16  1.64154e-05
  17  0.175156
  18  1.20132e-05
  19  1.97522
  20  1.95068e-06
  21  0.949353
  22  6.28778e-07
  23  2.69895e-06
  24  2.02092e-06
  25  1.13854e-06
  26  1.02298
  27  1.7167e-06
  28  5.88146e-06
  29  6.62583e-06
  30  1.62844e-06
  31  2.95506e-07
  32  3.377e-09
  33  1.16569
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 175.868662839

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  5.042e+01  1.752e-01  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.379e-01  1.166e+00  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:  1.000e-02  3.377e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.01
Ra Dec: 145.910 42.117
Photon Flux Upper Limit: 1.04e-05 ph cm-2 s-1
Energy Flux Upper Limit: 8.16e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/456858/likelihoodResults_571622401_571881601_4FGL_J0943.6+4207_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): 0
logL (Free Index) = 175.868627308
delta logL = 3.55315349054e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 175.844072687
delta logL = 0.0245901522237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.399       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2202       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93001       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=   175.8441     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      227 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.904        1504.2        .28245E-03    .67852E-04
   2  Index         4.2247        7.0710        .61351E-02    .51847E-04
   3  Normalizat    .10000E-01    .21318        .18892E-02** at limit **
   4  Prefactor     .92996        .48534        .21690E-03   -.32192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.9043
  Index      = 4.22466
  Normalizat = 0.01
  Prefactor  = 0.929955
 **********
 **   18 **HESSE 
 **********

 FCN=   175.8441     FROM HESSE     STATUS=OK            23 CALLS      250 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.904        1016.5        .56490E-04   -1.4294    
   2  Index         4.2247        6.9049        .24540E-03   -.15570    
   3  Normalizat    .10000E-01    .21318        .37783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .92996        .48530        .43380E-04   -.95102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98962e-09
Minuit parameter uncertainties:
  1  459.687
  2  4.96338
  3  5.25435e-07
  4  0.487586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456858': 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) = 175.844072091
delta logL = 0.0245907483607

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  4.990e+01  4.597e+02  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  4.225e+00  4.963e+00  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.300e-01  4.876e-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:  1.000e-02  5.254e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.01
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/456858/cmap_HighResolution_571622401_571881601_4FGL_J0943.6+4207_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.16e-01', job_status='DONE', photon_flux_upper_limit='1.04e-05', time_completed='2021-08-31 23:46:09.637181', job_id='456858', GAL2='0.93', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630478769.64', return_code2='0', ts='-0.01', comment='SUCCESS', return_code='101', GAL='0.94', dlogl='2.46e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1282' AND source_name='4FGL J0943.6+4207' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:46:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 456858: <4FGL_J0943.6+4207_daily_bin1282> in cluster <slac> Done

Job <4FGL_J0943.6+4207_daily_bin1282> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Aug 31 23:40:17 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 23:40:18 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:40:18 2021
Terminated at Tue Aug 31 23:46:10 2021
Results reported at Tue Aug 31 23:46:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.6+4207_daily_bin1282 145.91 42.1169 571622401 571881601 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 :                                   329.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             497.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   363 sec.
    Turnaround time :                            353 sec.

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

