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


Performing analysis on: 4FGL_J1019.7+6321_daily_bin769
RA = 154.926, Dec = 63.3527
tmin = 438652801, tmax = 438912001
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='825921', job_status='RUN', time_executed='2021-09-01 18:41:00.135520', time_epoch_executed='1630546860.14' WHERE source_name='4FGL J1019.7+6321' and cadence='daily' and bin_id='769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/825921

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/825921/ft1_4FGL_J1019.7+6321_daily_bin769.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/825921/ft2_4FGL_J1019.7+6321_daily_bin769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/825921/ft1_4FGL_J1019.7+6321_daily_bin769.fits outfile=/scratch/kocevski/825921/ft1_filteredMKT_4FGL_J1019.7+6321_daily_bin769.fits ra=154.926 dec=63.3527 rad=12.0 tmin=438652801.0 tmax=438912001.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 7.55
user 6.15
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/825921/ft2_4FGL_J1019.7+6321_daily_bin769.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/825921/ft1_filteredMKT_4FGL_J1019.7+6321_daily_bin769.fits evtable="EVENTS" outfile="/scratch/kocevski/825921/ft1_filtered_4FGL_J1019.7+6321_daily_bin769.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/825921/ft1_filtered_4FGL_J1019.7+6321_daily_bin769.fits" evtable="EVENTS" scfile=/scratch/kocevski/825921/ft2_4FGL_J1019.7+6321_daily_bin769.fits sctable="SC_DATA" outfile=/scratch/kocevski/825921/ltcube_438652801_438912001_4FGL_J1019.7+6321_daily_bin769.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/825921/ft2_4FGL_J1019.7+6321_daily_bin769.fits
.....................!
real 12.35
user 11.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/825921/ft1_filtered_4FGL_J1019.7+6321_daily_bin769.fits evtable="EVENTS" scfile=/scratch/kocevski/825921/ft2_4FGL_J1019.7+6321_daily_bin769.fits sctable="SC_DATA" expcube=/scratch/kocevski/825921/ltcube_438652801_438912001_4FGL_J1019.7+6321_daily_bin769.fits outfile=/scratch/kocevski/825921/expmap_438652801_438912001_4FGL_J1019.7+6321_daily_bin769.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/825921/ltcube_438652801_438912001_4FGL_J1019.7+6321_daily_bin769.fits
.....................!
real 190.90
user 186.08
sys 4.40

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/825921/ft1_filtered_4FGL_J1019.7+6321_daily_bin769.fits scfile=/scratch/kocevski/825921/ft2_4FGL_J1019.7+6321_daily_bin769.fits outfile=/scratch/kocevski/825921/cmap_438652801_438912001_4FGL_J1019.7+6321_daily_bin769.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/825921/ft1_filtered_4FGL_J1019.7+6321_daily_bin769.fits scfile=/scratch/kocevski/825921/ft2_4FGL_J1019.7+6321_daily_bin769.fits outfile=/scratch/kocevski/825921/cmap_HighResolution_438652801_438912001_4FGL_J1019.7+6321_daily_bin769.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/825921/ft1_filtered_4FGL_J1019.7+6321_daily_bin769.fits evtable="EVENTS" scfile=/scratch/kocevski/825921/ft2_4FGL_J1019.7+6321_daily_bin769.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/825921/Model_4FGL_J1019.7+6321_daily_bin769.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/825921/ft1_filtered_4FGL_J1019.7+6321_daily_bin769.fits......................!
real 32.76
user 31.44
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/825921/ft1_filtered_4FGL_J1019.7+6321_daily_bin769.fits', '/scratch/kocevski/825921/ft2_4FGL_J1019.7+6321_daily_bin769.fits', expMap='/scratch/kocevski/825921/expmap_438652801_438912001_4FGL_J1019.7+6321_daily_bin769.fits', expCube='/scratch/kocevski/825921/ltcube_438652801_438912001_4FGL_J1019.7+6321_daily_bin769.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/825921/Model_4FGL_J1019.7+6321_daily_bin769.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/825921/ft1_filtered_4FGL_J1019.7+6321_daily_bin769.fits
Spacecraft file(s): /scratch/kocevski/825921/ft2_4FGL_J1019.7+6321_daily_bin769.fits
Exposure map: /scratch/kocevski/825921/expmap_438652801_438912001_4FGL_J1019.7+6321_daily_bin769.fits
Exposure cube: /scratch/kocevski/825921/ltcube_438652801_438912001_4FGL_J1019.7+6321_daily_bin769.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/825921/Model_4FGL_J1019.7+6321_daily_bin769.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) = 2348.81335851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10934E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0063       1.0000         .10000E-03   10000.    
     4 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0766       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10610E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.681       1.0000         .10000E-03   10000.    
     9 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    79.683       1.0000         .10000E-03   10000.    
    11 'norm      '    2.9851       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.066       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0813       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.906       1.0000         .10000E-03   10000.    
    18 'norm      '    9.2263       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10469E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    28.976       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    125.44       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .81705       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    36 'Normalizat'    .50417       1.0000         .10000E-01   10.000    
    37 'Prefactor '    1.0772       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=   2348.611     FROM MIGRAD    STATUS=CONVERGED   1068 CALLS     5616 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.191        .22043E-07** at limit **
   2  Prefactor     .10000E-03    116.56        .47733E-04** at limit **
   3  Prefactor     7.0047        14.517       -.37478E-05   -.80497E-04
   4  norm          .10000E-03    .81378       -.21904E-06** at limit **
   5  Prefactor     .10000E-03    9.3508       -.15233E-08** at limit **
   6  Prefactor     7.0781        9.0241        .22924E-05   -.29872E-04
   7  Prefactor     .10000E-03    44.584        .84617E-06** at limit **
   8  Prefactor     34.689        23.260        .75432E-05    .21907E-04
   9  norm          .10000E-03    6.4029        .29196E-06** at limit **
  10  Prefactor     79.597        87.179       -.55726E-04   -.20861E-05
  11  norm          2.9857        1.3625        .60434E-06    .21100E-03
  12  norm          .10000E-03    .73482       -.12529E-07** at limit **
  13  Prefactor     36.060        63.926       -.17761E-05    .59106E-05
  14  norm          .10000E-03    18.173       -.38076E-07** at limit **
  15  Prefactor     9.0834        13.641       -.72800E-06   -.32335E-03
  16  Prefactor     .10000E-03    39.718        .21542E-05** at limit **
  17  Prefactor     45.894        51.896        .70224E-06   -.11654E-04
  18  norm          9.2286        7.9800       -.18374E-05   -.28844E-04
  19  norm          .10000E-03    1.0367       -.39784E-08** at limit **
  20  Prefactor     .10000E-03    42.910        .48289E-05** at limit **
  21  Prefactor     .10000E-03    472.55       -.28617E-05** at limit **
  22  Prefactor     .10000E-03    4.3520        .67878E-07** at limit **
  23  norm          .10000E-03    .54368        .77468E-07** at limit **
  24  norm          .10000E-03    9.0298        .67044E-06** at limit **
  25  Prefactor     .10000E-03    104.76       -.41182E-04** at limit **
  26  norm          .10000E-03    2.2732        .26419E-07** at limit **
  27  Prefactor     28.941        21.097       -.56115E-05   -.53426E-04
  28  Prefactor     .10000E-03    45.919       -.24280E-05** at limit **
  29  Prefactor     125.42        65.278       -.45413E-05    .15415E-03
  30  Prefactor     .80179        13.615       -.27892E-05    .17524E-03
  31  Prefactor     .10000E-03    29.800        .77181E-05** at limit **
  32  Prefactor     .10000E-03    32.005       -.11866E-04** at limit **
  33  Prefactor     .10000E-03    5.4451        .73471E-07** at limit **
  34  norm          .10000E-03    7.2164       -.20093E-07** at limit **
  35  norm          .10000E-03    2.9318       -.56501E-07** at limit **
  36  Normalizat    .50425        .33153        .24190E-04   -.14554E-04
  37  Prefactor     1.0770        .28049       -.65716E-05    .17376E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 7.00469
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.07814
  Prefactor  = 0.000100002
  Prefactor  = 34.6886
  norm       = 0.0001
  Prefactor  = 79.5969
  norm       = 2.98566
  norm       = 0.0001
  Prefactor  = 36.0602
  norm       = 0.0001
  Prefactor  = 9.08345
  Prefactor  = 0.0001
  Prefactor  = 45.8939
  norm       = 9.2286
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.9412
  Prefactor  = 0.0001
  Prefactor  = 125.424
  Prefactor  = 0.801793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.504248
  Prefactor  = 1.07701
 **********
 **   18 **HESSE 
 **********

 FCN=   2348.611     FROM HESSE     STATUS=OK           843 CALLS     6459 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.191        .17194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    117.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.0047        14.318        .15156E-03   -1.5179    
   4  norm          .10000E-03    1.0174        .82497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.3550        .14475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0781        9.0709        .15080E-03   -1.5176    
   7  Prefactor     .10000E-03    44.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     34.689        23.071        .68048E-04   -1.4529    
   9  norm          .10000E-03    6.4047        .11978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     79.597        87.335        .44991E-04   -1.3921    
  11  norm          2.9857        1.3613        .34660E-04   -1.5362    
  12  norm          .10000E-03    .73645        .40566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     36.060        64.092        .66733E-04   -1.4506    
  14  norm          .10000E-03    18.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.0834        13.643        .66499E-03   -1.5105    
  16  Prefactor     .10000E-03    39.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     45.894        52.612        .59177E-04   -1.4352    
  18  norm          9.2286        8.0825        .96387E-04   -1.5100    
  19  norm          .10000E-03    1.0386        .48186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    42.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    472.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.3805        .98712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .54776        .34834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    9.0468        .14120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    104.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.2894        .71313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     28.941        20.955        .74427E-04   -1.4632    
  28  Prefactor     .10000E-03    45.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     125.42        65.625        .35941E-04   -1.3463    
  30  Prefactor     .80179        69.144        .31583E-02   -1.5529    
  31  Prefactor     .10000E-03    29.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    32.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    5.4522        .11042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          .10000E-03    7.2167        .12716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          .10000E-03    2.9334        .81044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Normalizat    .50425        .36458        .33555E-03   -1.1222    
  37  Prefactor     1.0770        .31136        .23008E-03   -.90205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2552e-09
