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


Performing analysis on: 4FGL_J0850.0+5108_monthly_bin89
RA = 132.513, Dec = 51.1414
tmin = 467683201, tmax = 470275201
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='513222', job_status='RUN', time_executed='2021-10-20 03:52:27.997789', time_epoch_executed='1634727148.0' WHERE source_name='4FGL J0850.0+5108' and cadence='monthly' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513222

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513222/ft1_4FGL_J0850.0+5108_monthly_bin89.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513222/ft2_4FGL_J0850.0+5108_monthly_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513222/ft1_4FGL_J0850.0+5108_monthly_bin89.fits outfile=/scratch/kocevski/513222/ft1_filteredMKT_4FGL_J0850.0+5108_monthly_bin89.fits ra=132.513 dec=51.1414 rad=12.0 tmin=467683201.0 tmax=470275201.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 30.43
user 29.49
sys 0.85

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/513222/ft2_4FGL_J0850.0+5108_monthly_bin89.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513222/ft2_4FGL_J0850.0+5108_monthly_bin89.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/513222/ft1_filteredMKT_4FGL_J0850.0+5108_monthly_bin89.fits evtable="EVENTS" outfile="/scratch/kocevski/513222/ft1_filtered_4FGL_J0850.0+5108_monthly_bin89.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.85
user 0.66
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513222/ft1_filtered_4FGL_J0850.0+5108_monthly_bin89.fits" evtable="EVENTS" scfile=/scratch/kocevski/513222/ft2_4FGL_J0850.0+5108_monthly_bin89.fits sctable="SC_DATA" outfile=/scratch/kocevski/513222/ltcube_467683201_470275201_4FGL_J0850.0+5108_monthly_bin89.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/513222/ft2_4FGL_J0850.0+5108_monthly_bin89.fits
.....................!
real 113.31
user 112.65
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513222/ft1_filtered_4FGL_J0850.0+5108_monthly_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/513222/ft2_4FGL_J0850.0+5108_monthly_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/513222/ltcube_467683201_470275201_4FGL_J0850.0+5108_monthly_bin89.fits outfile=/scratch/kocevski/513222/expmap_467683201_470275201_4FGL_J0850.0+5108_monthly_bin89.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/513222/ltcube_467683201_470275201_4FGL_J0850.0+5108_monthly_bin89.fits
.....................!
real 193.19
user 187.30
sys 5.50

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

Setting source of interest to:
4FGL J0850.0+5108 @ 132.513 51.1414

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/513222/ft1_filtered_4FGL_J0850.0+5108_monthly_bin89.fits scfile=/scratch/kocevski/513222/ft2_4FGL_J0850.0+5108_monthly_bin89.fits outfile=/scratch/kocevski/513222/cmap_467683201_470275201_4FGL_J0850.0+5108_monthly_bin89.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=132.513 yref=51.1414 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.78
user 0.60
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513222/ft1_filtered_4FGL_J0850.0+5108_monthly_bin89.fits scfile=/scratch/kocevski/513222/ft2_4FGL_J0850.0+5108_monthly_bin89.fits outfile=/scratch/kocevski/513222/cmap_HighResolution_467683201_470275201_4FGL_J0850.0+5108_monthly_bin89.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=132.513 yref=51.1414 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.79
user 0.63
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/513222/ft1_filtered_4FGL_J0850.0+5108_monthly_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/513222/ft2_4FGL_J0850.0+5108_monthly_bin89.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/513222/Model_4FGL_J0850.0+5108_monthly_bin89.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/513222/ft1_filtered_4FGL_J0850.0+5108_monthly_bin89.fits.....................!
real 673.58
user 671.05
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/513222/ft1_filtered_4FGL_J0850.0+5108_monthly_bin89.fits', '/scratch/kocevski/513222/ft2_4FGL_J0850.0+5108_monthly_bin89.fits', expMap='/scratch/kocevski/513222/expmap_467683201_470275201_4FGL_J0850.0+5108_monthly_bin89.fits', expCube='/scratch/kocevski/513222/ltcube_467683201_470275201_4FGL_J0850.0+5108_monthly_bin89.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/513222/Model_4FGL_J0850.0+5108_monthly_bin89.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0850.0+5108'

4FGL J0850.0+5108
   Spectrum: LogParabola
