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


Performing analysis on: 4FGL_J1033.9+6050_monthly_bin167
RA = 158.485, Dec = 60.8493
tmin = 669859201, tmax = 672451201
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='882054', job_status='RUN', time_executed='2022-04-24 01:31:36.199251', time_epoch_executed='1650789096.2' WHERE source_name='4FGL J1033.9+6050' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/882054

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/882054/ft1_4FGL_J1033.9+6050_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/882054/ft2_4FGL_J1033.9+6050_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/882054/ft1_4FGL_J1033.9+6050_monthly_bin167.fits outfile=/scratch/kocevski/882054/ft1_filteredMKT_4FGL_J1033.9+6050_monthly_bin167.fits ra=158.485 dec=60.8493 rad=12.0 tmin=669859201.0 tmax=672451201.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 31.71
user 30.77
sys 0.86

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/882054/ft2_4FGL_J1033.9+6050_monthly_bin167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/882054/ft2_4FGL_J1033.9+6050_monthly_bin167.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/882054/ft1_filteredMKT_4FGL_J1033.9+6050_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/882054/ft1_filtered_4FGL_J1033.9+6050_monthly_bin167.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.75
user 0.55
sys 0.18

Number of photons that the gtmktime cut: 7100

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/882054/ft1_filtered_4FGL_J1033.9+6050_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/882054/ft2_4FGL_J1033.9+6050_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/882054/ltcube_669859201_672451201_4FGL_J1033.9+6050_monthly_bin167.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/882054/ft2_4FGL_J1033.9+6050_monthly_bin167.fits
.....................!
real 138.48
user 137.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/882054/ft1_filtered_4FGL_J1033.9+6050_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/882054/ft2_4FGL_J1033.9+6050_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/882054/ltcube_669859201_672451201_4FGL_J1033.9+6050_monthly_bin167.fits outfile=/scratch/kocevski/882054/expmap_669859201_672451201_4FGL_J1033.9+6050_monthly_bin167.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/882054/ltcube_669859201_672451201_4FGL_J1033.9+6050_monthly_bin167.fits
.....................!
real 157.30
user 152.55
sys 4.41

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 246 point sources and 0 extended sources

Setting source of interest to:
4FGL J1033.9+6050 @ 158.485 60.8493

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/882054/ft1_filtered_4FGL_J1033.9+6050_monthly_bin167.fits scfile=/scratch/kocevski/882054/ft2_4FGL_J1033.9+6050_monthly_bin167.fits outfile=/scratch/kocevski/882054/cmap_669859201_672451201_4FGL_J1033.9+6050_monthly_bin167.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=158.485 yref=60.8493 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.69
user 0.50
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/882054/ft1_filtered_4FGL_J1033.9+6050_monthly_bin167.fits scfile=/scratch/kocevski/882054/ft2_4FGL_J1033.9+6050_monthly_bin167.fits outfile=/scratch/kocevski/882054/cmap_HighResolution_669859201_672451201_4FGL_J1033.9+6050_monthly_bin167.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=158.485 yref=60.8493 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.69
user 0.50
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/882054/ft1_filtered_4FGL_J1033.9+6050_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/882054/ft2_4FGL_J1033.9+6050_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/882054/Model_4FGL_J1033.9+6050_monthly_bin167.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/882054/ft1_filtered_4FGL_J1033.9+6050_monthly_bin167.fits....................!
real 518.18
user 516.16
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/882054/ft1_filtered_4FGL_J1033.9+6050_monthly_bin167.fits', '/scratch/kocevski/882054/ft2_4FGL_J1033.9+6050_monthly_bin167.fits', expMap='/scratch/kocevski/882054/expmap_669859201_672451201_4FGL_J1033.9+6050_monthly_bin167.fits', expCube='/scratch/kocevski/882054/ltcube_669859201_672451201_4FGL_J1033.9+6050_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/882054/Model_4FGL_J1033.9+6050_monthly_bin167.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1033.9+6050'

4FGL J1033.9+6050
   Spectrum: LogParabola
