/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 86 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1019.7+0511_daily_bin49
RA = 154.942, Dec = 5.1905
tmin = 252028801, tmax = 252288001
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='816991', job_status='RUN', time_executed='2021-09-01 18:12:07.499130', time_epoch_executed='1630545127.5' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816991

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816991/ft1_4FGL_J1019.7+0511_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816991/ft2_4FGL_J1019.7+0511_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816991/ft1_4FGL_J1019.7+0511_daily_bin49.fits outfile=/scratch/kocevski/816991/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin49.fits ra=154.942 dec=5.1905 rad=12.0 tmin=252028801.0 tmax=252288001.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 1.44
user 1.26
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/816991/ft2_4FGL_J1019.7+0511_daily_bin49.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/816991/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin49.fits evtable="EVENTS" outfile="/scratch/kocevski/816991/ft1_filtered_4FGL_J1019.7+0511_daily_bin49.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/816991/ft1_filtered_4FGL_J1019.7+0511_daily_bin49.fits" evtable="EVENTS" scfile=/scratch/kocevski/816991/ft2_4FGL_J1019.7+0511_daily_bin49.fits sctable="SC_DATA" outfile=/scratch/kocevski/816991/ltcube_252028801_252288001_4FGL_J1019.7+0511_daily_bin49.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/816991/ft2_4FGL_J1019.7+0511_daily_bin49.fits
.....................!
real 16.61
user 16.22
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816991/ft1_filtered_4FGL_J1019.7+0511_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/816991/ft2_4FGL_J1019.7+0511_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/816991/ltcube_252028801_252288001_4FGL_J1019.7+0511_daily_bin49.fits outfile=/scratch/kocevski/816991/expmap_252028801_252288001_4FGL_J1019.7+0511_daily_bin49.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/816991/ltcube_252028801_252288001_4FGL_J1019.7+0511_daily_bin49.fits
.....................!
real 190.27
user 185.55
sys 4.29

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/816991/ft1_filtered_4FGL_J1019.7+0511_daily_bin49.fits scfile=/scratch/kocevski/816991/ft2_4FGL_J1019.7+0511_daily_bin49.fits outfile=/scratch/kocevski/816991/cmap_252028801_252288001_4FGL_J1019.7+0511_daily_bin49.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816991/ft1_filtered_4FGL_J1019.7+0511_daily_bin49.fits scfile=/scratch/kocevski/816991/ft2_4FGL_J1019.7+0511_daily_bin49.fits outfile=/scratch/kocevski/816991/cmap_HighResolution_252028801_252288001_4FGL_J1019.7+0511_daily_bin49.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/816991/ft1_filtered_4FGL_J1019.7+0511_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/816991/ft2_4FGL_J1019.7+0511_daily_bin49.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/816991/Model_4FGL_J1019.7+0511_daily_bin49.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/816991/ft1_filtered_4FGL_J1019.7+0511_daily_bin49.fits.....................!
real 82.36
user 80.65
sys 1.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/816991/ft1_filtered_4FGL_J1019.7+0511_daily_bin49.fits', '/scratch/kocevski/816991/ft2_4FGL_J1019.7+0511_daily_bin49.fits', expMap='/scratch/kocevski/816991/expmap_252028801_252288001_4FGL_J1019.7+0511_daily_bin49.fits', expCube='/scratch/kocevski/816991/ltcube_252028801_252288001_4FGL_J1019.7+0511_daily_bin49.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/816991/Model_4FGL_J1019.7+0511_daily_bin49.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/816991/ft1_filtered_4FGL_J1019.7+0511_daily_bin49.fits
Spacecraft file(s): /scratch/kocevski/816991/ft2_4FGL_J1019.7+0511_daily_bin49.fits
Exposure map: /scratch/kocevski/816991/expmap_252028801_252288001_4FGL_J1019.7+0511_daily_bin49.fits
Exposure cube: /scratch/kocevski/816991/ltcube_252028801_252288001_4FGL_J1019.7+0511_daily_bin49.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/816991/Model_4FGL_J1019.7+0511_daily_bin49.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) = 9069.3714499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.7290       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8830       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9962       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.146       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.706       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .67328E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .68230       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2187       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8779       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11394E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5701       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0067       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2795       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.920       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1739       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .79555       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=   9069.262     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     2690 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .60059        .10734E-02** at limit **
   2  norm          2.7290        .70272        .38231E-04   -.54181E-03
   3  Prefactor     6.8819        8.8789        .15292E-03    .13233E-04
   4  Prefactor     .10000E-03    16.321        .18142E-02** at limit **
   5  Prefactor     4.9952        32.889        .17991E-03    .82147E-05
   6  norm          .10000E-03    4.1229        .18142E-02** at limit **
   7  Prefactor     30.147        11.386        .72973E-04    .32168E-03
   8  Prefactor     19.704        25.098        .90226E-04    .34273E-04
   9  Prefactor     .10001E-03    43.255        .15016    ** at limit **
  10  Prefactor     .10000E-03    8.7659        .18142E-02** at limit **
  11  norm          .68209        .84049        .10126E-02    .66100E-02
  12  Prefactor     8.2189        5.4999        .13985E-03   -.17072E-04
  13  Prefactor     2.8779        2.1472        .11473E-03   -.32461E-03
  14  Prefactor     .10000E-03    9.8549        .36285E-03** at limit **
  15  Prefactor     1.5706        5.3148        .16964E-02    .11202E-02
  16  norm          2.0067        .74898        .36343E-04   -.15190E-02
  17  Prefactor     5.2793        12.159        .17493E-03   -.79939E-04
  18  Prefactor     21.910        18.379        .85552E-04    .67772E-04
  19  Normalizat    1.1739        .18984        .25246E-03    .46570E-03
  20  Prefactor     .79557        .14978        .25014E-03   -.43564E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 2.72898
  Prefactor  = 6.88189
  Prefactor  = 0.0001
  Prefactor  = 4.99523
  norm       = 0.0001
  Prefactor  = 30.1472
  Prefactor  = 19.7039
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.682086
  Prefactor  = 8.21893
  Prefactor  = 2.87789
  Prefactor  = 0.0001
  Prefactor  = 1.57063
  norm       = 2.0067
  Prefactor  = 5.27931
  Prefactor  = 21.9101
  Normalizat = 1.17388
  Prefactor  = 0.795569
 **********
 **   18 **HESSE 
 **********

 FCN=   9069.262     FROM HESSE     STATUS=OK           285 CALLS     2975 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .60230        .21468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7290        .70272        .15292E-05   -1.5378    
   3  Prefactor     6.8819        8.8788        .61170E-05   -1.5183    
   4  Prefactor     .10000E-03    16.324        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.9952        32.868        .71965E-05   -1.5261    
   6  norm          .10000E-03    4.1230        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.147        11.387        .14595E-04   -1.4609    
   8  Prefactor     19.704        25.096        .36090E-05   -1.4820    
   9  Prefactor     .10001E-03    43.245        .15019       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.7666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .68209        .83994        .20252E-03   -1.5543    
  12  Prefactor     8.2189        5.4990        .55938E-05   -1.5135    
  13  Prefactor     2.8779        2.1463        .45894E-05   -1.5369    
  14  Prefactor     .10000E-03    9.8555        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5706        5.3030        .33928E-03   -1.5457    
  16  norm          2.0067        .74853        .14537E-05   -1.5425    
  17  Prefactor     5.2793        12.145        .69971E-05   -1.5248    
  18  Prefactor     21.910        18.377        .34221E-05   -1.4771    
  19  Normalizat    1.1739        .18993        .50492E-04   -.87414    
  20  Prefactor     .79557        .14990        .50028E-04   -.99892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02994e-09