347         norm:  6.333e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.161e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
349         beta:  8.213e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.488e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/513222/ft1_filtered_4FGL_J0850.0+5108_monthly_bin89.fits
Spacecraft file(s): /scratch/kocevski/513222/ft2_4FGL_J0850.0+5108_monthly_bin89.fits
Exposure map: /scratch/kocevski/513222/expmap_467683201_470275201_4FGL_J0850.0+5108_monthly_bin89.fits
Exposure cube: /scratch/kocevski/513222/ltcube_467683201_470275201_4FGL_J0850.0+5108_monthly_bin89.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/513222/Model_4FGL_J0850.0+5108_monthly_bin89.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) = 85813.9336515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19097       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2179       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1192       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13577E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4192       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3509       1.0000         .10000E-03   10000.    
     9 'norm      '    2.6591       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1583       1.0000         .10000E-03   10000.    
    11 'norm      '    .97002       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24438E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5988       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7079       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4706       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1494       1.0000         .10000E-03   10000.    
    17 'norm      '    5.8019       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0429       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6246       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5528       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8558       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.4610       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14190E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.9593       1.0000         .10000E-03   10000.    
    25 'norm      '    2.3928       1.0000         .10000E-03   10000.    
    26 'norm      '    .63322       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.1540       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.0930       1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.8682       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.0308       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .15219E-02   1.0000         .10000E-03   10000.    
    32 'Prefactor '    8.4920       1.0000         .10000E-03   10000.    
    33 'norm      '    .72255E-01   1.0000         .10000E-03   10000.    
    34 'Prefactor '    25.077       1.0000         .10000E-03   10000.    
    35 'norm      '    1.1964       1.0000         .10000E-03   10000.    
    36 'norm      '    5.4327       1.0000         .10000E-03   10000.    
    37 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    38 'Normalizat'    .96979       1.0000         .10000E-01   10.000    
    39 'Prefactor '    1.0356       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   85813.06     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     4249 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19092        .15749        .36129E-07    .19542E-03
   2  Prefactor     .10000E-03    2.3114        .28253E-06** at limit **
   3  Prefactor     8.1793        1.2037        .67885E-08   -.73365E-03
   4  norm          1.1193        .52966        .65413E-07    .19822E-03
   5  Prefactor     .10000E-03    .82350       -.13613E-06** at limit **
   6  Prefactor     .10001E-03    19.631       -.23686E-05** at limit **
   7  Prefactor     3.4173        1.2600        .11362E-06   -.11090E-03
   8  norm          1.3508        .74778        .11478E-07   -.13113E-04
   9  norm          2.6592        .48712       -.75291E-08   -.15686E-03
  10  Prefactor     9.1558        1.5481       -.45160E-07    .20870E-02
  11  norm          .96991        .16361       -.49427E-07   -.19859E-02
  12  Prefactor     .10000E-03    3.6618        .86531E-07** at limit **
  13  Prefactor     6.5981        1.7215        .89229E-07    .24147E-03
  14  Prefactor     7.7097        1.1122       -.23153E-07   -.14500E-04
  15  Prefactor     4.4743        1.6461        .85827E-07   -.15967E-02
  16  Prefactor     3.1482        1.4013        .25782E-07   -.38342E-04
  17  norm          5.8001        1.4995        .16883E-07    .56892E-04
  18  norm          2.0428        1.2367       -.14889E-07   -.89263E-05
  19  Prefactor     7.6306        2.3009       -.28234E-06    .18531E-02
  20  Prefactor     4.5462        1.7953        .33168E-06    .19932E-02
  21  Prefactor     2.8558        .74538        .16409E-07    .54426E-05
  22  Prefactor     4.4704        1.8620        .79451E-07   -.18914E-02
  23  Prefactor     .10000E-03    4.1001       -.44858E-06** at limit **
  24  Prefactor     5.9594        1.1017        .16252E-07    .79474E-04
  25  norm          2.3929        .29513       -.16869E-07   -.14595E-03
  26  norm          .63328        .23032        .32543E-08    .17339E-04
  27  Prefactor     2.1542        1.6053        .15889E-06   -.95982E-04
  28  Prefactor     3.0928        .78777        .10725E-07    .42172E-04
  29  Prefactor     8.8715        1.3935       -.74047E-07   -.17406E-03
  30  Prefactor     4.0290        1.1018        .19864E-08   -.27102E-03
  31  Prefactor     .10006E-03    3.6304       -.39275E-06** at limit **
  32  Prefactor     8.5004        2.0545        .98342E-07    .22141E-02
  33  norm          .72368E-01    .30508        .12130E-07    .60842E-04
  34  Prefactor     25.106        7.5189       -.17688E-06    .42484E-03
  35  norm          1.1964        .15663        .52922E-08    .43357E-05
  36  norm          5.4386        1.0216       -.35089E-07    .24279E-03
  37  Prefactor     .10000E-03    .95583        .84686E-07** at limit **
  38  Normalizat    .96970        .63625E-01   -.41154E-06   -.26480E-03
  39  Prefactor     1.0356        .53537E-01    .31568E-07   -.26352E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.190925
  Prefactor  = 0.0001
  Prefactor  = 8.17927
  norm       = 1.11932
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 3.41732
  norm       = 1.35077
  norm       = 2.65921
  Prefactor  = 9.15578
  norm       = 0.969913
  Prefactor  = 0.0001
  Prefactor  = 6.59812
  Prefactor  = 7.70969
  Prefactor  = 4.47435
  Prefactor  = 3.14821
  norm       = 5.80011
  norm       = 2.04283
  Prefactor  = 7.6306
  Prefactor  = 4.54624
  Prefactor  = 2.85576
  Prefactor  = 4.47043
  Prefactor  = 0.0001
  Prefactor  = 5.95936
  norm       = 2.39293
  norm       = 0.633277
  Prefactor  = 2.15423
  Prefactor  = 3.0928
  Prefactor  = 8.87148
  Prefactor  = 4.02896
  Prefactor  = 0.000100063
  Prefactor  = 8.50037
  norm       = 0.0723681
  Prefactor  = 25.1057
  norm       = 1.19635
  norm       = 5.43861
  Prefactor  = 0.0001
  Normalizat = 0.969701
  Prefactor  = 1.03564
 **********
 **   18 **HESSE 
 **********

 FCN=   85813.06     FROM HESSE     STATUS=OK          1064 CALLS     5313 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19092        .15275        .24442E-01   -1.5621    
   2  Prefactor     .10000E-03    2.2407        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1793        4.4569        .34963E-02   -1.5136    
   4  norm          1.1193        .53203        .11107E-01   -1.5496    
   5  Prefactor     .10000E-03    .34515        .68844E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    20.896        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4173        3.0648        .54691E-02   -1.5338    
   8  norm          1.3508        .75510        .94101E-02   -1.5476    
   9  norm          2.6592        .48802        .62490E-02   -1.5382    
  10  Prefactor     9.1558        2.4802        .33109E-02   -1.5103    
  11  norm          .96991        .16722        .10631E-01   -1.5511    
  12  Prefactor     .10000E-03    .80818        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.5981        1.7548        .39055E-02   -1.5194    
  14  Prefactor     7.7097        7.4898        .36110E-02   -1.5153    
  15  Prefactor     4.4743        2.5436        .47609E-02   -1.5285    
  16  Prefactor     3.1482        1.4086        .57102E-02   -1.5353    
  17  norm          5.8001        1.5041        .41684E-02   -1.5226    
  18  norm          2.0428        1.2504        .72326E-02   -1.5422    
  19  Prefactor     7.6306        3.1468        .36308E-02   -1.5155    
  20  Prefactor     4.5462        1.9185        .47166E-02   -1.5281    
  21  Prefactor     2.8558        .74878        .60144E-02   -1.5370    
  22  Prefactor     4.4704        5.4832        .47661E-02   -1.5285    
  23  Prefactor     .10000E-03    4.1745        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.9594        1.1054        .41123E-02   -1.5220    
  25  norm          2.3929        .26803        .66187E-02   -1.5399    
  26  norm          .63328        .27058        .19226E-01   -1.5549    
  27  Prefactor     2.1542        1.4533        .70180E-03   -1.5414    
  28  Prefactor     3.0928        .79123        .57649E-02   -1.5356    
  29  Prefactor     8.8715        2.8460        .33649E-02   -1.5112    
  30  Prefactor     4.0290        1.1169        .50213E-02   -1.5306    
  31  Prefactor     .10006E-03    1.3864        .10230       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     8.5004        2.2783        .34390E-02   -1.5125    
  33  norm          .72368E-01    .32995        .93781E-01   -1.5654    
  34  Prefactor     25.106        8.0682        .19998E-02   -1.4705    
  35  norm          1.1964        .15704        .91755E-02   -1.5489    
  36  norm          5.4386        3.3217        .43100E-02   -1.5242    
  37  Prefactor     .10000E-03    .30196        .55075E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Normalizat    .96970        .58352E-01    .45787E-01   -.94053    
  39  Prefactor     1.0356        .47519E-01    .40839E-01   -.91551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68966e-07
