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


Performing analysis on: 4FGL_J0943.6+4207_daily_bin651
RA = 145.91, Dec = 42.1169
tmin = 408067201, tmax = 408326401
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='452690', job_status='RUN', time_executed='2021-08-31 23:28:22.593221', time_epoch_executed='1630477702.59' WHERE source_name='4FGL J0943.6+4207' and cadence='daily' and bin_id='651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452690

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452690/ft1_4FGL_J0943.6+4207_daily_bin651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452690/ft2_4FGL_J0943.6+4207_daily_bin651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452690/ft1_4FGL_J0943.6+4207_daily_bin651.fits outfile=/scratch/kocevski/452690/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin651.fits ra=145.91 dec=42.1169 rad=12.0 tmin=408067201.0 tmax=408326401.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.81
user 3.62
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452690/ft1_filtered_4FGL_J0943.6+4207_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/452690/ft2_4FGL_J0943.6+4207_daily_bin651.fits sctable="SC_DATA" expcube=/scratch/kocevski/452690/ltcube_408067201_408326401_4FGL_J0943.6+4207_daily_bin651.fits outfile=/scratch/kocevski/452690/expmap_408067201_408326401_4FGL_J0943.6+4207_daily_bin651.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/452690/ltcube_408067201_408326401_4FGL_J0943.6+4207_daily_bin651.fits
.....................!
real 190.05
user 185.04
sys 4.69

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/452690/ft1_filtered_4FGL_J0943.6+4207_daily_bin651.fits scfile=/scratch/kocevski/452690/ft2_4FGL_J0943.6+4207_daily_bin651.fits outfile=/scratch/kocevski/452690/cmap_408067201_408326401_4FGL_J0943.6+4207_daily_bin651.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452690/ft1_filtered_4FGL_J0943.6+4207_daily_bin651.fits scfile=/scratch/kocevski/452690/ft2_4FGL_J0943.6+4207_daily_bin651.fits outfile=/scratch/kocevski/452690/cmap_HighResolution_408067201_408326401_4FGL_J0943.6+4207_daily_bin651.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.62
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0040       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .83421E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8972       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1636       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9097       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6377       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .50036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4376       1.0000         .10000E-03   10000.    
     9 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .82903E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .28569E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3254       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6322       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6534       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5018       1.0000         .10000E-03   10000.    
    16 'norm      '    .83524E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18691E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7319       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .58665E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .65865E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .56344       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    71.801       1.0000         .10000E-03   10000.    
    25 'norm      '    .55227E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .50338E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .11246E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .14977E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .82714E-02   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .49527       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .92542       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=   509.0126     FROM MIGRAD    STATUS=CONVERGED    253 CALLS      474 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0040        1.0035         .0000         .0000    
   2  Prefactor     .10000E-03    .22240        .29319E-05** at limit **
   3  Prefactor     1.8972        1.0398         .0000         .0000    
   4  Prefactor     4.1636        1.0074         .0000         .0000    
   5  Prefactor     8.9341        1.0030       -.10352E-06    .25027E-04
   6  Prefactor     .10000E-03    .17042        .13200E-04** at limit **
   7  Prefactor     .10000E-03    .27976       -.11395E-04** at limit **
   8  Prefactor     .10012E-03    .57097E-01    .34913E-04** at limit **
   9  norm          .10000E-03    .20571       -.37733E-07** at limit **
  10  Prefactor     .10000E-03    .27250       -.30259E-05** at limit **
  11  norm          .10000E-03    .20999        .24478E-04** at limit **
  12  Prefactor     2.7225        1.1093       -.23501E-04    .95657E-04
  13  Prefactor     5.6322        1.0040         .0000         .0000    
  14  Prefactor     1.6534        1.0551         .0000         .0000    
  15  Prefactor     .10000E-03    .72937E-01   -.26541E-04** at limit **
  16  norm          .10000E-03    .22242       -.10990E-04** at limit **
  17  Prefactor     .10000E-03    .20776        .44064E-05** at limit **
  18  Prefactor     1.7319        1.0493         .0000         .0000    
  19  Prefactor     .10000E-03    .21679       -.21038E-04** at limit **
  20  Prefactor     .10000E-03    .20571        .16395E-05** at limit **
  21  norm          .10000E-03    .21842        .15755E-04** at limit **
  22  Prefactor     .10234E-03    .33218        .24955E-03** at limit **
  23  Prefactor     .10000E-03    .20571       -.79825E-06** at limit **
  24  Prefactor     70.700        .99238        .19935E-04   -.41936E-03
  25  norm          .10000E-03    .21602        .35203E-04** at limit **
  26  Prefactor     .10000E-03    .27968        .14249E-04** at limit **
  27  norm          .10000E-03    .26737        .12893E-05** at limit **
  28  Prefactor     .10000E-03    .20571        .14107E-04** at limit **
  29  Prefactor     .10000E-03    .20571       -.75160E-07** at limit **
  30  Prefactor     .10000E-03    .20571        .71026E-07** at limit **
  31  Prefactor     .10000E-03    .21204       -.14758E-04** at limit **
  32  Normalizat    .49867        .82891       -.22956E-04    .35255E-04
  33  Prefactor     .92398        1.2682       -.12154E-04    .43516E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.00399
  Prefactor  = 0.0001
  Prefactor  = 1.89722
  Prefactor  = 4.1636
  Prefactor  = 8.93408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100124
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.72245
  Prefactor  = 5.63222
  Prefactor  = 1.65345
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.73194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000102335
  Prefactor  = 0.0001
  Prefactor  = 70.6998
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.498674
  Prefactor  = 0.923975
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   509.0126     FROM HESSE     STATUS=FAILED        11 CALLS      485 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          521.94        515.89         .0000       -1.5218    
   2  Prefactor     .10000E-03    .22240        .29319E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8972        1.0398         .0000       -1.5432    
   4  Prefactor     4.1636        1.0074         .0000       -1.5300    
   5  Prefactor     8.9341        1.0030       -.10352E-06   -1.5110    
   6  Prefactor     .10000E-03    .17042        .13200E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .27976       -.11395E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10012E-03    .57097E-01    .34913E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .20571       -.37733E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .27250       -.30259E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .20999        .24478E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7225        1.1093       -.23501E-04   -1.5378    
  13  Prefactor     5.6322        1.0040         .0000       -1.5233    
  14  Prefactor     1.6534        1.0551         .0000       -1.5451    
  15  Prefactor     .10000E-03    .72937E-01   -.26541E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .22242       -.10990E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .20776        .44064E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.7319        1.0493         .0000       -1.5445    
  19  Prefactor     .10000E-03    .21679       -.21038E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .20571        .16395E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .21842        .15755E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10234E-03    .33218        .24955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .20571       -.79825E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     70.700        .99238        .19935E-04   -1.4024    
  25  norm          .10000E-03    .21602        .35203E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .27968        .14249E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .26737        .12893E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    .20571        .14107E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    .20571       -.75160E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    .20571        .71026E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    .21204       -.14758E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .49867        .82891       -.22956E-04   -1.1248    
  33  Prefactor     .92398        1.2682       -.12154E-04   -.95308    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.03344e-10
