aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 73 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 17361
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0943.6+4207_weekly_bin754
RA = 145.91, Dec = 42.1169
tmin = 695001601, tmax = 695606401
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='949767', job_status='RUN', time_executed='2023-01-17 00:53:48.130317', time_epoch_executed='1673945628.13' WHERE source_name='4FGL J0943.6+4207' and cadence='weekly' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949767

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949767/ft1_4FGL_J0943.6+4207_weekly_bin754.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949767/ft2_4FGL_J0943.6+4207_weekly_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949767/ft1_4FGL_J0943.6+4207_weekly_bin754.fits outfile=/scratch/kocevski/949767/ft1_filteredMKT_4FGL_J0943.6+4207_weekly_bin754.fits ra=145.91 dec=42.1169 rad=12.0 tmin=695001601.0 tmax=695606401.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 5.66
user 5.35
sys 0.25

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

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

Number of photons that the gtmktime cut: 382

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/949767/ft1_filtered_4FGL_J0943.6+4207_weekly_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/949767/ft2_4FGL_J0943.6+4207_weekly_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/949767/ltcube_695001601_695606401_4FGL_J0943.6+4207_weekly_bin754.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/949767/ft2_4FGL_J0943.6+4207_weekly_bin754.fits
.....................!
real 35.74
user 35.13
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949767/ft1_filtered_4FGL_J0943.6+4207_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/949767/ft2_4FGL_J0943.6+4207_weekly_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/949767/ltcube_695001601_695606401_4FGL_J0943.6+4207_weekly_bin754.fits outfile=/scratch/kocevski/949767/expmap_695001601_695606401_4FGL_J0943.6+4207_weekly_bin754.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/949767/ltcube_695001601_695606401_4FGL_J0943.6+4207_weekly_bin754.fits
.....................!
real 191.97
user 186.57
sys 4.31

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/949767/ft1_filtered_4FGL_J0943.6+4207_weekly_bin754.fits scfile=/scratch/kocevski/949767/ft2_4FGL_J0943.6+4207_weekly_bin754.fits outfile=/scratch/kocevski/949767/cmap_695001601_695606401_4FGL_J0943.6+4207_weekly_bin754.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.62
user 0.44
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949767/ft1_filtered_4FGL_J0943.6+4207_weekly_bin754.fits scfile=/scratch/kocevski/949767/ft2_4FGL_J0943.6+4207_weekly_bin754.fits outfile=/scratch/kocevski/949767/cmap_HighResolution_695001601_695606401_4FGL_J0943.6+4207_weekly_bin754.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.60
user 0.42
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/949767/ft1_filtered_4FGL_J0943.6+4207_weekly_bin754.fits', '/scratch/kocevski/949767/ft2_4FGL_J0943.6+4207_weekly_bin754.fits', expMap='/scratch/kocevski/949767/expmap_695001601_695606401_4FGL_J0943.6+4207_weekly_bin754.fits', expCube='/scratch/kocevski/949767/ltcube_695001601_695606401_4FGL_J0943.6+4207_weekly_bin754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/949767/Model_4FGL_J0943.6+4207_weekly_bin754.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  0.000e+00  1.000e+06 ( 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/949767/ft1_filtered_4FGL_J0943.6+4207_weekly_bin754.fits
Spacecraft file(s): /scratch/kocevski/949767/ft2_4FGL_J0943.6+4207_weekly_bin754.fits
Exposure map: /scratch/kocevski/949767/expmap_695001601_695606401_4FGL_J0943.6+4207_weekly_bin754.fits
Exposure cube: /scratch/kocevski/949767/ltcube_695001601_695606401_4FGL_J0943.6+4207_weekly_bin754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/949767/Model_4FGL_J0943.6+4207_weekly_bin754.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) = 4541.72486059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .70222E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    .15241       1.0000          .0000       .10000E+07
     3 'Prefactor '    .28074E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    28.026       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.907       1.0000          .0000       .10000E+07
     6 'norm      '    .23711       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.4896       1.0000          .0000       .10000E+07
     8 'norm      '    .31008E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .27456E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    7.6107       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.1064       1.0000          .0000       .10000E+07
    12 'Prefactor '    8.5479       1.0000          .0000       .10000E+07
    13 'norm      '    .73605E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .15195E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.2741       1.0000          .0000       .10000E+07
    16 'Prefactor '    .31057E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    7.7601       1.0000          .0000       .10000E+07
    18 'norm      '    33.680       1.0000          .0000       .10000E+07
    19 'Prefactor '    .80441E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    6.3763       1.0000          .0000       .10000E+07
    21 'norm      '    2.7035       1.0000          .0000       .10000E+07
    22 'Prefactor '    3.0542       1.0000          .0000       .10000E+07
    23 'norm      '    .10029       1.0000          .0000       .10000E+07
    24 'Prefactor '    28.721       1.0000          .0000       .10000E+07
    25 'Prefactor '    .14007E-05   1.0000          .0000       .10000E+07
    26 'Normalizat'    .73997       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1359       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4541.619     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     1942 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33307E-09    3.7238       -.34774E-07** at limit **
   2  Prefactor     .13409E-05    13.957       -.32250E-07** at limit **
   3  Prefactor     .12507E-06    36.264        .14439E-06** at limit **
   4  Prefactor     27.788        9.2120       -.22892E-07    .40792E-02
   5  Prefactor     10.733        5.1237        .10654E-07    .94652E-02
   6  norm          .22831        1.3959        .14556E-07** at limit **
   7  Prefactor     1.5525        9.4455       -.14898E-07    .33702E-04
   8  norm          .77161E-08    9.0666        .20128E-06** at limit **
   9  Prefactor     .17003        23.433        .11805E-06** at limit **
  10  Prefactor     7.6624        7.8897        .48600E-07    .15527E-01
  11  Prefactor     1.1084        2.9304        .10076E-06    .26636E-02
  12  Prefactor     8.3681        3.2212        .22911E-07   -.35788E-01
  13  norm           .0000        5.0819       -.18402E-07** at limit **
  14  Prefactor     .68223E-07    20.784        .13626E-06** at limit **
  15  Prefactor     3.2681        7.2242        .56786E-07    .76309E-03
  16  Prefactor     .72164E-09    30.444        .23962E-06** at limit **
  17  Prefactor     7.6551        5.3191        .89098E-08   -.65323E-01
  18  norm          33.450        3.5075        .57731E-08   -.76965E-01
  19  Prefactor     .55511E-10    4.8523        .20604E-06** at limit **
  20  Prefactor     6.3506        6.5500       -.83040E-07   -.59221E-02
  21  norm          2.7074        1.9522       -.24183E-07   -.33617E-02
  22  Prefactor     3.1644        5.9550       -.15480E-06   -.37338E-02
  23  norm          .10399E-04    6.9243       -.34010E-07** at limit **
  24  Prefactor     28.001        34.449       -.50520E-07    .42288E-01
  25  Prefactor     .47184E-08    5.1391       -.63775E-07** at limit **
  26  Normalizat    .74002        .23081       -.16414E-06   -.80345E-04
  27  Prefactor     1.1370        .28063        .37376E-06   -.43357E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.33067e-10
  Prefactor  = 1.34087e-06
  Prefactor  = 1.25067e-07
  Prefactor  = 27.7881
  Prefactor  = 10.7329
  norm       = 0.228307
  Prefactor  = 1.55253
  norm       = 7.71605e-09
  Prefactor  = 0.170032
  Prefactor  = 7.66241
  Prefactor  = 1.10838
  Prefactor  = 8.36808
  norm       = 0
  Prefactor  = 6.82232e-08
  Prefactor  = 3.26807
  Prefactor  = 7.21645e-10
  Prefactor  = 7.65505
  norm       = 33.4504
  Prefactor  = 5.55112e-11
  Prefactor  = 6.35058
  norm       = 2.70738
  Prefactor  = 3.16441
  norm       = 1.03986e-05
  Prefactor  = 28.0014
  Prefactor  = 4.71845e-09
  Normalizat = 0.740018
  Prefactor  = 1.13699
 **********
 **   18 **HESSE 
 **********

 FCN=   4541.619     FROM HESSE     STATUS=OK           564 CALLS     2506 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33307E-09    3.7715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .13409E-05    48.574        .12693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12507E-06    36.580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.788        11.494        .18893E-03   -1.5603    
   5  Prefactor     10.733        33.603        .30311E-03   -1.5642    
   6  norm          .22831        2.4101        .19681E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.5525        20.586        .87814E-03   -1.5683    
   8  norm          .77161E-08    10.143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17003        2.8910        .66187E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.6624        8.5008        .36327E-03   -1.5653    
  11  Prefactor     1.1084        3.0343        .11252E-02   -1.5687    
  12  Prefactor     8.3681        16.569        .34263E-03   -1.5650    
  13  norm           .0000        8.5538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .68223E-07    20.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2681        7.4958        .55937E-03   -1.5672    
  16  Prefactor     .72164E-09    30.247        .16395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.6551        16.727        .35973E-03   -1.5653    
  18  norm          33.450        16.691        .17233E-03   -1.5592    
  19  Prefactor     .55511E-10    4.9170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.3506        6.8717        .39725E-03   -1.5658    
  21  norm          2.7074        1.9556        .61927E-03   -1.5675    
  22  Prefactor     3.1644        6.1013        .58026E-03   -1.5672    
  23  norm          .10399E-04    5.3144        .93802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     28.001        37.625        .18663E-03   -1.5602    
  25  Prefactor     .47184E-08    9.7067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .74002        .20244        .42822E-01   -1.0233    
  27  Prefactor     1.1370        .24083        .61914E-01   -.88293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47304e-07
