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


Performing analysis on: 4FGL_J0943.6+4207_daily_bin1760
RA = 145.91, Dec = 42.1169
tmin = 695520001, tmax = 695779201
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='733530', job_status='RUN', time_executed='2023-01-19 00:46:03.213930', time_epoch_executed='1674117963.21' WHERE source_name='4FGL J0943.6+4207' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733530

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733530/ft1_4FGL_J0943.6+4207_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733530/ft2_4FGL_J0943.6+4207_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733530/ft1_4FGL_J0943.6+4207_daily_bin1760.fits outfile=/scratch/kocevski/733530/ft1_filteredMKT_4FGL_J0943.6+4207_daily_bin1760.fits ra=145.91 dec=42.1169 rad=12.0 tmin=695520001.0 tmax=695779201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.40
user 2.16
sys 0.22

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

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

Number of photons that the gtmktime cut: 116

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733530/ft1_filtered_4FGL_J0943.6+4207_daily_bin1760.fits" evtable="EVENTS" scfile=/scratch/kocevski/733530/ft2_4FGL_J0943.6+4207_daily_bin1760.fits sctable="SC_DATA" outfile=/scratch/kocevski/733530/ltcube_695520001_695779201_4FGL_J0943.6+4207_daily_bin1760.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/733530/ft2_4FGL_J0943.6+4207_daily_bin1760.fits
.....................!
real 16.36
user 15.71
sys 0.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733530/ft1_filtered_4FGL_J0943.6+4207_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/733530/ft2_4FGL_J0943.6+4207_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/733530/ltcube_695520001_695779201_4FGL_J0943.6+4207_daily_bin1760.fits outfile=/scratch/kocevski/733530/expmap_695520001_695779201_4FGL_J0943.6+4207_daily_bin1760.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/733530/ltcube_695520001_695779201_4FGL_J0943.6+4207_daily_bin1760.fits
.....................!
real 191.60
user 185.55
sys 5.57

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/733530/ft1_filtered_4FGL_J0943.6+4207_daily_bin1760.fits scfile=/scratch/kocevski/733530/ft2_4FGL_J0943.6+4207_daily_bin1760.fits outfile=/scratch/kocevski/733530/cmap_695520001_695779201_4FGL_J0943.6+4207_daily_bin1760.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733530/ft1_filtered_4FGL_J0943.6+4207_daily_bin1760.fits scfile=/scratch/kocevski/733530/ft2_4FGL_J0943.6+4207_daily_bin1760.fits outfile=/scratch/kocevski/733530/cmap_HighResolution_695520001_695779201_4FGL_J0943.6+4207_daily_bin1760.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31139E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .44347E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .91139E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.9508       1.0000          .0000       .10000E+07
     5 'Prefactor '    .11782E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .55683E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .34919E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .12193E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .61973E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    26.150       1.0000          .0000       .10000E+07
    11 'Prefactor '    9.8680       1.0000          .0000       .10000E+07
    12 'Prefactor '    48.837       1.0000          .0000       .10000E+07
    13 'norm      '    .83204E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10095       1.0000          .0000       .10000E+07
    15 'Prefactor '    39.922       1.0000          .0000       .10000E+07
    16 'Prefactor '    .11258       1.0000          .0000       .10000E+07
    17 'Prefactor '    42.135       1.0000          .0000       .10000E+07
    18 'norm      '    .47458E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .85649E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .10276       1.0000          .0000       .10000E+07
    21 'norm      '    8.4120       1.0000          .0000       .10000E+07
    22 'Prefactor '    .12893E-02   1.0000          .0000       .10000E+07
    23 'norm      '    3.0442       1.0000          .0000       .10000E+07
    24 'Prefactor '    40.624       1.0000          .0000       .10000E+07
    25 'Prefactor '    4.7874       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0579       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1393       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=   1391.649     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     2362 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59397E-08    27.625       -.66262E-07** at limit **
   2  Prefactor     .36082E-08    80.287        .83785E-07** at limit **
   3  Prefactor     .35522E-06    30.367       -.11625E-05** at limit **
   4  Prefactor     4.7221        30.110       -.14342E-04   -.38259E-02
   5  Prefactor     .38858E-09    40.809       -.23623E-05** at limit **
   6  norm           .0000        .76923        .28530E-07** at limit **
   7  Prefactor     .27756E-09    9.4157       -.31621E-06** at limit **
   8  norm          .16653E-09    17.342       -.24455E-05** at limit **
   9  Prefactor     .32196E-08    12.099       -.91533E-06** at limit **
  10  Prefactor     25.979        1.7165       -.86539E-07   -.95423E-02
  11  Prefactor     9.8092        2.2170       -.77746E-06   -.14701E-01
  12  Prefactor     49.023        14.945        .11532E-05    .71952E-01
  13  norm          .27151E-06    69.008        .21976E-05** at limit **
  14  Prefactor     .21261E-07    1.3098        .38761E-06** at limit **
  15  Prefactor     39.800        2.5197        .18572E-06    .12680E-02
  16  Prefactor     .46352E-07    1.7209       -.13763E-06** at limit **
  17  Prefactor     42.274        4.2815        .55969E-06   -.16152E-01
  18  norm           .0000        15.406        .23007E-05** at limit **
  19  Prefactor     .63838E-08    9.9984        .11579E-05** at limit **
  20  Prefactor     .22941E-02    37.588       -.15547E-04** at limit **
  21  norm          8.4115        6.2093       -.13697E-06   -.21078E-01
  22  Prefactor      .0000        66.978        .12113E-05** at limit **
  23  norm          3.0150        4.6185       -.39300E-05   -.19100E-02
  24  Prefactor     41.114        81.257        .12707E-04   -.77682E-02
  25  Prefactor     4.8013        10.426       -.58899E-06   -.22962E-02
  26  Normalizat    1.0590        .51846        .82304E-05   -.55881E-04
  27  Prefactor     1.1392        .61846        .13210E-04   -.50154E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.93969e-09
  Prefactor  = 3.60822e-09
  Prefactor  = 3.55216e-07
  Prefactor  = 4.72213
  Prefactor  = 3.88578e-10
  norm       = 0
  Prefactor  = 2.77556e-10
  norm       = 1.66533e-10
  Prefactor  = 3.21965e-09
  Prefactor  = 25.9789
  Prefactor  = 9.80922
  Prefactor  = 49.0225
  norm       = 2.71505e-07
  Prefactor  = 2.12608e-08
  Prefactor  = 39.7999
  Prefactor  = 4.63518e-08
  Prefactor  = 42.2737
  norm       = 0
  Prefactor  = 6.38378e-09
  Prefactor  = 0.00229407
  norm       = 8.41146
  Prefactor  = 0
  norm       = 3.01497
  Prefactor  = 41.1137
  Prefactor  = 4.80133
  Normalizat = 1.05901
  Prefactor  = 1.13919
 **********
 **   18 **HESSE 
 **********

 FCN=   1391.649     FROM HESSE     STATUS=OK           542 CALLS     2904 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59397E-08    27.602        .16391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .36082E-08    80.329        .15773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .35522E-06    96.447        .14174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.7221        31.695        .45177E-03   -1.5665    
   5  Prefactor     .38858E-09    40.952        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .76909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    9.5010        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .16653E-09    17.381        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .32196E-08    12.109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.979        26.969        .19559E-03   -1.5606    
  11  Prefactor     9.8092        16.480        .31875E-03   -1.5645    
  12  Prefactor     49.023        50.639        .14311E-03   -1.5568    
  13  norm          .27151E-06    98.083        .14404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .21261E-07    102.99        .13904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     39.800        32.153        .15828E-03   -1.5582    
  16  Prefactor     .46352E-07    105.85        .13603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     42.274        34.426        .15407E-03   -1.5578    
  18  norm           .0000        15.444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .63838E-08    10.123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .22941E-02    9.2926        .92365E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.4115        6.2218        .34540E-03   -1.5650    
  22  Prefactor      .0000        66.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.0150        31.037        .58127E-03   -1.5673    
  24  Prefactor     41.114        84.574        .15691E-03   -1.5580    
  25  Prefactor     4.8013        10.753        .45958E-03   -1.5664    
  26  Normalizat    1.0590        .44412        .64200E-01   -.91079    
  27  Prefactor     1.1392        .51257        .74498E-01   -.88224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20282e-07
