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


Performing analysis on: 4FGL_J1033.9+6050_daily_bin1525
RA = 158.485, Dec = 60.8493
tmin = 634608001, tmax = 634867201
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='991530', job_status='RUN', time_executed='2021-09-02 04:18:50.694693', time_epoch_executed='1630581530.69' WHERE source_name='4FGL J1033.9+6050' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991530

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991530/ft1_4FGL_J1033.9+6050_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991530/ft2_4FGL_J1033.9+6050_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991530/ft1_4FGL_J1033.9+6050_daily_bin1525.fits outfile=/scratch/kocevski/991530/ft1_filteredMKT_4FGL_J1033.9+6050_daily_bin1525.fits ra=158.485 dec=60.8493 rad=12.0 tmin=634608001.0 tmax=634867201.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 3.21
user 2.91
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/991530/ft2_4FGL_J1033.9+6050_daily_bin1525.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/991530/ft1_filteredMKT_4FGL_J1033.9+6050_daily_bin1525.fits evtable="EVENTS" outfile="/scratch/kocevski/991530/ft1_filtered_4FGL_J1033.9+6050_daily_bin1525.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.52
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991530/ft1_filtered_4FGL_J1033.9+6050_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/991530/ft2_4FGL_J1033.9+6050_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/991530/ltcube_634608001_634867201_4FGL_J1033.9+6050_daily_bin1525.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/991530/ft2_4FGL_J1033.9+6050_daily_bin1525.fits
.....................!
real 16.28
user 15.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991530/ft1_filtered_4FGL_J1033.9+6050_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/991530/ft2_4FGL_J1033.9+6050_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/991530/ltcube_634608001_634867201_4FGL_J1033.9+6050_daily_bin1525.fits outfile=/scratch/kocevski/991530/expmap_634608001_634867201_4FGL_J1033.9+6050_daily_bin1525.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/991530/ltcube_634608001_634867201_4FGL_J1033.9+6050_daily_bin1525.fits
.....................!
real 192.66
user 188.04
sys 4.22

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/991530/ft1_filtered_4FGL_J1033.9+6050_daily_bin1525.fits scfile=/scratch/kocevski/991530/ft2_4FGL_J1033.9+6050_daily_bin1525.fits outfile=/scratch/kocevski/991530/cmap_634608001_634867201_4FGL_J1033.9+6050_daily_bin1525.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.60
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991530/ft1_filtered_4FGL_J1033.9+6050_daily_bin1525.fits scfile=/scratch/kocevski/991530/ft2_4FGL_J1033.9+6050_daily_bin1525.fits outfile=/scratch/kocevski/991530/cmap_HighResolution_634608001_634867201_4FGL_J1033.9+6050_daily_bin1525.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/991530/ft1_filtered_4FGL_J1033.9+6050_daily_bin1525.fits', '/scratch/kocevski/991530/ft2_4FGL_J1033.9+6050_daily_bin1525.fits', expMap='/scratch/kocevski/991530/expmap_634608001_634867201_4FGL_J1033.9+6050_daily_bin1525.fits', expCube='/scratch/kocevski/991530/ltcube_634608001_634867201_4FGL_J1033.9+6050_daily_bin1525.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/991530/Model_4FGL_J1033.9+6050_daily_bin1525.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/991530/ft1_filtered_4FGL_J1033.9+6050_daily_bin1525.fits
Spacecraft file(s): /scratch/kocevski/991530/ft2_4FGL_J1033.9+6050_daily_bin1525.fits
Exposure map: /scratch/kocevski/991530/expmap_634608001_634867201_4FGL_J1033.9+6050_daily_bin1525.fits
Exposure cube: /scratch/kocevski/991530/ltcube_634608001_634867201_4FGL_J1033.9+6050_daily_bin1525.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/991530/Model_4FGL_J1033.9+6050_daily_bin1525.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) = 1726.88982328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.848       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3878       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.818       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.244       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12889E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.0364       1.0000         .10000E-03   10000.    
    13 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10850E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.6386       1.0000         .10000E-03   10000.    
    22 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    23 'norm      '    2.9804       1.0000         .10000E-03   10000.    
    24 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    25 'norm      '    10000.       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    29 'Prefactor '    623.69       1.0000         .10000E-03   10000.    
    30 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.7561       1.0000         .10000E-03   10000.    
    33 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    37 'Prefactor '    8.9910       1.0000         .10000E-03   10000.    
    38 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    39 'Prefactor '    .64884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1725.861     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     6130 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.852        1.0153        .32648E-06   -.12099E-04
   2  norm          3.3885        2.1243        .10228E-06    .69885E-04
   3  Prefactor     27.824        1.0391       -.11296E-06   -.22399E-03
   4  Prefactor     .10000E-03    11.815       -.83291E-06** at limit **
   5  Prefactor     .10009E-03    8.6412        .11685E-04** at limit **
   6  Prefactor     .10000E-03    6.8731        .13199E-05** at limit **
   7  Prefactor     .10274E-03    32.121        .10374E-03** at limit **
   8  norm          16.297        4.7227        .79740E-05    .77683E-03
   9  Prefactor     .10132E-03    16.546       -.62717E-04** at limit **
  10  norm          .10000E-03    2.4378        .46474E-07** at limit **
  11  Prefactor     .11062E-03    36.506        .47392E-04** at limit **
  12  norm          5.0363        1.6486       -.28133E-07   -.60824E-04
  13  norm         10000.0        9.2613        .71627E-04** at limit **
  14  Prefactor     .11472E-03    76.702       -.12088E-03** at limit **
  15  norm          .10002E-03    21.370       -.18591E-04** at limit **
  16  Prefactor     .10099E-03    12.105       -.18660E-04** at limit **
  17  norm          .10003E-03    3.3324        .31940E-05** at limit **
  18  norm          .10075E-03    20.186       -.73814E-04** at limit **
  19  Prefactor     .10005E-03    39.763        .93126E-04** at limit **
  20  Prefactor     .10000E-03    1.5940       -.36842E-06** at limit **
  21  norm          1.6387        .66528       -.74733E-07   -.14767E-03
  22  Prefactor    10000.0        .45625        .12221E-04   -.22169E-03
  23  norm          2.9813        2.0793        .13148E-06    .14597E-03
  24  Prefactor    10000.0        .29613        .23052E-05** at limit **
  25  norm         10000.0        74.354        .11506E-03** at limit **
  26  Prefactor     .10000E-03    5.7269       -.17232E-06** at limit **
  27  Prefactor    10000.0        .69486        .16560E-04   -.25628E-03
  28  Prefactor    10000.0        88.515        .21787E-03** at limit **
  29  Prefactor     623.69        1.0133       -.83669E-07    .75677E-03
  30  Prefactor    10000.0        1.3026        .24200E-04** at limit **
  31  Prefactor     .10000E-03    5.7785        .26199E-05** at limit **
  32  Prefactor     1.7560        1.8049        .93960E-07    .44825E-04
  33  norm          .12202E-03    46.181        .74321E-04** at limit **
  34  norm          .10000E-03    5.5721        .33994E-06** at limit **
  35  Prefactor     .10003E-03    3.5307       -.37130E-05** at limit **
  36  Prefactor     .10005E-03    8.2560       -.15648E-05** at limit **
  37  Prefactor     8.9972        1.0645       -.62250E-06   -.14801E-03
  38  Normalizat    .10000E-01    .51357E-01   -.72947E-06** at limit **
  39  Prefactor     .64881        .15135       -.92896E-06   -.10148E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.852
  norm       = 3.38853
  Prefactor  = 27.824
  Prefactor  = 0.0001
  Prefactor  = 0.000100085
  Prefactor  = 0.0001
  Prefactor  = 0.000102737
  norm       = 16.2968
  Prefactor  = 0.000101324
  norm       = 0.0001
  Prefactor  = 0.000110623
  norm       = 5.03634
  norm       = 10000
  Prefactor  = 0.000114719
  norm       = 0.000100024
  Prefactor  = 0.000100987
  norm       = 0.000100027
  norm       = 0.000100751
  Prefactor  = 0.000100047
  Prefactor  = 0.0001
  norm       = 1.63869
  Prefactor  = 9999.96
  norm       = 2.98131
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.000100001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 623.694
  Prefactor  = 10000
  Prefactor  = 0.000100002
  Prefactor  = 1.756
  norm       = 0.000122019
  norm       = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 0.000100054
  Prefactor  = 8.9972
  Normalizat = 0.01
  Prefactor  = 0.64881
 **********
 **   18 **HESSE 
 **********

 FCN=   1725.861     FROM HESSE     STATUS=OK           998 CALLS     7128 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.852        15.905        .29096E-02   -1.5019    
   2  norm          3.3885        2.1850        .54956E-02   -1.5340    
   3  Prefactor     27.824        19.005        .18989E-02   -1.4653    
   4  Prefactor     .10000E-03    11.814        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10009E-03    16.532        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.8746        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10274E-03    36.726        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.297        32.303        .24843E-02   -1.4900    
   9  Prefactor     .10132E-03    46.030        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.4011        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11062E-03    134.98        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.0363        1.6566        .44795E-02   -1.5259    
  13  norm         10000.0        1322.8        .10153E-01    1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .11472E-03    212.40        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10002E-03    21.402        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10099E-03    42.219        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10003E-03    6.5734        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10075E-03    48.015        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10005E-03    113.60        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.5908        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.6387        .66423        .45271E-02   -1.5452    
  22  Prefactor    10000.0        8649.6        .92235E-02    1.5668    
  23  norm          2.9813        2.1015        .58793E-02   -1.5363    
  24  Prefactor    10000.0        9878.3        .10723E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm         10000.0        208.75        .90712E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.6739        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor    10000.0        8557.3        .98900E-02    1.5698    
  28  Prefactor    10000.0        667.47        .90712E-02    1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     623.69        5939.0        .41352E-03   -1.0660    
  30  Prefactor    10000.0        1633.3        .10672E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    5.8015        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.7560        1.7919        .79069E-02   -1.5443    
  33  norm          .12202E-03    80.290        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          .10000E-03    5.5716        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .10003E-03    6.5594        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .10005E-03    16.626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     8.9972        19.997        .33417E-02   -1.5108    
  38  Normalizat    .10000E-01    .50597E-01    .13151       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Prefactor     .64881        .16784        .41716E-01   -1.0557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86197e-06
