/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 209 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 = 7406
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1019.7+0511_daily_bin202
RA = 154.942, Dec = 5.1905
tmin = 291686401, tmax = 291945601
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='817212', job_status='RUN', time_executed='2021-09-01 18:14:32.546535', time_epoch_executed='1630545272.55' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817212

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817212/ft1_4FGL_J1019.7+0511_daily_bin202.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817212/ft2_4FGL_J1019.7+0511_daily_bin202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817212/ft1_4FGL_J1019.7+0511_daily_bin202.fits outfile=/scratch/kocevski/817212/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin202.fits ra=154.942 dec=5.1905 rad=12.0 tmin=291686401.0 tmax=291945601.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.51
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/817212/ft1_filtered_4FGL_J1019.7+0511_daily_bin202.fits" evtable="EVENTS" scfile=/scratch/kocevski/817212/ft2_4FGL_J1019.7+0511_daily_bin202.fits sctable="SC_DATA" outfile=/scratch/kocevski/817212/ltcube_291686401_291945601_4FGL_J1019.7+0511_daily_bin202.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/817212/ft2_4FGL_J1019.7+0511_daily_bin202.fits
.....................!
real 12.41
user 12.03
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817212/ft1_filtered_4FGL_J1019.7+0511_daily_bin202.fits evtable="EVENTS" scfile=/scratch/kocevski/817212/ft2_4FGL_J1019.7+0511_daily_bin202.fits sctable="SC_DATA" expcube=/scratch/kocevski/817212/ltcube_291686401_291945601_4FGL_J1019.7+0511_daily_bin202.fits outfile=/scratch/kocevski/817212/expmap_291686401_291945601_4FGL_J1019.7+0511_daily_bin202.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/817212/ltcube_291686401_291945601_4FGL_J1019.7+0511_daily_bin202.fits
.....................!
real 189.76
user 185.15
sys 4.21

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/817212/ft1_filtered_4FGL_J1019.7+0511_daily_bin202.fits scfile=/scratch/kocevski/817212/ft2_4FGL_J1019.7+0511_daily_bin202.fits outfile=/scratch/kocevski/817212/cmap_291686401_291945601_4FGL_J1019.7+0511_daily_bin202.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/817212/ft1_filtered_4FGL_J1019.7+0511_daily_bin202.fits scfile=/scratch/kocevski/817212/ft2_4FGL_J1019.7+0511_daily_bin202.fits outfile=/scratch/kocevski/817212/cmap_HighResolution_291686401_291945601_4FGL_J1019.7+0511_daily_bin202.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/817212/ft1_filtered_4FGL_J1019.7+0511_daily_bin202.fits evtable="EVENTS" scfile=/scratch/kocevski/817212/ft2_4FGL_J1019.7+0511_daily_bin202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/817212/Model_4FGL_J1019.7+0511_daily_bin202.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/817212/ft1_filtered_4FGL_J1019.7+0511_daily_bin202.fits.....................!
real 52.91
user 51.61
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .74027       1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.411       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.195       1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5656       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    87.537       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9591       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9499       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.996       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0701       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12024       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.391       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0903       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93236       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.

 FCN=   5321.722     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2218 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .59276        .60376E-07** at limit **
   2  norm          .10000E-03    .43097        .79509E-07** at limit **
   3  Prefactor     .75145        9.9188        .38793E-06   -.81801E-04
   4  Prefactor     54.454        42.919        .15554E-06    .70317E-04
   5  Prefactor     10.181        36.485        .12256E-06    .12963E-05
   6  norm          .10000E-03    5.9956       -.13112E-06** at limit **
   7  Prefactor     5.5772        15.583       -.14636E-05    .17062E-03
   8  Prefactor     .10000E-03    111.68       -.54160E-05** at limit **
   9  Prefactor     87.432        89.046        .36976E-05    .11428E-03
  10  Prefactor     .10000E-03    65.450       -.17403E-04** at limit **
  11  norm          .10000E-03    .65941       -.15390E-07** at limit **
  12  Prefactor     4.9636        7.8222        .25774E-06    .71220E-05
  13  Prefactor     3.9488        3.4511        .27154E-07    .63100E-04
  14  Prefactor     18.995        10.716       -.36920E-07    .58618E-05
  15  Prefactor     .10000E-03    13.059        .79147E-07** at limit **
  16  norm          2.0644        .84524       -.49961E-07    .35606E-03
  17  Prefactor     .30394        10.198       -.21859E-06    .16556E-03
  18  Prefactor     13.390        15.326        .46764E-09   -.27802E-06
  19  Normalizat    1.0908        .20752        .12025E-05    .14908E-04
  20  Prefactor     .93190        .17204       -.13107E-05    .13021E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.75145
  Prefactor  = 54.4544
  Prefactor  = 10.1808
  norm       = 0.0001
  Prefactor  = 5.5772
  Prefactor  = 0.0001
  Prefactor  = 87.4324
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.96358
  Prefactor  = 3.94878
  Prefactor  = 18.995
  Prefactor  = 0.0001
  norm       = 2.06437
  Prefactor  = 0.303935
  Prefactor  = 13.3896
  Normalizat = 1.09078
  Prefactor  = 0.9319
 **********
 **   18 **HESSE 
 **********

 FCN=   5321.722     FROM HESSE     STATUS=OK           303 CALLS     2521 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .62101        .10948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.3774        .91934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .75145        32.910        .43004E-02   -1.5535    
   4  Prefactor     54.454        42.788        .54378E-04   -1.4231    
   5  Prefactor     10.181        36.435        .12549E-03   -1.5070    
   6  norm          .10000E-03    5.9973        .17443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5772        15.282        .17029E-03   -1.5236    
   8  Prefactor     .10000E-03    112.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     87.432        89.660        .21471E-03   -1.3835    
  10  Prefactor     .10000E-03    66.167        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0653        .11391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9636        7.7740        .18060E-03   -1.5262    
  13  Prefactor     3.9488        3.4492        .12050E-03   -1.5311    
  14  Prefactor     18.995        10.746        .91895E-04   -1.4836    
  15  Prefactor     .10000E-03    13.655        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0644        1.0329        .34759E-04   -1.5421    
  17  Prefactor     .30394        213.05        .37101E-02   -1.5598    
  18  Prefactor     13.390        15.323        .10946E-03   -1.4976    
  19  Normalizat    1.0908        .24601        .25680E-03   -.90048    
  20  Prefactor     .93190        .20438        .23351E-03   -.95035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30608e-08
