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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin503
RA = 154.942, Dec = 5.1905
tmin = 369705601, tmax = 369964801
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='818624', job_status='RUN', time_executed='2021-09-01 18:16:14.786481', time_epoch_executed='1630545374.79' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818624

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818624/ft1_4FGL_J1019.7+0511_daily_bin503.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818624/ft2_4FGL_J1019.7+0511_daily_bin503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818624/ft1_4FGL_J1019.7+0511_daily_bin503.fits outfile=/scratch/kocevski/818624/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin503.fits ra=154.942 dec=5.1905 rad=12.0 tmin=369705601.0 tmax=369964801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.87
user 3.58
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/818624/ft2_4FGL_J1019.7+0511_daily_bin503.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/818624/ft2_4FGL_J1019.7+0511_daily_bin503.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/818624/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin503.fits evtable="EVENTS" outfile="/scratch/kocevski/818624/ft1_filtered_4FGL_J1019.7+0511_daily_bin503.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818624/ft1_filtered_4FGL_J1019.7+0511_daily_bin503.fits" evtable="EVENTS" scfile=/scratch/kocevski/818624/ft2_4FGL_J1019.7+0511_daily_bin503.fits sctable="SC_DATA" outfile=/scratch/kocevski/818624/ltcube_369705601_369964801_4FGL_J1019.7+0511_daily_bin503.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/818624/ft2_4FGL_J1019.7+0511_daily_bin503.fits
.....................!
real 15.98
user 15.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818624/ft1_filtered_4FGL_J1019.7+0511_daily_bin503.fits evtable="EVENTS" scfile=/scratch/kocevski/818624/ft2_4FGL_J1019.7+0511_daily_bin503.fits sctable="SC_DATA" expcube=/scratch/kocevski/818624/ltcube_369705601_369964801_4FGL_J1019.7+0511_daily_bin503.fits outfile=/scratch/kocevski/818624/expmap_369705601_369964801_4FGL_J1019.7+0511_daily_bin503.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/818624/ltcube_369705601_369964801_4FGL_J1019.7+0511_daily_bin503.fits
.....................!
real 191.00
user 186.39
sys 4.01

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