Minuit parameter uncertainties:
  1  15.9106
  2  2.18507
  3  19.0096
  4  4.29141e-05
  5  0.00237332
  6  9.22196e-06
  7  0.0200628
  8  32.3375
  9  0.0156244
  10  5.4091e-07
  11  0.0759065
  12  1.65664
  13  1.8081
  14  0.112225
  15  0.00142345
  16  0.0129178
  17  0.000848426
  18  0.0120216
  19  0.00463145
  20  3.56602e-06
  21  0.664232
  22  83.9296
  23  2.10156
  24  3.46608
  25  0.118148
  26  0.000162699
  27  10.35
  28  2.02086
  29  3754.09
  30  0.793254
  31  0.000210411
  32  1.79192
  33  0.0842053
  34  2.16045e-05
  35  0.000855941
  36  0.00189009
  37  20.0122
  38  3.83579e-08
  39  0.167969
Done.

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

Extracting fit parameters...

4FGL J1033.9+6050
   Spectrum: LogParabola
421         norm:  1.000e-04  8.484e-04  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:  6.488e-01  1.680e-01  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.000e-02  3.836e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 158.485 60.849
Photon Flux Upper Limit: 3.92e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.94e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991530/likelihoodResults_634608001_634867201_4FGL_J1033.9+6050_daily_bin1525.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) = 1725.86158067
delta logL = -0.000715638213478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1725.86086492
delta logL = 1.10554765342e-07

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.1181       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64882       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.

 FCN=   1725.861     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      248 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    371.69        .10552E-01** at limit **
   2  alpha         1.6126        3.1730        .16710        .12621E-07
   3  Normalizat    .10000E-01    .51961E-02    .56607E-02** at limit **
   4  Prefactor     .64881        .44099E-01    .22864E-03   -.32022E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.61257
  Normalizat = 0.01
  Prefactor  = 0.64881
 **********
 **   18 **HESSE 
 **********

 FCN=   1725.861     FROM HESSE     STATUS=OK            23 CALLS      271 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.2110        .11610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6126        3.2986        .66840E-02   -.36288    
   3  Normalizat    .10000E-01    .51336E-01    .11321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .64881        .13864        .91455E-05   -1.0557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.65501e-11
