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


Performing analysis on: 4FGL_J0943.6+4207_monthly_bin169
RA = 145.91, Dec = 42.1169
tmin = 675043201, tmax = 677635201
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='164300', job_status='RUN', time_executed='2022-06-23 02:04:53.846763', time_epoch_executed='1655975093.85' WHERE source_name='4FGL J0943.6+4207' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164300

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164300/ft1_4FGL_J0943.6+4207_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164300/ft2_4FGL_J0943.6+4207_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164300/ft1_4FGL_J0943.6+4207_monthly_bin169.fits outfile=/scratch/kocevski/164300/ft1_filteredMKT_4FGL_J0943.6+4207_monthly_bin169.fits ra=145.91 dec=42.1169 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.66
user 26.86
sys 0.69

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164300/ft2_4FGL_J0943.6+4207_monthly_bin169.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/164300/ft1_filteredMKT_4FGL_J0943.6+4207_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/164300/ft1_filtered_4FGL_J0943.6+4207_monthly_bin169.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.88
user 0.67
sys 0.19

Number of photons that the gtmktime cut: 5845

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164300/ft1_filtered_4FGL_J0943.6+4207_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/164300/ft2_4FGL_J0943.6+4207_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/164300/ltcube_675043201_677635201_4FGL_J0943.6+4207_monthly_bin169.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/164300/ft2_4FGL_J0943.6+4207_monthly_bin169.fits
.....................!
real 132.50
user 131.83
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164300/ft1_filtered_4FGL_J0943.6+4207_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/164300/ft2_4FGL_J0943.6+4207_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/164300/ltcube_675043201_677635201_4FGL_J0943.6+4207_monthly_bin169.fits outfile=/scratch/kocevski/164300/expmap_675043201_677635201_4FGL_J0943.6+4207_monthly_bin169.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/164300/ltcube_675043201_677635201_4FGL_J0943.6+4207_monthly_bin169.fits
.....................!
real 193.61
user 187.24
sys 5.94

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/164300/ft1_filtered_4FGL_J0943.6+4207_monthly_bin169.fits scfile=/scratch/kocevski/164300/ft2_4FGL_J0943.6+4207_monthly_bin169.fits outfile=/scratch/kocevski/164300/cmap_675043201_677635201_4FGL_J0943.6+4207_monthly_bin169.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.79
user 0.62
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164300/ft1_filtered_4FGL_J0943.6+4207_monthly_bin169.fits scfile=/scratch/kocevski/164300/ft2_4FGL_J0943.6+4207_monthly_bin169.fits outfile=/scratch/kocevski/164300/cmap_HighResolution_675043201_677635201_4FGL_J0943.6+4207_monthly_bin169.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.81
user 0.63
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0979       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5865       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18698E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13989E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7344       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2637       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8093       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11836E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6232       1.0000         .10000E-03   10000.    
    11 'norm      '    3.3720       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .49568       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7065       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5253       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2974       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7167       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10609E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .48458       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1030       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6695       1.0000         .10000E-03   10000.    
    21 'norm      '    6.6379       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .56540       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.1893       1.0000         .10000E-03   10000.    
    25 'norm      '    3.1694       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.6380       1.0000         .10000E-03   10000.    
    27 'norm      '    6.3462       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.511       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.3535       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .93052       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1279       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   63923.09     FROM MIGRAD    STATUS=CONVERGED    920 CALLS     4034 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0985        1.8333         .0000        .14866    
   2  Prefactor     1.5868        .76685         .0000        .65788E-02
   3  Prefactor     .10000E-03    1.3001         .0000    ** at limit **
   4  Prefactor     .10000E-03    9.6596         .0000    ** at limit **
   5  Prefactor     2.7340        .93536         .0000        .17819E-02
   6  Prefactor     3.3147        6.2554         .0000        .93767E-02
   7  Prefactor     1.8092        .78247         .0000        .34946E-02
   8  Prefactor     .10000E-03    2.2974         .0000    ** at limit **
   9  norm          .11849E-01    .60839E-01     .0000        .21635E-01
  10  Prefactor     2.6232        1.1064         .0000        .49342E-02
  11  norm          3.3677        1.8090         .0000        .76711E-01
  12  Prefactor     .49592        .45635         .0000        .62801E-02
  13  Prefactor     4.7032        2.3664         .0000        .53221E-02
  14  Prefactor     2.5255        .96365         .0000        .33839E-02
  15  Prefactor     1.2971        4.7026         .0000        .26857E-02
  16  norm          1.7187        2.4324         .0000        .73831E-01
  17  Prefactor     .10000E-03    1.1901         .0000    ** at limit **
  18  Prefactor     .48243        .82900         .0000        .35555E-02
  19  Prefactor     4.0959        4.9959         .0000       -.18043E-02
  20  Prefactor     1.6688        1.3697         .0000        .19152E-02
  21  norm          6.6338        2.8980         .0000        .30774E-02
  22  Prefactor     .10000E-03    .25002         .0000    ** at limit **
  23  Prefactor     .56549        .80485         .0000        .14997E-01
  24  Prefactor     5.1947        4.4498         .0000        .36142E-02
  25  norm          3.1697        .65348         .0000        .42105E-03
  26  Prefactor     1.6375        1.1360         .0000        .69199E-02
  27  norm          6.3518        2.2598         .0000       -.13282E-02
  28  Prefactor     11.531        6.4367         .0000        .28271E-03
  29  Prefactor     .10000E-03    .28295         .0000    ** at limit **
  30  Prefactor     .10000E-03    .35668         .0000    ** at limit **
  31  Prefactor     2.3318        3.5657         .0000        .26413E-02
  32  Normalizat    .93056        .50403E-01     .0000        .10844E-03
  33  Prefactor     1.1279        .60318E-01     .0000        .38728E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.09847
  Prefactor  = 1.58677
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.73402
  Prefactor  = 3.31474
  Prefactor  = 1.80923
  Prefactor  = 0.0001
  norm       = 0.0118492
  Prefactor  = 2.62315
  norm       = 3.36771
  Prefactor  = 0.495917
  Prefactor  = 4.70317
  Prefactor  = 2.52551
  Prefactor  = 1.29709
  norm       = 1.7187
  Prefactor  = 0.0001
  Prefactor  = 0.482434
  Prefactor  = 4.09585
  Prefactor  = 1.66878
  norm       = 6.6338
  Prefactor  = 0.0001
  Prefactor  = 0.565492
  Prefactor  = 5.19468
  norm       = 3.16966
  Prefactor  = 1.63749
  norm       = 6.35182
  Prefactor  = 11.5309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.33185
  Normalizat = 0.930556
  Prefactor  = 1.1279
 **********
 **   18 **HESSE 
 **********

 FCN=   63923.09     FROM HESSE     STATUS=OK           731 CALLS     4765 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0985        1.8203        .14248E-02   -1.5418    
   2  Prefactor     1.5868        .75535        .14422E-03   -1.5456    
   3  Prefactor     .10000E-03    1.7439        .10986       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.7387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7340        .93376        .13875E-03   -1.5377    
   6  Prefactor     3.3147        6.2406        .11208E-02   -1.5344    
   7  Prefactor     1.8092        .77236        .13763E-03   -1.5439    
   8  Prefactor     .10000E-03    2.3298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .11849E-01    .43005        .84813E-03   -1.5686    
  10  Prefactor     2.6232        1.2118        .11445E-03   -1.5384    
  11  norm          3.3677        1.7958        .11018E-02   -1.5341    
  12  Prefactor     .49592        .44051        .15290E-03   -1.5567    
  13  Prefactor     4.7032        2.3066        .18549E-03   -1.5274    
  14  Prefactor     2.5255        .95374        .14247E-03   -1.5390    
  15  Prefactor     1.2971        4.5329        .38819E-03   -1.5480    
  16  norm          1.7187        2.4114        .16035E-02   -1.5446    
  17  Prefactor     .10000E-03    1.1943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .48243        1.6357        .26043E-02   -1.5569    
  19  Prefactor     4.0959        4.9875        .19902E-03   -1.5303    
  20  Prefactor     1.6688        1.3651        .25975E-03   -1.5450    
  21  norm          6.6338        2.8868        .15575E-03   -1.5193    
  22  Prefactor     .10000E-03    1.2191        .23354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .56549        .75035        .23110E-03   -1.5558    
  24  Prefactor     5.1947        4.4486        .88234E-03   -1.5252    
  25  norm          3.1697        .65218        .89789E-04   -1.5352    
  26  Prefactor     1.6375        1.0689        .19055E-03   -1.5452    
  27  norm          6.3518        2.2542        .15933E-03   -1.5204    
  28  Prefactor     11.531        5.9780        .11808E-03   -1.5029    
  29  Prefactor     .10000E-03    .29464        .26216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.0183        .26974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     2.3318        3.5462        .26718E-03   -1.5403    
  32  Normalizat    .93056        .59852E-01    .22632E-03   -.95395    
  33  Prefactor     1.1279        .72258E-01    .26396E-03   -.88580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49503e-06