Setting source of interest to:
4FGL J1019.7+0511 @ 154.942 5.1905

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/818624/ft1_filtered_4FGL_J1019.7+0511_daily_bin503.fits scfile=/scratch/kocevski/818624/ft2_4FGL_J1019.7+0511_daily_bin503.fits outfile=/scratch/kocevski/818624/cmap_369705601_369964801_4FGL_J1019.7+0511_daily_bin503.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.942 yref=5.1905 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/818624/ft1_filtered_4FGL_J1019.7+0511_daily_bin503.fits scfile=/scratch/kocevski/818624/ft2_4FGL_J1019.7+0511_daily_bin503.fits outfile=/scratch/kocevski/818624/cmap_HighResolution_369705601_369964801_4FGL_J1019.7+0511_daily_bin503.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.942 yref=5.1905 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.58
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818624/ft1_filtered_4FGL_J1019.7+0511_daily_bin503.fits evtable="EVENTS" scfile=/scratch/kocevski/818624/ft2_4FGL_J1019.7+0511_daily_bin503.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818624/Model_4FGL_J1019.7+0511_daily_bin503.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/818624/ft1_filtered_4FGL_J1019.7+0511_daily_bin503.fits.....................!
real 47.09
user 45.74
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/818624/ft1_filtered_4FGL_J1019.7+0511_daily_bin503.fits', '/scratch/kocevski/818624/ft2_4FGL_J1019.7+0511_daily_bin503.fits', expMap='/scratch/kocevski/818624/expmap_369705601_369964801_4FGL_J1019.7+0511_daily_bin503.fits', expCube='/scratch/kocevski/818624/ltcube_369705601_369964801_4FGL_J1019.7+0511_daily_bin503.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/818624/Model_4FGL_J1019.7+0511_daily_bin503.xml', optimizer='MINUIT')

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

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.246e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.997e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  3.923e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/818624/ft1_filtered_4FGL_J1019.7+0511_daily_bin503.fits
Spacecraft file(s): /scratch/kocevski/818624/ft2_4FGL_J1019.7+0511_daily_bin503.fits
Exposure map: /scratch/kocevski/818624/expmap_369705601_369964801_4FGL_J1019.7+0511_daily_bin503.fits
Exposure cube: /scratch/kocevski/818624/ltcube_369705601_369964801_4FGL_J1019.7+0511_daily_bin503.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/818624/Model_4FGL_J1019.7+0511_daily_bin503.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) = 4705.42242134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8716       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11490E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .47444E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10727E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20221       1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.638       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20248E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.735       1.0000         .10000E-03   10000.    
    11 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6705       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19547E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.6171       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5121       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4534       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .66766       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2295       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4705.409     FROM MIGRAD    STATUS=FAILED       795 CALLS     2455 TOTAL
                     EDM=   .82E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .91775        .94604E-03** at limit **
   2  norm          1.8713        .79007        .37930E-04    .13098E-03
   3  Prefactor     .10000E-03    5.1913        .15247E-02** at limit **
   4  Prefactor     .10000E-03    46.812        .12565    ** at limit **
   5  Prefactor     .10000E-03    14.881        .18142E-02** at limit **
   6  norm          .10000E-03    10.627        .18142E-02** at limit **
   7  Prefactor     .16233        258.56        .38195E-02    .87382E-03
   8  Prefactor     54.691        64.213        .54265E-04   -.46551E-04
   9  Prefactor     .10006E-03    128.13        .14688    ** at limit **
  10  Prefactor     21.758        20.677        .85916E-04   -.47292E-04
  11  norm          .10000E-03    .55741        .49603E-03** at limit **
  12  Prefactor     5.6722        7.6019        .84344E-03    .79633E-04
  13  Prefactor     .10000E-03    8.5630        .18811E-02** at limit **
  14  Prefactor     .10000E-03    10.376        .18142E-02** at limit **
  15  Prefactor     8.6120        9.1480        .13655E-03   -.18599E-03
  16  norm          1.5123        .61296        .32999E-04   -.62702E-04
  17  Prefactor     .10000E-03    8.4817        .18142E-02** at limit **
  18  Prefactor     8.3841        20.410        .13788E-03    .22263E-05
  19  Normalizat    .66764        .24154        .30178E-03   -.32963E-04
  20  Prefactor     1.2297        .20321        .20322E-03   -.18692E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4705.409     FROM SIMPLEX   STATUS=UNCHANGED   1029 CALLS     3484 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .91775        .12073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8713        .79007        .46307E-06   -1.5434    
   3  Prefactor     .10000E-03    5.1913        .32493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    46.812        .61910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.881        .53387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.627        .36896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .16233        258.56        .76387E-06   -1.5627    
   8  Prefactor     54.691        64.213        .43107E-06   -1.4228    
   9  Prefactor     .10006E-03    128.13        .75262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.758        20.677        .44629E-06   -1.4775    
  11  norm          .10000E-03    .55741        .94451E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.6722        7.6019        .45782E-06   -1.5232    
  13  Prefactor     .10000E-03    8.5630        .15497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.376        .27293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.6120        9.1480        .45322E-06   -1.5121    
  16  norm          1.5123        .61296        .46376E-06   -1.5462    
  17  Prefactor     .10000E-03    8.4817        .27867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.3841        20.410        .45420E-06   -1.5129    
  19  Normalizat    .66764        .24154        .31568E-06   -1.0518    
  20  Prefactor     1.2297        .20321        .25622E-06   -.85423    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4705.409     FROM MIGRAD    STATUS=CONVERGED    306 CALLS     3790 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .91904        .18921E-03** at limit **
   2  norm          1.8713        .79007        .15172E-05    .34602E-04
   3  Prefactor     .10000E-03    5.1915        .30495E-03** at limit **
   4  Prefactor     .10000E-03    46.019        .12713    ** at limit **
   5  Prefactor     .10000E-03    14.881        .36285E-03** at limit **
   6  norm          .10000E-03    10.628        .36285E-03** at limit **
   7  Prefactor     .16242        190.89        .76390E-03    .19243E-04
   8  Prefactor     54.691        64.207        .10853E-04    .12151E-04
   9  Prefactor     .10008E-03    98.738        .14621    ** at limit **
  10  Prefactor     21.758        20.089        .17183E-04    .27788E-04
  11  norm          .10000E-03    .55743        .99205E-04** at limit **
  12  Prefactor     5.6722        7.5996        .33738E-04    .15501E-04
  13  Prefactor     .10000E-03    8.6191        .37622E-03** at limit **
  14  Prefactor     .10000E-03    10.380        .36285E-03** at limit **
  15  Prefactor     8.6120        9.1460        .54621E-05   -.41627E-04
  16  norm          1.5123        .61290        .13199E-05   -.17270E-04
  17  Prefactor     .10000E-03    8.4878        .36285E-03** at limit **
  18  Prefactor     8.3841        20.409        .55151E-05    .16491E-06
  19  Normalizat    .66764        .24165        .12071E-04    .60275E-05
  20  Prefactor     1.2297        .20324        .40644E-04   -.24223E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.8713
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.162417
  Prefactor  = 54.6909
  Prefactor  = 0.000100082
  Prefactor  = 21.7584
  norm       = 0.0001
  Prefactor  = 5.6722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.61203
  norm       = 1.5123
  Prefactor  = 0.0001
  Prefactor  = 8.38408
  Normalizat = 0.667643
  Prefactor  = 1.22968
 **********
 **   18 **HESSE 
 **********

 FCN=   4705.409     FROM HESSE     STATUS=OK           293 CALLS     4083 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .91909        .37842E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8713        .78999        .36798E-06   -1.5434    
   3  Prefactor     .10000E-03    5.1915        .60989E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    46.245        .12670       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.881        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.628        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .16242        177.36        .30556E-04   -1.5627    
   8  Prefactor     54.691        64.150        .21706E-05   -1.4228    
   9  Prefactor     .10008E-03    93.324        .14636       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.758        19.985        .34366E-05   -1.4775    
  11  norm          .10000E-03    .55743        .19841E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.6722        7.5996        .13495E-05   -1.5232    
  13  Prefactor     .10000E-03    8.6214        .75244E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.381        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.6120        9.1443        .10924E-05   -1.5121    
  16  norm          1.5123        .61288        .36864E-06   -1.5462    
  17  Prefactor     .10000E-03    8.4881        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.3841        20.411        .55151E-05   -1.5129    
  19  Normalizat    .66764        .24147        .24142E-05   -1.0518    
  20  Prefactor     1.2297        .20315        .81288E-05   -.85423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.15018e-11
