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


Performing analysis on: 4FGL_J1019.7+6321_daily_bin1215
RA = 154.926, Dec = 63.3527
tmin = 554256001, tmax = 554515201
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='829820', job_status='RUN', time_executed='2021-09-01 18:59:23.816621', time_epoch_executed='1630547963.82' WHERE source_name='4FGL J1019.7+6321' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/829820

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/829820/ft1_4FGL_J1019.7+6321_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/829820/ft2_4FGL_J1019.7+6321_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/829820/ft1_4FGL_J1019.7+6321_daily_bin1215.fits outfile=/scratch/kocevski/829820/ft1_filteredMKT_4FGL_J1019.7+6321_daily_bin1215.fits ra=154.926 dec=63.3527 rad=12.0 tmin=554256001.0 tmax=554515201.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 4.05
user 3.77
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/829820/ft2_4FGL_J1019.7+6321_daily_bin1215.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/829820/ft2_4FGL_J1019.7+6321_daily_bin1215.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/829820/ft1_filteredMKT_4FGL_J1019.7+6321_daily_bin1215.fits evtable="EVENTS" outfile="/scratch/kocevski/829820/ft1_filtered_4FGL_J1019.7+6321_daily_bin1215.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/829820/ft1_filtered_4FGL_J1019.7+6321_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/829820/ft2_4FGL_J1019.7+6321_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/829820/ltcube_554256001_554515201_4FGL_J1019.7+6321_daily_bin1215.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/829820/ft2_4FGL_J1019.7+6321_daily_bin1215.fits
.....................!
real 12.19
user 11.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/829820/ft1_filtered_4FGL_J1019.7+6321_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/829820/ft2_4FGL_J1019.7+6321_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/829820/ltcube_554256001_554515201_4FGL_J1019.7+6321_daily_bin1215.fits outfile=/scratch/kocevski/829820/expmap_554256001_554515201_4FGL_J1019.7+6321_daily_bin1215.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/829820/ltcube_554256001_554515201_4FGL_J1019.7+6321_daily_bin1215.fits
.....................!
real 191.70
user 186.05
sys 4.86

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

Setting source of interest to:
4FGL J1019.7+6321 @ 154.926 63.3527

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/829820/ft1_filtered_4FGL_J1019.7+6321_daily_bin1215.fits scfile=/scratch/kocevski/829820/ft2_4FGL_J1019.7+6321_daily_bin1215.fits outfile=/scratch/kocevski/829820/cmap_554256001_554515201_4FGL_J1019.7+6321_daily_bin1215.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=154.926 yref=63.3527 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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/829820/ft1_filtered_4FGL_J1019.7+6321_daily_bin1215.fits scfile=/scratch/kocevski/829820/ft2_4FGL_J1019.7+6321_daily_bin1215.fits outfile=/scratch/kocevski/829820/cmap_HighResolution_554256001_554515201_4FGL_J1019.7+6321_daily_bin1215.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=154.926 yref=63.3527 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/829820/ft1_filtered_4FGL_J1019.7+6321_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/829820/ft2_4FGL_J1019.7+6321_daily_bin1215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/829820/Model_4FGL_J1019.7+6321_daily_bin1215.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/829820/ft1_filtered_4FGL_J1019.7+6321_daily_bin1215.fits..!
real 13.43
user 12.14
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/829820/ft1_filtered_4FGL_J1019.7+6321_daily_bin1215.fits', '/scratch/kocevski/829820/ft2_4FGL_J1019.7+6321_daily_bin1215.fits', expMap='/scratch/kocevski/829820/expmap_554256001_554515201_4FGL_J1019.7+6321_daily_bin1215.fits', expCube='/scratch/kocevski/829820/ltcube_554256001_554515201_4FGL_J1019.7+6321_daily_bin1215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/829820/Model_4FGL_J1019.7+6321_daily_bin1215.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1019.7+6321'

4FGL J1019.7+6321
   Spectrum: LogParabola