Minuit parameter uncertainties:
  1  6.64609e-06
  2  0.00148859
  3  14.3254
  4  2.13107e-05
  5  1.76148e-05
  6  9.07271
  7  0.000556589
  8  23.0772
  9  7.29685e-05
  10  87.4757
  11  1.36136
  12  7.44426e-07
  13  64.2143
  14  5.4987e-06
  15  13.6474
  16  2.45789e-05
  17  52.6656
  18  8.08347
  19  5.038e-07
  20  1.91158e-05
  21  0.000142553
  22  1.56891e-05
  23  5.87502e-06
  24  0.000220523
  25  3.71356e-05
  26  2.90625e-06
  27  20.9607
  28  6.036e-06
  29  65.663
  30  14.9084
  31  5.33466e-05
  32  1.37083e-05
  33  1.84876e-05
  34  4.71216e-06
  35  7.59716e-06
  36  0.366322
  37  0.311888
Done.

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

Extracting fit parameters...

4FGL J1019.7+6321
   Spectrum: LogParabola
405         norm:  1.000e-04  5.499e-06  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.077e+00  3.119e-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:  5.042e-01  3.663e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.926 63.353
Photon Flux Upper Limit: 8.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/825921/likelihoodResults_438652801_438912001_4FGL_J1019.7+6321_daily_bin769.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) = 2348.61123344
delta logL = -0.000250523064551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2348.61098832
delta logL = -5.40083783562e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10600E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9039       1.0000          .0000       5.0000    
     3 'Normalizat'    .50434       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0769       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=   2348.611     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      282 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    880.46        .12410E-01** at limit **
   2  alpha         1.4648        3.8837        .16741        .43225E-07
   3  Normalizat    .50424        .47078E-01    .33553E-03   -.15055E-02
   4  Prefactor     1.0770        .46304E-01    .23008E-03   -.21848E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.46476
  Normalizat = 0.504244
  Prefactor  = 1.077
 **********
 **   18 **HESSE 
 **********

 FCN=   2348.611     FROM HESSE     STATUS=OK            23 CALLS      305 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    21.418        .21751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4648        3.1976        .66963E-02   -.42695    
   3  Normalizat    .50424        .29420        .67106E-04   -1.1222    
   4  Prefactor     1.0770        .28983        .46017E-04   -.90205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2303e-08