Minuit parameter uncertainties:
  1  1.00351
  2  1.51862e-06
  3  1.0398
  4  1.0074
  5  1.00295
  6  5.2542e-06
  7  5.97452e-06
  8  0.000168335
  9  9.95888e-08
  10  1.17492e-06
  11  1.51084e-05
  12  1.10929
  13  1.00399
  14  1.05516
  15  2.19973e-05
  16  5.02545e-06
  17  1.77819e-06
  18  1.0493
  19  7.99045e-06
  20  5.87538e-07
  21  4.78511e-06
  22  0.00176144
  23  3.71475e-07
  24  0.992383
  25  1.53503e-05
  26  8.37513e-06
  27  6.46249e-07
  28  6.03283e-06
  29  1.16751e-08
  30  2.90506e-09
  31  6.24041e-06
  32  0.850845
  33  1.31264
Done.

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

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.778e-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.240e-01  1.313e+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:  4.987e-01  8.508e-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: 4.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.59e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452690/likelihoodResults_408067201_408326401_4FGL_J0943.6+4207_daily_bin651.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) = 509.012646612
delta logL = -8.16254272991e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 509.012566054
delta logL = -1.06813098455e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3754       1.0000          .0000       10.000    
     3 'Normalizat'    .49865       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92388       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=   509.0126     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      290 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    638.67        .11702E-01** at limit **
   2  Index         1.8322        7.7651        .50000       -.99817E-08
   3  Normalizat    .49867        .30493E-01    .24195E-03   -.97680E-04
   4  Prefactor     .92397        .35130E-01    .20733E-03   -.11367E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.83216
  Normalizat = 0.498672
  Prefactor  = 0.923973
 **********
 **   18 **HESSE 
 **********

 FCN=   509.0126     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      319 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6592.9        .19664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8322        6.1190        .50000       -.68616    
   3  Normalizat    .49867        .74705E-01    .48389E-04   -1.1248    
   4  Prefactor     .92397        .86067E-01    .41467E-04   -.95308    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.43996e-10
Minuit parameter uncertainties:
  1  0.00115545
  2  4154.41
  3  0.0747196
  4  0.0860794
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452690': 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) = 509.01256474
delta logL = 2.46567026352e-07

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.155e-03  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  1.832e+00  4.154e+03  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.240e-01  8.608e-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:  4.987e-01  7.472e-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/452690/cmap_HighResolution_408067201_408326401_4FGL_J0943.6+4207_daily_bin651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.59e-02', job_status='DONE', photon_flux_upper_limit='4.59e-07', time_completed='2021-08-31 23:34:03.198315', job_id='452690', GAL2='0.92', fit_tolerance='1e-08', EG2='0.50', EG='0.50', time_epoch_completed='1630478043.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.92', dlogl='2.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='651' AND source_name='4FGL J0943.6+4207' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:34:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 452690: <4FGL_J0943.6+4207_daily_bin651> in cluster <slac> Done

Job <4FGL_J0943.6+4207_daily_bin651> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 23:25:37 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 23:25:38 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:25:38 2021
Terminated at Tue Aug 31 23:34:03 2021
Results reported at Tue Aug 31 23:34:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.6+4207_daily_bin651 145.91 42.1169 408067201 408326401 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 :                                   339.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   505 sec.
    Turnaround time :                            506 sec.

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