405         norm:  3.570e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
406        alpha:  1.940e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
407         beta:  1.985e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
408           Eb:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/829820/ft1_filtered_4FGL_J1019.7+6321_daily_bin1215.fits
Spacecraft file(s): /scratch/kocevski/829820/ft2_4FGL_J1019.7+6321_daily_bin1215.fits
Exposure map: /scratch/kocevski/829820/expmap_554256001_554515201_4FGL_J1019.7+6321_daily_bin1215.fits
Exposure cube: /scratch/kocevski/829820/ltcube_554256001_554515201_4FGL_J1019.7+6321_daily_bin1215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/829820/Model_4FGL_J1019.7+6321_daily_bin1215.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) = 21.0712371437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    43.448       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10879E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    36 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    37 'Prefactor '    1.4048       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   21.03839     FROM MIGRAD    STATUS=CONVERGED    978 CALLS     5257 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6201.0       -.11058E-02** at limit **
   2  Prefactor     .10000E-03    704.87        .26521E-04** at limit **
   3  Prefactor     .10000E-03    638.75        .99446E-04** at limit **
   4  norm          .10000E-03    48.420        .10238E-04** at limit **
   5  Prefactor     .10000E-03    388.56        .24982E-03** at limit **
   6  Prefactor     .10000E-03    1842.7       -.88479E-03** at limit **
   7  Prefactor     .10000E-03    831.08       -.11496E-03** at limit **
   8  Prefactor     .10000E-03    364.67        .23701E-03** at limit **
   9  norm          .10000E-03    1098.0       -.38524E-03** at limit **
  10  Prefactor     .10000E-03    2079.1       -.98923E-03** at limit **
  11  norm          .10000E-03    41.885       -.15199E-04** at limit **
  12  norm          43.538        45.675       -.17907E-04   -.28281E-05
  13  Prefactor     .10000E-03    2117.1       -.10044E-02** at limit **
  14  norm          .10000E-03    1090.3       -.37825E-03** at limit **
  15  Prefactor     .10000E-03    217.58       -.46023E-04** at limit **
  16  Prefactor     .10000E-03    609.71        .13001E-03** at limit **
  17  Prefactor     .10000E-03    635.76        .10265E-03** at limit **
  18  norm          .10000E-03    102.61        .85448E-04** at limit **
  19  norm          .10000E-03    124.78        .11033E-05** at limit **
  20  Prefactor     .10000E-03    890.76       -.17979E-03** at limit **
  21  Prefactor     .10000E-03    7465.5       -.15501E-02** at limit **
  22  Prefactor     .10000E-03    81.677       -.81630E-04** at limit **
  23  norm          .10000E-03    11.781       -.11734E-07** at limit **
  24  norm          .10000E-03    40.719        .99880E-05** at limit **
  25  Prefactor     .10000E-03    8895.9       -.17370E-02** at limit **
  26  norm          .10000E-03    158.71       -.11575E-03** at limit **
  27  Prefactor     .10000E-03    94.695        .68925E-04** at limit **
  28  Prefactor     .10000E-03    7990.6       -.16356E-02** at limit **
  29  Prefactor     .10000E-03    1083.6       -.37203E-03** at limit **
  30  Prefactor     .10000E-03    421.48        .25509E-03** at limit **
  31  Prefactor     .10000E-03    1031.5       -.32291E-03** at limit **
  32  Prefactor     .10000E-03    641.38        .96622E-04** at limit **
  33  Prefactor     .10000E-03    197.80       -.92175E-04** at limit **
  34  norm          .10000E-03    625.21        .11386E-03** at limit **
  35  norm          .10000E-03    213.07       -.57470E-04** at limit **
  36  Normalizat    .10000E-01    1.2438       -.17964E-06** at limit **
  37  Prefactor     1.4013        1.3935        .73009E-05    .15153E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 43.538
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.40125
 **********
 **   18 **HESSE 
 **********

 FCN=   21.03839     FROM HESSE     STATUS=OK           817 CALLS     6074 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6201.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    704.87        .12179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    638.75        .11580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    48.420        .31562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    388.56        .89927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1842.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    831.07        .13254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    364.67        .87083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1098.0        .15307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2079.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    41.885        .29352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          43.538        45.674        .31430E-04   -1.4387    
  13  Prefactor     .10000E-03    2117.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1090.3        .15252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    217.58        .67097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    609.70        .11308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    635.75        .11552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    102.61        .45989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    124.78        .50733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    890.76        .13736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7465.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    81.677        .41015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    11.781        .15558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    40.718        .28940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8895.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    158.71        .57248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    94.694        .44173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7990.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1083.6        .15202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    421.47        .93711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    1031.5        .14818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    641.37        .11604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    197.80        .63946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          .10000E-03    625.20        .11454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          .10000E-03    213.07        .66392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Normalizat    .10000E-01    1.2436        .16327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     1.4013        1.3922        .18678E-03   -.80344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93125e-11