Minuit parameter uncertainties:
  1  0.152753
  2  8.23566e-06
  3  4.45709
  4  0.532036
  5  2.25732e-06
  6  0.00065312
  7  3.06492
  8  0.755109
  9  0.488025
  10  2.48019
  11  0.167216
  12  4.16086e-06
  13  1.75483
  14  7.49068
  15  2.54369
  16  1.4086
  17  1.50407
  18  1.25045
  19  3.14682
  20  1.91849
  21  0.748784
  22  5.48384
  23  1.52223e-05
  24  1.10543
  25  0.268034
  26  0.270583
  27  1.45332
  28  0.791235
  29  2.84609
  30  1.11694
  31  0.000590668
  32  2.27828
  33  0.308839
  34  8.0686
  35  0.157044
  36  3.32181
  37  1.89529e-06
  38  0.0583555
  39  0.0475212
Done.

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

Extracting fit parameters...

4FGL J0850.0+5108
   Spectrum: LogParabola
347         norm:  2.043e+00  1.250e+00  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.161e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
349         beta:  8.213e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.488e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
705    Prefactor:  1.036e+00  4.752e-02  0.000e+00  1.000e+01 ( 1.000e+00)
706        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
707        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
704   Normalization:  9.697e-01  5.836e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.32
Ra Dec: 132.513 51.141
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 8.72e-09 +/- 5.33e-09
Energy Flux (Fixed Index): 3.65e-06 +/- 2.23e-06

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) = 85812.5865499
delta logL = 0.47098746548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 85812.5184462
delta logL = 0.539091245126

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3841       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6371       1.0000          .0000       5.0000    
     3 'Normalizat'    .97414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0346       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   85812.52     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3799        .96515        .92442E-02    .26729E-02
   2  alpha         1.6356        .29715        .44783       -.43344E-03
   3  Normalizat    .97414        .50884E-01    .45842E-01    .25889E-03
   4  Prefactor     1.0346        .46034E-01    .40910E-01    .15446E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.37992
  alpha      = 1.63563
  Normalizat = 0.974143
  Prefactor  = 1.03461
 **********
 **   18 **HESSE 
 **********

 FCN=   85812.52     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3799        1.3501        .23427E-03   -1.5473    
   2  alpha         1.6356        .50325        .36289E-01   -.35304    
   3  Normalizat    .97414        .56674E-01    .28529E-03   -.93902    
   4  Prefactor     1.0346        .51284E-01    .25003E-03   -.91585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51498e-07
