/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 30 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0943.6+4207_daily_bin432
RA = 145.91, Dec = 42.1169
tmin = 351302401, tmax = 351561601
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='449884', job_status='RUN', time_executed='2021-08-31 23:18:14.432359', time_epoch_executed='1630477094.43' WHERE source_name='4FGL J0943.6+4207' and cadence='daily' and bin_id='432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449884

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449884/ft1_4FGL_J0943.6+4207_daily_bin432.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449884/ft2_4FGL_J0943.6+4207_daily_bin432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449884/ft1_4FGL_J0943.6+4207_daily_bin432.fits outfile=/scratch/kocevski/449884/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin432.fits ra=145.91 dec=42.1169 rad=12.0 tmin=351302401.0 tmax=351561601.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.42
user 3.23
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/449884/ft2_4FGL_J0943.6+4207_daily_bin432.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/449884/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin432.fits evtable="EVENTS" outfile="/scratch/kocevski/449884/ft1_filtered_4FGL_J0943.6+4207_daily_bin432.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.52
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449884/ft1_filtered_4FGL_J0943.6+4207_daily_bin432.fits" evtable="EVENTS" scfile=/scratch/kocevski/449884/ft2_4FGL_J0943.6+4207_daily_bin432.fits sctable="SC_DATA" outfile=/scratch/kocevski/449884/ltcube_351302401_351561601_4FGL_J0943.6+4207_daily_bin432.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/449884/ft2_4FGL_J0943.6+4207_daily_bin432.fits
.....................!
real 12.72
user 12.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449884/ft1_filtered_4FGL_J0943.6+4207_daily_bin432.fits evtable="EVENTS" scfile=/scratch/kocevski/449884/ft2_4FGL_J0943.6+4207_daily_bin432.fits sctable="SC_DATA" expcube=/scratch/kocevski/449884/ltcube_351302401_351561601_4FGL_J0943.6+4207_daily_bin432.fits outfile=/scratch/kocevski/449884/expmap_351302401_351561601_4FGL_J0943.6+4207_daily_bin432.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/449884/ltcube_351302401_351561601_4FGL_J0943.6+4207_daily_bin432.fits
.....................!
real 189.72
user 185.52
sys 3.75

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/449884/ft1_filtered_4FGL_J0943.6+4207_daily_bin432.fits scfile=/scratch/kocevski/449884/ft2_4FGL_J0943.6+4207_daily_bin432.fits outfile=/scratch/kocevski/449884/cmap_351302401_351561601_4FGL_J0943.6+4207_daily_bin432.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449884/ft1_filtered_4FGL_J0943.6+4207_daily_bin432.fits scfile=/scratch/kocevski/449884/ft2_4FGL_J0943.6+4207_daily_bin432.fits outfile=/scratch/kocevski/449884/cmap_HighResolution_351302401_351561601_4FGL_J0943.6+4207_daily_bin432.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.54
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/449884/ft1_filtered_4FGL_J0943.6+4207_daily_bin432.fits', '/scratch/kocevski/449884/ft2_4FGL_J0943.6+4207_daily_bin432.fits', expMap='/scratch/kocevski/449884/expmap_351302401_351561601_4FGL_J0943.6+4207_daily_bin432.fits', expCube='/scratch/kocevski/449884/ltcube_351302401_351561601_4FGL_J0943.6+4207_daily_bin432.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/449884/Model_4FGL_J0943.6+4207_daily_bin432.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/449884/ft1_filtered_4FGL_J0943.6+4207_daily_bin432.fits
Spacecraft file(s): /scratch/kocevski/449884/ft2_4FGL_J0943.6+4207_daily_bin432.fits
Exposure map: /scratch/kocevski/449884/expmap_351302401_351561601_4FGL_J0943.6+4207_daily_bin432.fits
Exposure cube: /scratch/kocevski/449884/ltcube_351302401_351561601_4FGL_J0943.6+4207_daily_bin432.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/449884/Model_4FGL_J0943.6+4207_daily_bin432.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) = 4619.21870475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5861       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16297E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.486       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5491       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6068       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9491       1.0000         .10000E-03   10000.    
     9 'norm      '    .50277       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11279E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2014       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    64.208       1.0000         .10000E-03   10000.    
    16 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0106       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17771E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11588E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.6222       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6503       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.638       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    61.278       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.3234       1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.4448       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1774       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .44794       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=   4619.129     FROM MIGRAD    STATUS=CONVERGED    918 CALLS     4048 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5857        4.3289        .23118E-06    .18846E-04
   2  Prefactor     .10003E-03    1.2206        .45248E-06** at limit **
   3  Prefactor     17.486        23.110        .62341E-07   -.68502E-07
   4  Prefactor     .10000E-03    22.474        .80102E-06** at limit **
   5  Prefactor     1.5493        4.1659        .10818E-05    .22815E-03
   6  Prefactor     5.5546        105.89        .38019E-05   -.63131E-04
   7  Prefactor     .10000E-03    2.2310       -.41972E-06** at limit **
   8  Prefactor     2.9730        37.468       -.67961E-05   -.21244E-03
   9  norm          .50220        .49270        .76606E-07    .92361E-03
  10  Prefactor     .10000E-03    2.0007       -.11681E-06** at limit **
  11  norm          .10000E-03    2.8787        .14462E-06** at limit **
  12  Prefactor     3.2000        2.5967        .25103E-06    .28651E-03
  13  Prefactor     .10000E-03    3.5715        .11122E-06** at limit **
  14  Prefactor     .10000E-03    3.2209        .52049E-06** at limit **
  15  Prefactor     64.204        25.154        .11219E-06    .55425E-04
  16  norm          .10000E-03    12.930       -.13353E-05** at limit **
  17  Prefactor     9.0344        28.627       -.21610E-05   -.81284E-04
  18  Prefactor     .10000E-03    2.4683        .90043E-07** at limit **
  19  Prefactor     .10000E-03    262.44       -.61310E-05** at limit **
  20  Prefactor     .10029E-03    12.485        .36523E-05** at limit **
  21  norm          .10000E-03    5.8292       -.44981E-07** at limit **
  22  Prefactor     4.6217        4.7454        .95312E-07    .76403E-04
  23  Prefactor     1.6505        2.6657        .20743E-06    .71815E-04
  24  Prefactor     .10000E-03    25.683       -.13867E-05** at limit **
  25  norm          11.638        3.9556       -.10468E-06   -.33577E-03
  26  Prefactor     .10000E-03    1.2846       -.27560E-07** at limit **
  27  norm          .10000E-03    2.8366       -.43230E-07** at limit **
  28  Prefactor     61.260        51.455       -.19847E-05   -.15661E-03
  29  Prefactor     3.3236        4.1055       -.14630E-06   -.21645E-03
  30  Prefactor     7.4524        8.4754        .78200E-06    .67847E-04
  31  Prefactor     .10000E-03    9.2529       -.76943E-07** at limit **
  32  Normalizat    1.1775        .18450        .18006E-05   -.36436E-03
  33  Prefactor     .44784        .20979       -.37306E-05   -.21541E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.58567
  Prefactor  = 0.000100026
  Prefactor  = 17.4858
  Prefactor  = 0.0001
  Prefactor  = 1.54932
  Prefactor  = 5.55458
  Prefactor  = 0.0001
  Prefactor  = 2.97296
  norm       = 0.502195
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.20005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.2037
  norm       = 0.0001
  Prefactor  = 9.0344
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100289
  norm       = 0.0001
  Prefactor  = 4.62174
  Prefactor  = 1.65051
  Prefactor  = 0.000100001
  norm       = 11.6377
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 61.26
  Prefactor  = 3.32359
  Prefactor  = 7.45242
  Prefactor  = 0.0001
  Normalizat = 1.17749
  Prefactor  = 0.447843
 **********
 **   18 **HESSE 
 **********

 FCN=   4619.129     FROM HESSE     STATUS=OK           703 CALLS     4751 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5857        4.3062        .17713E-03   -1.5386    
   2  Prefactor     .10003E-03    13.238        .13814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.486        23.089        .95779E-04   -1.4871    
   4  Prefactor     .10000E-03    22.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5493        4.1754        .21403E-03   -1.5459    
   6  Prefactor     5.5546        102.55        .16966E-03   -1.5237    
   7  Prefactor     .10000E-03    2.2684        .19692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9730        36.326        .23649E-03   -1.5363    
   9  norm          .50220        .42165        .39462E-03   -1.5566    
  10  Prefactor     .10000E-03    5.5332        .15823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.8902        .11263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2000        2.5845        .91218E-04   -1.5350    
  13  Prefactor     .10000E-03    3.5741        .12540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.7896        .23164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     64.204        24.996        .50082E-04   -1.4104    
  16  norm          .10000E-03    12.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.0344        28.500        .13352E-03   -1.5107    
  18  Prefactor     .10000E-03    2.4722        .10422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    268.23        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10029E-03    39.794        .34533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.8438        .16025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.6217        4.7414        .14409E-03   -1.5278    
  23  Prefactor     1.6505        2.6426        .13548E-03   -1.5451    
  24  Prefactor     .10000E-03    25.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.638        3.9558        .76304E-04   -1.5026    
  26  Prefactor     .10000E-03    1.2874        .75109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.8412        .11178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     61.260        52.186        .51257E-04   -1.4141    
  29  Prefactor     3.3236        4.1023        .14636E-03   -1.5343    
  30  Prefactor     7.4524        8.5866        .14699E-03   -1.5162    
  31  Prefactor     .10000E-03    9.2545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1775        .20250        .18784E-03   -.87301    
  33  Prefactor     .44784        .22754        .34640E-03   -1.1443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.83034e-09