Minuit parameter uncertainties:
  1  2.68422e-05
  2  1.06666e-06
  3  5.76656e-06
  4  5.22888e-06
  5  7.54778e-05
  6  2.42785e-05
  7  3.17751e-05
  8  1.56625e-05
  9  5.47305e-06
  10  2.74242e-05
  11  4.44433e-08
  12  45.7106
  13  3.12429e-05
  14  3.96334e-05
  15  3.40634e-06
  16  5.28762e-06
  17  2.89222e-06
  18  1.39541e-06
  19  1.53641e-07
  20  2.22172e-05
  21  8.2561e-05
  22  9.16901e-06
  23  2.07347e-06
  24  2.54386e-06
  25  0.000136966
  26  9.48537e-07
  27  3.94977e-06
  28  0.000103946
  29  8.04314e-06
  30  3.55545e-06
  31  6.89197e-06
  32  2.35614e-06
  33  6.18814e-05
  34  1.82437e-06
  35  6.02749e-07
  36  2.02248e-07
  37  1.43252
Done.

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

Extracting fit parameters...

4FGL J1019.7+6321
   Spectrum: LogParabola
405         norm:  1.000e-04  3.963e-05  1.000e-04  1.000e+04 ( 1.000e-13)
406        alpha:  1.940e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
407         beta:  1.985e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
408           Eb:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  1.401e+00  1.433e+00  0.000e+00  1.000e+01 ( 1.000e+00)
757        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
758        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
755   Normalization:  1.000e-02  2.022e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.926 63.353
Photon Flux Upper Limit: 5.17e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/829820/likelihoodResults_554256001_554515201_4FGL_J1019.7+6321_daily_bin1215.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) = 21.038396129
delta logL = -4.20313609339e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 21.0383961219
delta logL = -4.19599838963e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96019E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9401       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4013       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+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=   21.03839     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      223 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10678E-03    9704.2        .15377E-01** at limit **
   2  alpha         1.6796        3.1410        .17015        .48739E-07
   3  Normalizat    .10000E-01    .34632E-01    .16327E-02** at limit **
   4  Prefactor     1.4012        .23359        .18678E-03    .37066E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000106776
  alpha      = 1.67962
  Normalizat = 0.01
  Prefactor  = 1.40125
 **********
 **   18 **HESSE 
 **********

 FCN=   21.03839     FROM HESSE     STATUS=NOT POSDEF    23 CALLS      246 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10678E-03    9322.8        .16645E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6796        2.9602        .68061E-02   -.33435    
   3  Normalizat    .10000E-01    .49247        .32653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4012        .87875        .74713E-05   -.80344    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.3265e-08
Minuit parameter uncertainties:
  1  2.25722
  2  47572.1
  3  2.04225e-07
  4  0.888423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/829820': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 21.0383919213
delta logL = 4.58815918591e-09

Extracting fit parameters...

4FGL J1019.7+6321
   Spectrum: LogParabola
405         norm:  1.068e-04  2.257e+00  1.000e-04  1.000e+04 ( 1.000e-13)
406        alpha:  1.680e+00  4.757e+04  0.000e+00  5.000e+00 ( 1.000e+00)
407         beta:  1.985e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
408           Eb:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  1.401e+00  8.884e-01  0.000e+00  1.000e+01 ( 1.000e+00)
757        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
758        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
755   Normalization:  1.000e-02  2.042e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.926 63.353

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/829820/cmap_HighResolution_554256001_554515201_4FGL_J1019.7+6321_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-03', job_status='DONE', photon_flux_upper_limit='5.17e-06', time_completed='2021-09-01 19:05:20.225054', job_id='829820', GAL2='1.40', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630548320.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='4.59e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1215' AND source_name='4FGL J1019.7+6321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:05:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 829820: <4FGL_J1019.7+6321_daily_bin1215> in cluster <slac> Done

Job <4FGL_J1019.7+6321_daily_bin1215> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 18:55:18 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:55:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 18:55:20 2021
Terminated at Wed Sep  1 19:05:20 2021
Results reported at Wed Sep  1 19:05:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+6321_daily_bin1215 154.926 63.3527 554256001 554515201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1019.7+6321 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   352.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            602 sec.

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