Minuit parameter uncertainties:
  1  7.35879e-05
  2  0.0161411
  3  0.00427746
  4  11.4942
  5  33.6031
  6  1.48357
  7  11.3067
  8  0.000560417
  9  1.40224
  10  8.50077
  11  3.03432
  12  16.5693
  13  2.29527e-06
  14  0.00239259
  15  7.49578
  16  0.000290458
  17  16.7274
  18  16.6912
  19  3.48223e-05
  20  6.87166
  21  1.95565
  22  6.10127
  23  0.0148677
  24  37.6258
  25  0.000427649
  26  0.202649
  27  0.241058
Done.

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

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  6.822e-08  2.393e-03  0.000e+00  1.000e+06 ( 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:  1.137e+00  2.411e-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.400e-01  2.026e-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: 9.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/949767/likelihoodResults_695001601_695606401_4FGL_J0943.6+4207_weekly_bin754.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) = 4541.64213471
delta logL = -0.0229200205586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4541.52597711
delta logL = 0.0932375816828

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5491       1.0000          .0000       .10000E+07
     2 'Index     '    1.3212       1.0000          .0000       10.000    
     3 'Normalizat'    .74388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1274       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=   4541.526     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      235 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5224        18.135        .39191E-03    .15257E-02
   2  Index         1.3202        .68193        .32250       -.25888E-04
   3  Normalizat    .74386        .18356        .42873E-01    .70105E-04
   4  Prefactor     1.1275        .23255        .62134E-01   -.17435E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.52245
  Index      = 1.32015
  Normalizat = 0.743865
  Prefactor  = 1.12749
 **********
 **   18 **HESSE 
 **********

 FCN=   4541.526     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5224        19.335        .15676E-04   -1.5657    
   2  Index         1.3202        .98034        .12849E-01   -.82710    
   3  Normalizat    .74386        .21370        .26364E-03   -1.0219    
   4  Prefactor     1.1275        .27063        .27480E-03   -.88593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38566e-10