Minuit parameter uncertainties:
  1  1.82037
  2  0.755357
  3  8.73913e-05
  4  0.000101889
  5  0.933768
  6  6.24181
  7  0.772364
  8  1.82831e-05
  9  0.142167
  10  1.21177
  11  1.79586
  12  0.440516
  13  2.30662
  14  0.953741
  15  4.53412
  16  2.41158
  17  2.17753e-05
  18  1.63587
  19  4.98796
  20  1.36511
  21  2.88688
  22  1.60524e-05
  23  0.750362
  24  4.44888
  25  0.652186
  26  1.06888
  27  2.25423
  28  5.97836
  29  4.19439e-07
  30  5.54096e-06
  31  3.54651
  32  0.0598563
  33  0.0722643
Done.

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

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  2.178e-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:  1.128e+00  7.226e-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:  9.306e-01  5.986e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.910 42.117
Photon Flux Upper Limit: 8.47e-09 ph cm-2 s-1
Energy Flux Upper Limit: 6.63e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164300/likelihoodResults_675043201_677635201_4FGL_J0943.6+4207_monthly_bin169.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) = 63923.0914502
delta logL = -0.00399119631766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 63923.0874585
delta logL = 5.16687578056e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5856       1.0000          .0000       10.000    
     3 'Normalizat'    .93056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1279       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=   63923.09     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      261 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.574        .18142E-01** at limit **
   2  Index         1.7438        8.6399        .50000       -.68940E-06
   3  Normalizat    .93056        .31832E-02    .22632E-03   -.37132E-03
   4  Prefactor     1.1279        .40633E-02    .26396E-03   -.29219E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.74378
  Normalizat = 0.930556
  Prefactor  = 1.1279
 **********
 **   18 **HESSE 
 **********

 FCN=   63923.09     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    302.44        .65544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7438        9.1069        .50000       -.70922    
   3  Normalizat    .93056        .20909E-01    .90529E-05   -.95395    
   4  Prefactor     1.1279        .26690E-01    .10558E-04   -.88580    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04233e-07