Minuit parameter uncertainties:
  1  5.14648e-07
  2  1.78361e-05
  3  9.95105
  4  42.8126
  5  36.5145
  6  1.74067e-06
  7  15.2926
  8  0.000262333
  9  89.7993
  10  5.55833e-05
  11  1.13828e-07
  12  7.77562
  13  3.44936
  14  10.7468
  15  1.21202e-05
  16  1.03289
  17  16.1493
  18  15.3271
  19  0.246268
  20  0.204547
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  5.558e-05  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:  9.319e-01  2.045e-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.091e+00  2.463e-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: 8.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/817212/likelihoodResults_291686401_291945601_4FGL_J1019.7+0511_daily_bin202.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) = 5321.72227938
delta logL = -7.19944919183e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5321.72227938
delta logL = -7.19882664271e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96358E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9972       1.0000          .0000       10.000    
     3 'Normalizat'    1.0908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93190       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=   5321.615     FROM MIGRAD    STATUS=CONVERGED    126 CALLS      275 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78775        63.634        .90713E-02    .11333E-02
   2  Index         3.0147        3.7455        .75945E-01    .19857E-03
   3  Normalizat    1.0657        .45419E-01    .58612E-01   -.34193E-05
   4  Prefactor     .94265        .38530E-01    .45410E-01    .65632E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.787745
  Index      = 3.01468
  Normalizat = 1.0657
  Prefactor  = 0.94265
 **********
 **   18 **HESSE 
 **********

 FCN=   5321.615     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      308 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78775        189.35        .13713E-03   -1.5530    
   2  Index         3.0147        5.4513        .81957E-02   -.40832    
   3  Normalizat    1.0657        .18222        .25921E-03   -.90861    
   4  Prefactor     .94265        .15320        .23218E-03   -.94666    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.92083e-06
Minuit parameter uncertainties:
  1  24.5034
  2  9.71711
  3  0.18233
  4  0.153269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817212': 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) = 5321.61494209
delta logL = 0.10726530086

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  7.877e-01  2.450e+01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  3.015e+00  9.717e+00  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:  9.427e-01  1.533e-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.066e+00  1.823e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/817212/cmap_HighResolution_291686401_291945601_4FGL_J1019.7+0511_daily_bin202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', job_status='DONE', photon_flux_upper_limit='8.16e-08', time_completed='2021-09-01 18:23:36.065634', job_id='817212', GAL2='0.94', fit_tolerance='1e-08', EG2='1.07', EG='1.09', time_epoch_completed='1630545816.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.07e-01', ts2='0.22', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='202' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:23:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 817212: <4FGL_J1019.7+0511_daily_bin202> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin202> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:10:49 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:10:51 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:51 2021
Terminated at Wed Sep  1 18:23:36 2021
Results reported at Wed Sep  1 18:23:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin202 154.942 5.1905 291686401 291945601 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 :                                   543.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            767 sec.

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