Minuit parameter uncertainties:
  1  19.3347
  2  0.994584
  3  0.213937
  4  0.270964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949767': 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) = 4541.52597594
delta logL = 0.0932387563398

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  6.522e+00  1.933e+01  0.000e+00  1.000e+06 ( 1.000e-13)
327        Index:  1.320e+00  9.946e-01  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:  1.127e+00  2.710e-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.439e-01  2.139e-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/949767/cmap_HighResolution_695001601_695606401_4FGL_J0943.6+4207_weekly_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.68e-03', job_status='DONE', photon_flux_upper_limit='9.81e-08', time_completed='2023-01-17 01:04:19.942806', job_id='949767', GAL2='1.13', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1673946259.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='9.32e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='754' AND source_name='4FGL J0943.6+4207' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 17 01:04:19 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 949767: <4FGL_J0943.6+4207_weekly_bin754> in cluster <slac> Done

Job <4FGL_J0943.6+4207_weekly_bin754> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jan 17 00:50:22 2023
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 17 00:52:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 17 00:52:26 2023
Terminated at Tue Jan 17 01:04:20 2023
Results reported at Tue Jan 17 01:04:20 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.6+4207_weekly_bin754 145.91 42.1169 695001601 695606401 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 :                                   631.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            838 sec.

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