421         norm:  4.658e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
422        alpha:  2.137e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
423         beta:  9.680e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
424           Eb:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/882054/ft1_filtered_4FGL_J1033.9+6050_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/882054/ft2_4FGL_J1033.9+6050_monthly_bin167.fits
Exposure map: /scratch/kocevski/882054/expmap_669859201_672451201_4FGL_J1033.9+6050_monthly_bin167.fits
Exposure cube: /scratch/kocevski/882054/ltcube_669859201_672451201_4FGL_J1033.9+6050_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/882054/Model_4FGL_J1033.9+6050_monthly_bin167.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) = 75233.1414632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6803       1.0000         .10000E-03   10000.    
     2 'norm      '    .69061       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7739       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2779       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .54690       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6860       1.0000         .10000E-03   10000.    
     8 'norm      '    .40750       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3156       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2658       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.0722       1.0000         .10000E-03   10000.    
    13 'norm      '    5.3004       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.673       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8718       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5885       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.397       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .42679       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2259       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.6091       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.522       1.0000         .10000E-03   10000.    
    25 'norm      '    2.4304       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.3116       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .45512E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.6176       1.0000         .10000E-03   10000.    
    30 'Prefactor '    25.750       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .22080       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .35995       1.0000         .10000E-03   10000.    
    33 'norm      '    2.6633       1.0000         .10000E-03   10000.    
    34 'norm      '    .26004E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    6.6628       1.0000         .10000E-03   10000.    
    36 'Prefactor '    3.3146       1.0000         .10000E-03   10000.    
    37 'Prefactor '    10.331       1.0000         .10000E-03   10000.    
    38 'Normalizat'    1.0616       1.0000         .10000E-01   10.000    
    39 'Prefactor '    .89209       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   75233.00     FROM MIGRAD    STATUS=CONVERGED   1228 CALLS     5414 TOTAL
                     EDM=   .36E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6803        1.4252         .0000        .20757E-02
   2  norm          .69064        .23599         .0000        .10117E-01
   3  Prefactor     8.7734        2.7577         .0000        .91737E-02
   4  Prefactor     1.2777        .85325         .0000        .77386E-02
   5  Prefactor     .10000E-03    .84809         .0000    ** at limit **
   6  Prefactor     .54660        .90374         .0000        .49561E-02
   7  Prefactor     2.6863        1.6666         .0000        .55860E-02
   8  norm          .40553        1.2565         .0000        .42417    
   9  Prefactor     6.3260        6.9101         .0000        .11681E-02
  10  norm          1.2658        .15487         .0000        .10756E-02
  11  Prefactor     .10000E-03    .28432         .0000    ** at limit **
  12  norm          4.0723        .29710         .0000        .59264E-03
  13  norm          5.3004        .95079         .0000       -.35629E-03
  14  Prefactor     .10001E-03    4.6843         .0000    ** at limit **
  15  norm          16.673        4.8688         .0000        .41495E-03
  16  Prefactor     8.8682        4.1633         .0000        .15829E-02
  17  norm          .10000E-03    .11013         .0000    ** at limit **
  18  norm          1.5886        .38073         .0000       -.38256E-03
  19  Prefactor     21.377        21.250         .0000       -.17377E-03
  20  Prefactor     .42528        1.0669         .0000        .20461E-01
  21  norm          1.2260        .21831         .0000        .25188E-02
  22  Prefactor     .10001E-03    4.8047         .0000    ** at limit **
  23  norm          1.6094        .96820         .0000        .74258E-02
  24  Prefactor     11.532        22.589         .0000        .13463E-02
  25  norm          2.4305        .63480         .0000        .19464E-02
  26  Prefactor     7.3117        2.5788         .0000        .75471E-01
  27  Prefactor     .22117E-01    3.5737         .0000        .50844E-03
  28  Prefactor     .10000E-03    2.4958         .0000    ** at limit **
  29  Prefactor     1.6177        1.3520         .0000        .60461E-02
  30  Prefactor     25.749        7.4002         .0000       -.60270E-02
  31  Prefactor     .22003        .95947         .0000        .83106E-02
  32  Prefactor     .35996        .54895         .0000        .12949E-01
  33  norm          2.6631        2.3884         .0000        .46812E-01
  34  norm          .10001E-03    .21876         .0000    ** at limit **
  35  Prefactor     6.6624        2.1678         .0000        .13186E-01
  36  Prefactor     3.3149        3.4640         .0000        .38918E-02
  37  Prefactor     10.332        7.3303         .0000       -.28564E-02
  38  Normalizat    1.0615        .50116E-01     .0000        .20335E-03
  39  Prefactor     .89213        .51719E-01     .0000        .29143E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.68025
  norm       = 0.690638
  Prefactor  = 8.77336
  Prefactor  = 1.27767
  Prefactor  = 0.0001
  Prefactor  = 0.546595
  Prefactor  = 2.68632
  norm       = 0.405527
  Prefactor  = 6.32598
  norm       = 1.26582
  Prefactor  = 0.0001
  norm       = 4.07229
  norm       = 5.30042
  Prefactor  = 0.000100007
  norm       = 16.6729
  Prefactor  = 8.86823
  norm       = 0.0001
  norm       = 1.5886
  Prefactor  = 21.3766
  Prefactor  = 0.425281
  norm       = 1.22604
  Prefactor  = 0.00010001
  norm       = 1.60941
  Prefactor  = 11.5322
  norm       = 2.43048
  Prefactor  = 7.3117
  Prefactor  = 0.0221171
  Prefactor  = 0.0001
  Prefactor  = 1.61768
  Prefactor  = 25.7493
  Prefactor  = 0.220026
  Prefactor  = 0.359964
  norm       = 2.66315
  norm       = 0.000100013
  Prefactor  = 6.66244
  Prefactor  = 3.31488
  Prefactor  = 10.3318
  Normalizat = 1.06152
  Prefactor  = 0.892126
 **********
 **   18 **HESSE 
 **********

 FCN=   75233.00     FROM HESSE     STATUS=OK           984 CALLS     6398 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6803        1.4218        .29042E-03   -1.5449    
   2  norm          .69064        .22310        .71702E-03   -1.5542    
   3  Prefactor     8.7734        2.7604        .67661E-03   -1.5115    
   4  Prefactor     1.2777        .83741        .19628E-03   -1.5482    
   5  Prefactor     .10000E-03    .85847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .54660        1.8359        .30318E-02   -1.5560    
   7  Prefactor     2.6863        1.6526        .24861E-03   -1.5380    
   8  norm          .40553        1.2183        .21774E-02   -1.5581    
   9  Prefactor     6.3260        6.7420        .15972E-03   -1.5205    
  10  norm          1.2658        .15503        .36299E-04   -1.5483    
  11  Prefactor     .10000E-03    .28723        .14271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.0723        .29671        .38195E-04   -1.5304    
  13  norm          5.3004        .95104        .11019E-03   -1.5247    
  14  Prefactor     .10001E-03    4.7487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.673        4.8676        .98087E-04   -1.4891    
  16  Prefactor     8.8682        3.9176        .13457E-03   -1.5112    
  17  norm          .10000E-03    .42357        .16525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5886        .38155        .80318E-04   -1.5456    
  19  Prefactor     21.377        21.247        .86591E-04   -1.4783    
  20  Prefactor     .42528        1.0264        .39925E-03   -1.5578    
  21  norm          1.2260        .21214        .46266E-04   -1.5487    
  22  Prefactor     .10001E-03    4.8114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.6094        .91582        .12938E-03   -1.5454    
  24  Prefactor     11.532        22.574        .11802E-03   -1.5029    
  25  norm          2.4305        .63320        .10546E-03   -1.5396    
  26  Prefactor     7.3117        2.4647        .74167E-03   -1.5167    
  27  Prefactor     .22117E-01    3.5135        .15958       -1.5678    
  28  Prefactor     .10000E-03    2.5299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.6177        1.3415        .27631E-03   -1.5454    
  30  Prefactor     25.749        7.3940        .78943E-04   -1.4693    
  31  Prefactor     .22003        7.1425        .52087E-02   -1.5614    
  32  Prefactor     .35996        .66319        .24160E-02   -1.5588    
  33  norm          2.6631        2.3815        .12488E-02   -1.5382    
  34  norm          .10001E-03    .42602        .42993E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     6.6624        2.1829        .77729E-03   -1.5192    
  36  Prefactor     3.3149        3.4556        .22235E-03   -1.5344    
  37  Prefactor     10.332        7.3296        .12466E-03   -1.5065    
  38  Normalizat    1.0615        .56604E-01    .23826E-03   -.90997    
  39  Prefactor     .89213        .58514E-01    .28389E-03   -.96417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28435e-07