Minuit parameter uncertainties:
  1  4.30671
  2  0.00116643
  3  23.101
  4  0.000164647
  5  4.17616
  6  47.828
  7  1.24073e-05
  8  20.7995
  9  0.42165
  10  5.94854e-05
  11  1.7448e-05
  12  2.58464
  13  5.6117e-06
  14  0.000117916
  15  24.9998
  16  0.000150107
  17  28.5431
  18  2.90513e-06
  19  0.00200703
  20  0.0067854
  21  6.98547e-06
  22  4.74181
  23  2.64282
  24  0.000306915
  25  3.95585
  26  3.09133e-06
  27  1.52739e-06
  28  52.2253
  29  4.10267
  30  8.58797
  31  6.62052e-06
  32  0.202636
  33  0.228003
Done.

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

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  9.034e+00  2.854e+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:  4.478e-01  2.280e-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.177e+00  2.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 145.910 42.117
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449884/likelihoodResults_351302401_351561601_4FGL_J0943.6+4207_daily_bin432.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) = 4618.26327043
delta logL = 0.865971533338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4618.22960057
delta logL = 0.899641389623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6626       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6965       1.0000          .0000       10.000    
     3 'Normalizat'    1.0896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51595       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.

 FCN=   4618.230     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      260 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6519        22.112        .81784E-02    .49560E-03
   2  Index         4.6999        3.0580        .12101        .10974E-03
   3  Normalizat    1.0897        .45908E-01    .38438E-01   -.24805E-05
   4  Prefactor     .51593        .54374E-01    .73235E-01    .23937E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.65192
  Index      = 4.69993
  Normalizat = 1.08969
  Prefactor  = 0.515928
 **********
 **   18 **HESSE 
 **********

 FCN=   4618.230     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      293 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6519        46.442        .63700E-04   -1.5451    
   2  Index         4.6999        7.1954        .44627E-02   -.60050E-01
   3  Normalizat    1.0897        .17624        .19397E-03   -.90083    
   4  Prefactor     .51593        .20306        .32427E-03   -1.1125    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.74093e-07