Minuit parameter uncertainties:
  1  0.000148374
  2  300.867
  3  1.35423e-08
  4  0.138717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991530': 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) = 1725.86086353
delta logL = 1.50042706082e-06

Extracting fit parameters...

4FGL J1033.9+6050
   Spectrum: LogParabola
421         norm:  1.000e-04  1.484e-04  1.000e-04  1.000e+04 ( 1.000e-12)
422        alpha:  1.613e+00  3.009e+02  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:  6.488e-01  1.387e-01  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.000e-02  1.354e-08  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/991530/cmap_HighResolution_634608001_634867201_4FGL_J1033.9+6050_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-04', job_status='DONE', photon_flux_upper_limit='3.92e-07', time_completed='2021-09-02 04:32:15.353382', job_id='991530', GAL2='0.65', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630582335.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='1.50e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1525' AND source_name='4FGL J1033.9+6050' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:32:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 991530: <4FGL_J1033.9+6050_daily_bin1525> in cluster <slac> Done

Job <4FGL_J1033.9+6050_daily_bin1525> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  2 04:15:54 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:16:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 04:16:19 2021
Terminated at Thu Sep  2 04:32:16 2021
Results reported at Thu Sep  2 04:32:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.9+6050_daily_bin1525 158.485 60.8493 634608001 634867201 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 :                                   681.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             263.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            982 sec.

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

