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


Performing analysis on: 4FGL_J1033.9+6050_daily_bin1224
RA = 158.485, Dec = 60.8493
tmin = 556588801, tmax = 556848001
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='989938', job_status='RUN', time_executed='2021-09-02 04:10:44.431849', time_epoch_executed='1630581044.43' WHERE source_name='4FGL J1033.9+6050' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/989938

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/989938/ft1_4FGL_J1033.9+6050_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/989938/ft2_4FGL_J1033.9+6050_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/989938/ft1_4FGL_J1033.9+6050_daily_bin1224.fits outfile=/scratch/kocevski/989938/ft1_filteredMKT_4FGL_J1033.9+6050_daily_bin1224.fits ra=158.485 dec=60.8493 rad=12.0 tmin=556588801.0 tmax=556848001.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.71
user 3.37
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/989938/ft2_4FGL_J1033.9+6050_daily_bin1224.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/989938/ft1_filteredMKT_4FGL_J1033.9+6050_daily_bin1224.fits evtable="EVENTS" outfile="/scratch/kocevski/989938/ft1_filtered_4FGL_J1033.9+6050_daily_bin1224.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/989938/ft1_filtered_4FGL_J1033.9+6050_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/989938/ft2_4FGL_J1033.9+6050_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/989938/ltcube_556588801_556848001_4FGL_J1033.9+6050_daily_bin1224.fits outfile=/scratch/kocevski/989938/expmap_556588801_556848001_4FGL_J1033.9+6050_daily_bin1224.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/989938/ltcube_556588801_556848001_4FGL_J1033.9+6050_daily_bin1224.fits
.....................!
real 191.06
user 185.55
sys 4.90

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/989938/ft1_filtered_4FGL_J1033.9+6050_daily_bin1224.fits scfile=/scratch/kocevski/989938/ft2_4FGL_J1033.9+6050_daily_bin1224.fits outfile=/scratch/kocevski/989938/cmap_556588801_556848001_4FGL_J1033.9+6050_daily_bin1224.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/989938/ft1_filtered_4FGL_J1033.9+6050_daily_bin1224.fits scfile=/scratch/kocevski/989938/ft2_4FGL_J1033.9+6050_daily_bin1224.fits outfile=/scratch/kocevski/989938/cmap_HighResolution_556588801_556848001_4FGL_J1033.9+6050_daily_bin1224.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.432       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5347       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6701       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5246       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    14.357       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21532E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.118       1.0000         .10000E-03   10000.    
    17 'norm      '    .10189E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    185.51       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.4974       1.0000         .10000E-03   10000.    
    21 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .25553E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    387.25       1.0000         .10000E-03   10000.    
    25 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    50.462       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10609E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    .13044E-03   1.0000         .10000E-03   10000.    
    37 'Prefactor '    86.030       1.0000         .10000E-03   10000.    
    38 'Normalizat'    1.3128       1.0000         .10000E-01   10.000    
    39 'Prefactor '    .77543       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.

 FCN=   1046.122     FROM MIGRAD    STATUS=CONVERGED   1145 CALLS     8126 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.439        25.312        .44880E-06    .23105E-05
   2  norm          1.5350        2.1686       -.17235E-06   -.63870E-04
   3  Prefactor     .10000E-03    13.663        .91932E-07** at limit **
   4  Prefactor     .10000E-03    6.7659       -.20337E-06** at limit **
   5  Prefactor     .10000E-03    33.850       -.11266E-05** at limit **
   6  Prefactor     .10000E-03    19.786       -.31769E-05** at limit **
   7  Prefactor     .10000E-03    12.485       -.97686E-07** at limit **
   8  norm          .10000E-03    15.480       -.54442E-06** at limit **
   9  Prefactor     7.5387        536.54       -.13430E-04   -.32804E-05
  10  norm          2.5245        1.6810       -.12515E-06   -.53068E-04
  11  Prefactor     .10000E-03    9.2352       -.45329E-07** at limit **
  12  norm          .10000E-03    .86409        .14095E-06** at limit **
  13  norm          14.358        14.815       -.59584E-06   -.32434E-04
  14  Prefactor     .10000E-03    376.99       -.71227E-05** at limit **
  15  norm          .10000E-03    37.571        .13253E-06** at limit **
  16  Prefactor     35.101        62.794       -.28999E-05   -.53139E-06
  17  norm          .10000E-03    9.1573       -.52305E-06** at limit **
  18  norm          .10000E-03    5.9233        .42466E-07** at limit **
  19  Prefactor     185.82        471.15       -.40948E-05    .20091E-06
  20  Prefactor     9.5042        10.642       -.12180E-05   -.51282E-03
  21  norm          .10000E-03    1.8105        .78622E-06** at limit **
  22  Prefactor     .10000E-03    323.40        .42425E-07** at limit **
  23  norm          .10000E-03    2.2793        .10107E-05** at limit **
  24  Prefactor     387.46        619.34       -.34549E-06    .65728E-06
  25  norm          .10000E-03    8.3194        .12470E-05** at limit **
  26  Prefactor     .10000E-03    5.4042        .97860E-06** at limit **
  27  Prefactor     .10000E-03    173.34        .68771E-06** at limit **
  28  Prefactor     .10000E-03    40.929        .21737E-06** at limit **
  29  Prefactor     50.452        46.794       -.23030E-06   -.13243E-05
  30  Prefactor     .10000E-03    66.310       -.12106E-06** at limit **
  31  Prefactor     .10000E-03    33.240        .16055E-06** at limit **
  32  Prefactor     .10000E-03    4.2342        .10961E-06** at limit **
  33  norm          .10000E-03    32.981       -.14353E-07** at limit **
  34  norm          .10000E-03    17.648        .11593E-06** at limit **
  35  Prefactor     .10000E-03    50.315        .40510E-07** at limit **
  36  Prefactor     .10000E-03    97.090        .73144E-07** at limit **
  37  Prefactor     86.021        168.32       -.19739E-05    .34408E-05
  38  Normalizat    1.3132        .55821        .75915E-05   -.16386E-03
  39  Prefactor     .77500        .46565       -.97985E-05   -.35453E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4389
  norm       = 1.53503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.53873
  norm       = 2.52446
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.3577
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 35.1013
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 185.823
  Prefactor  = 9.50417
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 387.457
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 50.4517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 86.0207
  Normalizat = 1.31317
  Prefactor  = 0.775001
 **********
 **   18 **HESSE 
 **********

 FCN=   1046.122     FROM HESSE     STATUS=OK           918 CALLS     9044 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.439        25.273        .10929E-03   -1.4975    
   2  norm          1.5350        2.1318        .52454E-04   -1.5460    
   3  Prefactor     .10000E-03    13.685        .11681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7743        .82179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.700        .13992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.502        .11165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    15.478        .12432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.5387        543.59        .14480E-03   -1.5159    
  10  norm          2.5245        1.6835        .33104E-04   -1.5390    
  11  Prefactor     .10000E-03    9.2359        .96025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .90304        .58707E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.358        14.820        .52853E-03   -1.4950    
  14  Prefactor     .10000E-03    379.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    37.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.101        62.767        .67624E-04   -1.4522    
  17  norm          .10000E-03    9.1453        .94862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.9551        .76868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     185.82        475.78        .14822E-03   -1.2973    
  20  Prefactor     9.5042        10.193        .10241E-03   -1.5091    
  21  norm          .10000E-03    5.7445        .77287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    323.39        .21456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.3109        .47805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     387.46        618.71        .10366E-03   -1.1745    
  25  norm          .10000E-03    8.3362        .91070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.4362        .73516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    173.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    40.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     50.452        46.836        .56454E-04   -1.4286    
  30  Prefactor     .10000E-03    66.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    33.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    4.2420        .65017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          .10000E-03    32.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          .10000E-03    17.654        .13275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .10000E-03    50.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .10000E-03    97.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     86.021        171.18        .43313E-04   -1.3850    
  38  Normalizat    1.3132        .62673        .24235E-03   -.83174    
  39  Prefactor     .77500        .51115        .28705E-03   -1.0066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.06442e-10