Minuit parameter uncertainties:
  1  17.5324
  2  5.77563
  3  0.176332
  4  0.203347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449884': 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) = 4618.22959887
delta logL = 0.899643091785

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.652e+00  1.753e+01  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  4.700e+00  5.776e+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:  5.159e-01  2.033e-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.090e+00  1.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 145.910 42.117
Photon Index (Free Index): 4.70 +/- 5.78
Photon Flux (Free Index): 7.96e-08 +/- 6.26e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.14e-05

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/449884/cmap_HighResolution_351302401_351561601_4FGL_J0943.6+4207_daily_bin432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.29e-03', comment='SUCCESS', energy_flux2='1.09e-05', dlogl='9.00e-01', photon_flux2='7.96e-08', job_status='DONE', time_completed='2021-08-31 23:32:50.351513', photon_index_error2='5.78', photon_index2='4.70', ts='0.12', fit_tolerance='1e-08', GAL='0.45', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.14e-05', EG='1.18', time_epoch_completed='1630477970.35', return_code='0', job_id='449884', GAL2='0.52', EG2='1.09', return_code2='102', photon_flux_error2='6.26e-08', ts2='2.10', photon_index='2.60' WHERE bin_id='432' AND source_name='4FGL J0943.6+4207' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:32:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 449884: <4FGL_J0943.6+4207_daily_bin432> in cluster <slac> Done

Job <4FGL_J0943.6+4207_daily_bin432> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 23:17:11 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 23:17:12 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:17:12 2021
Terminated at Tue Aug 31 23:32:51 2021
Results reported at Tue Aug 31 23:32:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.6+4207_daily_bin432 145.91 42.1169 351302401 351561601 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 :                                   852.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             301.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