Minuit parameter uncertainties:
  1  0.000677924
  2  754.742
  3  0.0209092
  4  0.02669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164300': 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) = 63923.0874445
delta logL = 1.44445875776e-05

Extracting fit parameters...

4FGL J0943.6+4207
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  6.779e-04  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  1.744e+00  7.547e+02  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.128e+00  2.669e-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:  9.306e-01  2.091e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/164300/cmap_HighResolution_675043201_677635201_4FGL_J0943.6+4207_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.63e-04', job_status='DONE', photon_flux_upper_limit='8.47e-09', time_completed='2022-06-23 04:17:38.939986', job_id='164300', GAL2='1.13', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1655983058.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.44e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='169' AND source_name='4FGL J0943.6+4207' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 04:17:38 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 164300: <4FGL_J0943.6+4207_monthly_bin169> in cluster <slac> Done

Job <4FGL_J0943.6+4207_monthly_bin169> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jun 23 01:30:32 2022
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:03:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:03:08 2022
Terminated at Thu Jun 23 04:17:40 2022
Results reported at Thu Jun 23 04:17:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0943.6+4207_monthly_bin169 145.91 42.1169 675043201 677635201 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 :                                   7936.00 sec.
    Max Memory :                                 1100 MB
    Average Memory :                             400.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   8071 sec.
    Turnaround time :                            10028 sec.

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