Minuit parameter uncertainties:
  1  25.293
  2  2.13193
  3  2.51046e-06
  4  4.52427e-06
  5  1.6654e-05
  6  7.91448e-05
  7  7.93426e-06
  8  9.20539e-06
  9  129.27
  10  1.68353
  11  8.33512e-07
  12  3.13245e-06
  13  14.8235
  14  0.00264068
  15  6.75015e-05
  16  62.885
  17  3.07947e-05
  18  5.50082e-06
  19  486.216
  20  10.195
  21  8.36755e-05
  22  5.5549e-05
  23  1.21536e-05
  24  629.832
  25  3.37675e-05
  26  1.75761e-05
  27  0.000742342
  28  7.64661e-05
  29  46.87
  30  0.000168816
  31  1.33055e-05
  32  3.66685e-06
  33  2.44265e-05
  34  2.4955e-05
  35  4.20366e-07
  36  5.58153e-05
  37  172.176
  38  0.630414
  39  0.514319
Done.

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

Extracting fit parameters...

4FGL J1033.9+6050
   Spectrum: LogParabola
421         norm:  1.000e-04  3.079e-05  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:  7.750e-01  5.143e-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.313e+00  6.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/989938/likelihoodResults_556588801_556848001_4FGL_J1033.9+6050_daily_bin1224.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1046.12236956
delta logL = -0.000516155409059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1046.12185336
delta logL = 5.20813046023e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1572       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3132       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77499       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.

 FCN=   1046.122     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.563        .90712E-02** at limit **
   2  alpha         2.1795        3.5668        .41651       -.12566E-04
   3  Normalizat    1.3132        .42521        .54806E-01    .29648E-06
   4  Prefactor     .77499        .39911        .64889E-01    .19030E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.17948
  Normalizat = 1.31318
  Prefactor  = 0.774994
 **********
 **   18 **HESSE 
 **********

 FCN=   1046.122     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.5557        .96569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1795        3.4721        .50000       -.12856    
   3  Normalizat    1.3132        .48886        .24234E-03   -.83174    
   4  Prefactor     .77499        .45855        .28706E-03   -1.0066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8063e-10