Minuit parameter uncertainties:
  1  1.42186
  2  0.223105
  3  2.76049
  4  0.83742
  5  1.15806e-06
  6  1.83607
  7  1.65262
  8  1.21834
  9  6.74283
  10  0.155034
  11  1.06791e-07
  12  0.296711
  13  0.951041
  14  0.000371663
  15  4.86767
  16  3.91774
  17  8.77422e-07
  18  0.381551
  19  21.2543
  20  1.02646
  21  0.212145
  22  0.000434737
  23  0.915824
  24  22.5908
  25  0.633204
  26  2.4647
  27  0.556293
  28  9.6715e-07
  29  1.34154
  30  7.39428
  31  2.50697
  32  0.663203
  33  2.38156
  34  0.000150743
  35  2.18293
  36  3.45579
  37  7.33023
  38  0.0566072
  39  0.058518
Done.

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

Extracting fit parameters...

4FGL J1033.9+6050
   Spectrum: LogParabola
421         norm:  1.000e-04  8.774e-07  1.000e-04  1.000e+04 ( 1.000e-12)
422        alpha:  2.137e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
423         beta:  9.680e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
424           Eb:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
784    Prefactor:  8.921e-01  5.852e-02  0.000e+00  1.000e+01 ( 1.000e+00)
785        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
786        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
783   Normalization:  1.062e+00  5.661e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 158.485 60.849
Photon Flux Upper Limit: 8.04e-09 ph cm-2 s-1
Energy Flux Upper Limit: 3.97e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/882054/likelihoodResults_669859201_672451201_4FGL_J1033.9+6050_monthly_bin167.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) = 75233.0100054
delta logL = -0.0114678440004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 75232.9985348
delta logL = 2.77250364888e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1138       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0615       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89213       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7870E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   75233.00     FROM MIGRAD    STATUS=FAILED       118 CALLS      284 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    30.747        .16786E-02** at limit **
   2  alpha         1.8888        3.4210        .50000       -.12600E-04
   3  Normalizat    1.0615        .10495E-01    .23826E-03    .19238E-03
   4  Prefactor     .89213        .11616E-01    .28389E-03    .25245E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   75233.00     FROM SIMPLEX   STATUS=UNCHANGED    187 CALLS      471 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    30.747        .11729E-03** at limit **
   2  alpha         1.8888        3.4210        .14570E-05   -.12600E-04
   3  Normalizat    1.0615        .10495E-01    .11275E-07    .19238E-03
   4  Prefactor     .89213        .11616E-01    .24187E-08    .25245E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   75233.00     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      507 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .54688        .67144E-04** at limit **
   2  alpha         1.8886        3.1171        .50000       -.49004E-06
   3  Normalizat    1.0615        .50901E-01    .95306E-05    .19086E-03
   4  Prefactor     .89213        .56333E-01    .11356E-04    .24989E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.88856
  Normalizat = 1.06153
  Prefactor  = 0.892126
 **********
 **   18 **HESSE 
 **********

 FCN=   75233.00     FROM HESSE     STATUS=OK            29 CALLS      536 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .50702        .13429E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8886        3.4202        .50000       -.24708    
   3  Normalizat    1.0615        .50971E-01    .19061E-05   -.90997    
   4  Prefactor     .89213        .56412E-01    .22711E-05   -.96417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6549e-11
