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


Performing analysis on: 4FGL_J0943.6+4207_daily_bin662
RA = 145.91, Dec = 42.1169
tmin = 410918401, tmax = 411177601
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='452706', job_status='RUN', time_executed='2021-08-31 23:28:46.162300', time_epoch_executed='1630477726.16' WHERE source_name='4FGL J0943.6+4207' and cadence='daily' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452706

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452706/ft1_4FGL_J0943.6+4207_daily_bin662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452706/ft2_4FGL_J0943.6+4207_daily_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452706/ft1_4FGL_J0943.6+4207_daily_bin662.fits outfile=/scratch/kocevski/452706/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin662.fits ra=145.91 dec=42.1169 rad=12.0 tmin=410918401.0 tmax=411177601.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 6.96
user 6.65
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452706/ft1_filtered_4FGL_J0943.6+4207_daily_bin662.fits" evtable="EVENTS" scfile=/scratch/kocevski/452706/ft2_4FGL_J0943.6+4207_daily_bin662.fits sctable="SC_DATA" outfile=/scratch/kocevski/452706/ltcube_410918401_411177601_4FGL_J0943.6+4207_daily_bin662.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/452706/ft2_4FGL_J0943.6+4207_daily_bin662.fits
.....................!
real 12.47
user 12.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452706/ft1_filtered_4FGL_J0943.6+4207_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/452706/ft2_4FGL_J0943.6+4207_daily_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/452706/ltcube_410918401_411177601_4FGL_J0943.6+4207_daily_bin662.fits outfile=/scratch/kocevski/452706/expmap_410918401_411177601_4FGL_J0943.6+4207_daily_bin662.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/452706/ltcube_410918401_411177601_4FGL_J0943.6+4207_daily_bin662.fits
.....................!
real 191.34
user 187.00
sys 3.91

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/452706/ft1_filtered_4FGL_J0943.6+4207_daily_bin662.fits scfile=/scratch/kocevski/452706/ft2_4FGL_J0943.6+4207_daily_bin662.fits outfile=/scratch/kocevski/452706/cmap_410918401_411177601_4FGL_J0943.6+4207_daily_bin662.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452706/ft1_filtered_4FGL_J0943.6+4207_daily_bin662.fits scfile=/scratch/kocevski/452706/ft2_4FGL_J0943.6+4207_daily_bin662.fits outfile=/scratch/kocevski/452706/cmap_HighResolution_410918401_411177601_4FGL_J0943.6+4207_daily_bin662.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.868       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .63505E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.699       1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.447       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2727       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4641       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    18.299       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11942E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.071       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7955       1.0000         .10000E-03   10000.    
    21 'norm      '    7.4957       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.2706       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.872       1.0000         .10000E-03   10000.    
    25 'norm      '    15.416       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.5824       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.6275       1.0000         .10000E-03   10000.    
    31 'Prefactor '    30.160       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .72265       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .85840       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=   3225.422     FROM MIGRAD    STATUS=CONVERGED    899 CALLS     4605 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.868        9.2172        .54738E-06   -.30424E-04
   2  Prefactor     .10183E-03    1.4772       -.16609E-06** at limit **
   3  Prefactor     33.692        37.027       -.15619E-05   -.66295E-06
   4  Prefactor     38.440        61.445       -.57075E-05    .41617E-05
   5  Prefactor     .10000E-03    1.2690        .35769E-07** at limit **
   6  Prefactor     .10000E-03    19.941        .14439E-04** at limit **
   7  Prefactor     .10000E-03    .96281        .41715E-07** at limit **
   8  Prefactor     .10000E-03    6.8650        .14304E-05** at limit **
   9  norm          .10000E-03    .22476        .13081E-07** at limit **
  10  Prefactor     2.2729        2.3287        .34896E-06   -.36954E-03
  11  norm          .10000E-03    16.295       -.84422E-05** at limit **
  12  Prefactor     1.4640        2.1458        .32075E-06   -.23266E-03
  13  Prefactor     .10000E-03    4.0665        .81654E-06** at limit **
  14  Prefactor     .10000E-03    1.0965        .39782E-07** at limit **
  15  Prefactor     .10000E-03    17.426       -.37613E-05** at limit **
  16  norm          18.300        19.390        .56472E-06   -.18744E-03
  17  Prefactor     .10000E-03    70.857        .33633E-04** at limit **
  18  Prefactor     .10000E-03    3.6293       -.31337E-06** at limit **
  19  Prefactor     49.066        50.039       -.77931E-05   -.19507E-03
  20  Prefactor     2.7952        7.2709       -.28212E-06   -.25021E-03
  21  norm          7.4964        18.993        .29152E-06   -.78726E-04
  22  Prefactor     .10000E-03    3.0861        .42677E-07** at limit **
  23  Prefactor     2.2711        4.6359       -.77774E-06   -.44790E-03
  24  Prefactor     10.947        39.226        .94915E-04    .24675E-04
  25  norm          15.416        5.6811        .12432E-06    .50187E-03
  26  Prefactor     .10000E-03    2.4876        .20388E-07** at limit **
  27  norm          3.5762        10.461       -.13153E-04   -.39896E-03
  28  Prefactor     .10000E-03    13.777        .32364E-05** at limit **
  29  Prefactor     .10000E-03    4.0272       -.12115E-05** at limit **
  30  Prefactor     3.6275        3.8970        .27052E-06    .14085E-05
  31  Prefactor     30.174        32.634        .66298E-05    .94362E-06
  32  Normalizat    .72240        .20238       -.75955E-05    .18336E-03
  33  Prefactor     .85872        .22637        .31091E-05   -.17939E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.868
  Prefactor  = 0.000101835
  Prefactor  = 33.6918
  Prefactor  = 38.4399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.27294
  norm       = 0.000100002
  Prefactor  = 1.46398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.3002
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 49.0661
  Prefactor  = 2.79523
  norm       = 7.49636
  Prefactor  = 0.0001
  Prefactor  = 2.27108
  Prefactor  = 10.9468
  norm       = 15.4157
  Prefactor  = 0.0001
  norm       = 3.57619
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.62749
  Prefactor  = 30.1742
  Normalizat = 0.722403
  Prefactor  = 0.858717
 **********
 **   18 **HESSE 
 **********

 FCN=   3225.422     FROM HESSE     STATUS=OK           695 CALLS     5300 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.868        9.1215        .12153E-03   -1.5049    
   2  Prefactor     .10183E-03    45.685        .12898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.692        37.092        .69029E-04   -1.4546    
   4  Prefactor     38.440        61.309        .64640E-04   -1.4467    
   5  Prefactor     .10000E-03    1.2746        .62476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .97033        .54394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.8785        .14533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .23972        .50403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2729        2.2253        .79463E-04   -1.5406    
  11  norm          .10000E-03    16.899        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4640        2.1109        .95552E-04   -1.5466    
  13  Prefactor     .10000E-03    4.0778        .11185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.0999        .58070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          18.300        19.393        .93629E-04   -1.4852    
  17  Prefactor     .10000E-03    71.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.9541        .21026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     49.066        50.636        .57245E-04   -1.4306    
  20  Prefactor     2.7952        7.2355        .23776E-03   -1.5374    
  21  norm          7.4964        18.996        .14648E-03   -1.5160    
  22  Prefactor     .10000E-03    3.1016        .97380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.2711        4.6178        .16367E-03   -1.5407    
  24  Prefactor     10.947        39.218        .12151E-03   -1.5046    
  25  norm          15.416        5.6801        .39658E-03   -1.4923    
  26  Prefactor     .10000E-03    2.5016        .87280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.5762        10.474        .21351E-03   -1.5330    
  28  Prefactor     .10000E-03    13.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.0798        .11123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.6275        3.8983        .11315E-03   -1.5327    
  31  Prefactor     30.174        32.631        .72956E-04   -1.4609    
  32  Normalizat    .72240        .23963        .21573E-03   -1.0302    
  33  Prefactor     .85872        .26838        .24446E-03   -.97599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09654e-08