Minuit parameter uncertainties:
  1  1.35009
  2  0.50719
  3  0.056678
  4  0.0512861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513222': 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) = 85812.5184423
delta logL = 0.539095136948

Extracting fit parameters...

4FGL J0850.0+5108
   Spectrum: LogParabola
347         norm:  1.380e+00  1.350e+00  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  1.636e+00  5.072e-01  0.000e+00  5.000e+00 ( 1.000e+00)
349         beta:  8.213e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.488e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
705    Prefactor:  1.035e+00  5.129e-02  0.000e+00  1.000e+01 ( 1.000e+00)
706        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
707        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
704   Normalization:  9.741e-01  5.668e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.39
Ra Dec: 132.513 51.141
Photon Index (Free Index): 1.64 +/- 0.51
Photon Flux (Free Index): 3.95e-09 +/- 4.59e-09
Energy Flux (Free Index): 4.44e-06 +/- 3.35e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/513222/cmap_HighResolution_467683201_470275201_4FGL_J0850.0+5108_monthly_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.72e-09', energy_flux2='4.44e-06', photon_flux_error='5.33e-09', dlogl='5.39e-01', energy_flux='3.65e-06', photon_flux2='3.95e-09', job_status='DONE', time_completed='2021-10-20 06:37:02.617990', photon_index_error2='0.51', photon_index2='1.64', ts='6.32', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='3.35e-06', EG='0.97', time_epoch_completed='1634737022.62', return_code='0', job_id='513222', GAL2='1.03', EG2='0.97', return_code2='0', energy_flux_error='2.23e-06', photon_flux_error2='4.59e-09', ts2='7.39', photon_index='2.16' WHERE bin_id='89' AND source_name='4FGL J0850.0+5108' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Wed Oct 20 06:37:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 513222: <4FGL_J0850.0+5108_monthly_bin89> in cluster <slac> Done

Job <4FGL_J0850.0+5108_monthly_bin89> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Oct 20 03:45:17 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 20 03:50:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 20 03:50:14 2021
Terminated at Wed Oct 20 06:37:03 2021
Results reported at Wed Oct 20 06:37:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0850.0+5108_monthly_bin89 132.513 51.1414 467683201 470275201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0850.0+5108 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9627.00 sec.
    Max Memory :                                 631 MB
    Average Memory :                             430.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10009 sec.
    Turnaround time :                            10306 sec.

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