Minuit parameter uncertainties:
  1  2.49744e-07
  2  34.147
  3  0.0509737
  4  0.0564156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/882054': 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) = 75232.9985215
delta logL = 1.59975461429e-05

Extracting fit parameters...

4FGL J1033.9+6050
   Spectrum: LogParabola
421         norm:  1.000e-04  2.497e-07  1.000e-04  1.000e+04 ( 1.000e-12)
422        alpha:  1.889e+00  3.415e+01  0.000e+00  5.000e+00 ( 1.000e+00)
423         beta:  9.680e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
424           Eb:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
784    Prefactor:  8.921e-01  5.642e-02  0.000e+00  1.000e+01 ( 1.000e+00)
785        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
786        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
783   Normalization:  1.062e+00  5.097e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 158.485 60.849

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/882054/cmap_HighResolution_669859201_672451201_4FGL_J1033.9+6050_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-06', job_status='DONE', photon_flux_upper_limit='8.04e-09', time_completed='2022-04-24 04:48:43.848958', job_id='882054', GAL2='0.89', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1650800923.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.60e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='167' AND source_name='4FGL J1033.9+6050' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 04:48:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 882054: <4FGL_J1033.9+6050_monthly_bin167> in cluster <slac> Done

Job <4FGL_J1033.9+6050_monthly_bin167> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Apr 24 01:05:39 2022
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 01:29:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 01:29:25 2022
Terminated at Sun Apr 24 04:48:44 2022
Results reported at Sun Apr 24 04:48:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.9+6050_monthly_bin167 158.485 60.8493 669859201 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1033.9+6050 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11782.00 sec.
    Max Memory :                                 630 MB
    Average Memory :                             438.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11959 sec.
    Turnaround time :                            13385 sec.

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