Minuit parameter uncertainties:
  1  0.000809093
  2  0.00107431
  3  0.0117064
  4  24.4678
  5  0.000260765
  6  3.45049e-06
  7  9.86485e-05
  8  0.000112046
  9  0.000395278
  10  26.9692
  11  16.48
  12  50.6394
  13  0.010321
  14  0.00296052
  15  32.1535
  16  0.00443078
  17  34.4257
  18  3.50918e-05
  19  0.000507827
  20  0.292013
  21  6.22183
  22  6.12173e-05
  23  19.3471
  24  84.5764
  25  10.7526
  26  0.445694
  27  0.514815
Done.

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

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  2.126e-08  2.961e-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.139e+00  5.148e-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.059e+00  4.457e-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: 3.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733530/likelihoodResults_695520001_695779201_4FGL_J0943.6+4207_daily_bin1760.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) = 1391.65373505
delta logL = -0.00465858775692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1391.64907895
delta logL = -2.48963578997e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64818E-05   1.0000          .0000       .10000E+07
     2 'Index     '    3.1744       1.0000          .0000       10.000    
     3 'Normalizat'    1.0580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1400       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=   1391.649     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      270 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31086E-08    229.94        .42118E-03** at limit **
   2  Index         1.5448        5.9199        .50000       -.13642E-09
   3  Normalizat    1.0590        .22276E-01    .64200E-01    .12626E-03
   4  Prefactor     1.1392        .26828E-01    .74498E-01    .82453E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.10862e-09
  Index      = 1.54479
  Normalizat = 1.05901
  Prefactor  = 1.13919
 **********
 **   18 **HESSE 
 **********

 FCN=   1391.649     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      299 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31086E-08    1135.7        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5448        7.1598        .50000       -.76293    
   3  Normalizat    1.0590        .50348E-01    .28398E-03   -.91079    
   4  Prefactor     1.1392        .60618E-01    .32968E-03   -.88224    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.15733e-09
Minuit parameter uncertainties:
  1  0.00374247
  2  296824
  3  0.0503498
  4  0.0606219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733530': 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) = 1391.64907646
delta logL = 3.34239302902e-11

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  3.109e-09  3.742e-03  0.000e+00  1.000e+06 ( 1.000e-13)
327        Index:  1.545e+00  2.968e+05  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.139e+00  6.062e-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:  1.059e+00  5.035e-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/733530/cmap_HighResolution_695520001_695779201_4FGL_J0943.6+4207_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-02', job_status='DONE', photon_flux_upper_limit='3.08e-07', time_completed='2023-01-19 00:52:59.794042', job_id='733530', GAL2='1.14', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1674118379.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='3.34e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1760' AND source_name='4FGL J0943.6+4207' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 00:52:59 PST 2023


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

Job <4FGL_J0943.6+4207_daily_bin1760> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Jan 19 00:40:23 2023
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 00:42:14 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 00:42:14 2023
Terminated at Thu Jan 19 00:53:00 2023
Results reported at Thu Jan 19 00:53:00 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.6+4207_daily_bin1760 145.91 42.1169 695520001 695779201 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 :                                   418.53 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            757 sec.

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