Minuit parameter uncertainties:
  1  4.49985e-05
  2  0.702722
  3  8.88045
  4  7.06567e-06
  5  25.647
  6  1.12943e-05
  7  11.3874
  8  25.1097
  9  0.000988692
  10  7.95672e-06
  11  0.839953
  12  5.49931
  13  2.14637
  14  5.79917e-05
  15  5.30459
  16  0.748537
  17  12.1505
  18  18.3816
  19  0.190037
  20  0.149978
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  7.957e-06  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:  7.956e-01  1.500e-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:  1.174e+00  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.942 5.191
Photon Flux Upper Limit: 4.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/816991/likelihoodResults_252028801_252288001_4FGL_J1019.7+0511_daily_bin49.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) = 9069.26269154
delta logL = -0.000543524838577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9069.26215213
delta logL = -4.11541259382e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13517E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9704       1.0000          .0000       10.000    
     3 'Normalizat'    1.1735       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79588       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.

 FCN=   9069.262     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8892        .90712E-02** at limit **
   2  Index         1.9475        8.8047        .50000        .19049E-04
   3  Normalizat    1.1739        .17666E-02    .57090E-01    .11778E-03
   4  Prefactor     .79558        .14778E-02    .43664E-01    .10079E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.94746
  Normalizat = 1.17387
  Prefactor  = 0.795575
 **********
 **   18 **HESSE 
 **********

 FCN=   9069.262     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .96E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9475        8.7716        .50000       -.65670    
   3  Normalizat    1.1739        .67462E-02    .25246E-03   -.87414    
   4  Prefactor     .79558        .56448E-02    .25014E-03   -.99892    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.63473e-08
Minuit parameter uncertainties:
  1  0.00027431
  2  67.6271
  3  0.0067462
  4  0.00564476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816991': 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) = 9069.26214775
delta logL = 2.63107722276e-07

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  2.743e-04  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.947e+00  6.763e+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:  7.956e-01  5.645e-03  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:  1.174e+00  6.746e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.942 5.191

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/816991/cmap_HighResolution_252028801_252288001_4FGL_J1019.7+0511_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-03', job_status='DONE', photon_flux_upper_limit='4.52e-08', time_completed='2021-09-01 18:24:22.511092', job_id='816991', GAL2='0.80', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630545862.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='49' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:24:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 816991: <4FGL_J1019.7+0511_daily_bin49> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin49> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:10:30 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:10:33 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:10:33 2021
Terminated at Wed Sep  1 18:24:25 2021
Results reported at Wed Sep  1 18:24:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin49 154.942 5.1905 252028801 252288001 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 :                                   735.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             331.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            835 sec.

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