Minuit parameter uncertainties:
  1  9.78523e-06
  2  560.759
  3  0.295114
  4  0.29025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/825921': 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) = 2348.61098255
delta logL = 3.76105617761e-07

Extracting fit parameters...

4FGL J1019.7+6321
   Spectrum: LogParabola
405         norm:  1.000e-04  9.785e-06  1.000e-04  1.000e+04 ( 1.000e-13)
406        alpha:  1.465e+00  5.608e+02  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.077e+00  2.902e-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:  5.042e-01  2.951e-01  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/825921/cmap_HighResolution_438652801_438912001_4FGL_J1019.7+6321_daily_bin769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-05', job_status='DONE', photon_flux_upper_limit='8.61e-08', time_completed='2021-09-01 18:53:06.733109', job_id='825921', GAL2='1.08', fit_tolerance='1e-08', EG2='0.50', EG='0.50', time_epoch_completed='1630547586.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='769' AND source_name='4FGL J1019.7+6321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:53:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 825921: <4FGL_J1019.7+6321_daily_bin769> in cluster <slac> Done

Job <4FGL_J1019.7+6321_daily_bin769> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 18:40:44 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:40:45 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:40:45 2021
Terminated at Wed Sep  1 18:53:07 2021
Results reported at Wed Sep  1 18:53:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+6321_daily_bin769 154.926 63.3527 438652801 438912001 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 :                                   722.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             331.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            743 sec.

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