Minuit parameter uncertainties:
  1  1.57152e-06
  2  0.789994
  3  4.32494e-06
  4  0.000693982
  5  8.5718e-07
  6  1.06286e-05
  7  10.763
  8  64.2313
  9  0.00554739
  10  19.9909
  11  4.7649e-07
  12  7.60087
  13  5.2168e-05
  14  7.01181e-06
  15  9.1458
  16  0.612878
  17  5.79872e-06
  18  20.4275
  19  0.241851
  20  0.203282
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  2.176e+01  1.999e+01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.997e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  3.923e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  1.230e+00  2.033e-01  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.676e-01  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.50
Ra Dec: 154.942 5.191
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.32e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 2.12e-05

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) = 4704.06695031
delta logL = 1.34221793112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4703.94194609
delta logL = 1.46722216026

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.473       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1317       1.0000          .0000       10.000    
     3 'Normalizat'    .68524       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2256       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+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=   4703.942     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      242 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.485        37.177        .64619E-04   -.53484E-04
   2  Index         1.1320        .52973        .91930E-02   -.51449E-04
   3  Normalizat    .68546        .22353        .29816E-03   -.88759E-03
   4  Prefactor     1.2253        .20024        .20357E-03   -.11042E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.4852
  Index      = 1.13203
  Normalizat = 0.68546
  Prefactor  = 1.22535
 **********
 **   18 **HESSE 
 **********

 FCN=   4703.942     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.485        37.640        .12924E-04   -1.4466    
   2  Index         1.1320        .53632        .36772E-03   -.88449    
   3  Normalizat    .68546        .22368        .59631E-04   -1.0447    
   4  Prefactor     1.2253        .20038        .40714E-04   -.85555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62569e-09
Minuit parameter uncertainties:
  1  37.6637
  2  0.538917
  3  0.223978
  4  0.200506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818624': 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) = 4703.94194509
delta logL = 1.46722315812

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  3.849e+01  3.766e+01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.132e+00  5.389e-01  0.000e+00  1.000e+01 (-1.000e+00)
227        Scale:  3.923e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  1.225e+00  2.005e-01  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.855e-01  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.42
Ra Dec: 154.942 5.191
Photon Index (Free Index): 1.13 +/- 0.54
Photon Flux (Free Index): 1.11e-08 +/- 1.33e-08
Energy Flux (Free Index): 1.13e-04 +/- 1.29e-04

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/818624/cmap_HighResolution_369705601_369964801_4FGL_J1019.7+0511_daily_bin503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.32e-08', energy_flux2='1.13e-04', photon_flux_error='3.05e-08', dlogl='1.47e+00', energy_flux='2.31e-05', photon_flux2='1.11e-08', job_status='DONE', time_completed='2021-09-01 18:25:37.450445', photon_index_error2='0.54', photon_index2='1.13', ts='12.50', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='1.29e-04', EG='0.67', time_epoch_completed='1630545937.45', return_code='0', job_id='818624', GAL2='1.23', EG2='0.69', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='1.33e-08', ts2='15.42', photon_index='2.00' WHERE bin_id='503' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:25:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 818624: <4FGL_J1019.7+0511_daily_bin503> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin503> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 18:15:36 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:15:38 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:15:38 2021
Terminated at Wed Sep  1 18:25:39 2021
Results reported at Wed Sep  1 18:25:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin503 154.942 5.1905 369705601 369964801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1019.7+0511 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   561.57 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             335.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   599 sec.
    Turnaround time :                            603 sec.

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