Minuit parameter uncertainties:
  1  9.12271
  2  0.0183253
  3  37.1178
  4  61.4097
  5  3.29782e-06
  6  3.61506e-05
  7  4.89333e-06
  8  2.26149e-05
  9  3.4455e-07
  10  2.22543
  11  0.000350418
  12  2.11106
  13  1.73069e-05
  14  4.52e-06
  15  9.6474e-05
  16  19.3999
  17  2.4397e-05
  18  0.000288699
  19  50.68
  20  7.2378
  21  19.0117
  22  9.24726e-06
  23  4.6185
  24  39.3102
  25  5.68027
  26  3.49667e-06
  27  10.479
  28  1.10973e-05
  29  9.19976e-05
  30  3.89857
  31  32.65
  32  0.239983
  33  0.268789
Done.

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

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  2.440e-05  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:  8.587e-01  2.688e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  7.224e-01  2.400e-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: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452706/likelihoodResults_410918401_411177601_4FGL_J0943.6+4207_daily_bin662.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) = 3225.42252109
delta logL = -6.66714340696e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3225.42245449
delta logL = -6.97159521224e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5521       1.0000          .0000       10.000    
     3 'Normalizat'    .72242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85872       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=   3225.422     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      234 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8589.3        .90712E-02** at limit **
   2  Index         2.5847        5.4509        .50000       -.48724E-05
   3  Normalizat    .72240        .72708E-01    .42589E-01   -.32586E-04
   4  Prefactor     .85872        .88292E-01    .44477E-01   -.12837E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.58469
  Normalizat = 0.722396
  Prefactor  = 0.858725
 **********
 **   18 **HESSE 
 **********

 FCN=   3225.422     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    280.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5847        5.1824        .50000       -.50415    
   3  Normalizat    .72240        .21006        .21573E-03   -1.0302    
   4  Prefactor     .85872        .25930        .24446E-03   -.97599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00046e-10
Minuit parameter uncertainties:
  1  0.00061698
  2  8.96534
  3  0.210299
  4  0.259673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452706': 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) = 3225.42245444
delta logL = -2.14577084989e-08

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  6.170e-04  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  2.585e+00  8.965e+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:  8.587e-01  2.597e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  7.224e-01  2.103e-01  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/452706/cmap_HighResolution_410918401_411177601_4FGL_J0943.6+4207_daily_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.80e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-08-31 23:41:13.920995', job_id='452706', GAL2='0.86', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630478473.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='-2.15e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='662' AND source_name='4FGL J0943.6+4207' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:41:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 452706: <4FGL_J0943.6+4207_daily_bin662> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.6+4207_daily_bin662 145.91 42.1169 410918401 411177601 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 :                                   735.23 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             263.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            936 sec.

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