Minuit parameter uncertainties:
  1  6.63747e-05
  2  2.4915
  3  0.490597
  4  0.460829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/989938': 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) = 1046.1218532
delta logL = 2.04513753488e-07

Extracting fit parameters...

4FGL J1033.9+6050
   Spectrum: LogParabola
421         norm:  1.000e-04  6.637e-05  1.000e-04  1.000e+04 ( 1.000e-12)
422        alpha:  2.179e+00  2.491e+00  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:  7.750e-01  4.608e-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.313e+00  4.906e-01  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/989938/cmap_HighResolution_556588801_556848001_4FGL_J1033.9+6050_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-04', job_status='DONE', photon_flux_upper_limit='2.60e-07', time_completed='2021-09-02 04:20:31.469643', job_id='989938', GAL2='0.77', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630581631.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1224' AND source_name='4FGL J1033.9+6050' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 04:20:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 989938: <4FGL_J1033.9+6050_daily_bin1224> in cluster <slac> Done

Job <4FGL_J1033.9+6050_daily_bin1224> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 04:10:24 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 04:10:31 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:10:31 2021
Terminated at Thu Sep  2 04:20:32 2021
Results reported at Thu Sep  2 04:20:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.9+6050_daily_bin1224 158.485 60.8493 556588801 556848001 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 :                                   582.27 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             347.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            608 sec.

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

