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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin134
RA = 154.942, Dec = 5.1905
tmin = 274060801, tmax = 274320001
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='818441', job_status='RUN', time_executed='2021-09-01 18:19:32.760982', time_epoch_executed='1630545572.76' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='134'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818441

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818441/ft1_4FGL_J1019.7+0511_daily_bin134.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818441/ft2_4FGL_J1019.7+0511_daily_bin134.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818441/ft1_4FGL_J1019.7+0511_daily_bin134.fits outfile=/scratch/kocevski/818441/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin134.fits ra=154.942 dec=5.1905 rad=12.0 tmin=274060801.0 tmax=274320001.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.70
user 3.44
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818441/ft1_filtered_4FGL_J1019.7+0511_daily_bin134.fits" evtable="EVENTS" scfile=/scratch/kocevski/818441/ft2_4FGL_J1019.7+0511_daily_bin134.fits sctable="SC_DATA" outfile=/scratch/kocevski/818441/ltcube_274060801_274320001_4FGL_J1019.7+0511_daily_bin134.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/818441/ft2_4FGL_J1019.7+0511_daily_bin134.fits
.....................!
real 13.82
user 13.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818441/ft1_filtered_4FGL_J1019.7+0511_daily_bin134.fits evtable="EVENTS" scfile=/scratch/kocevski/818441/ft2_4FGL_J1019.7+0511_daily_bin134.fits sctable="SC_DATA" expcube=/scratch/kocevski/818441/ltcube_274060801_274320001_4FGL_J1019.7+0511_daily_bin134.fits outfile=/scratch/kocevski/818441/expmap_274060801_274320001_4FGL_J1019.7+0511_daily_bin134.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/818441/ltcube_274060801_274320001_4FGL_J1019.7+0511_daily_bin134.fits
.....................!
real 191.96
user 186.57
sys 5.00

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/818441/ft1_filtered_4FGL_J1019.7+0511_daily_bin134.fits scfile=/scratch/kocevski/818441/ft2_4FGL_J1019.7+0511_daily_bin134.fits outfile=/scratch/kocevski/818441/cmap_274060801_274320001_4FGL_J1019.7+0511_daily_bin134.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/818441/ft1_filtered_4FGL_J1019.7+0511_daily_bin134.fits scfile=/scratch/kocevski/818441/ft2_4FGL_J1019.7+0511_daily_bin134.fits outfile=/scratch/kocevski/818441/cmap_HighResolution_274060801_274320001_4FGL_J1019.7+0511_daily_bin134.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818441/ft1_filtered_4FGL_J1019.7+0511_daily_bin134.fits evtable="EVENTS" scfile=/scratch/kocevski/818441/ft2_4FGL_J1019.7+0511_daily_bin134.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818441/Model_4FGL_J1019.7+0511_daily_bin134.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/818441/ft1_filtered_4FGL_J1019.7+0511_daily_bin134.fits.....................!
real 64.34
user 62.91
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12570E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14207E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.7897       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1898       1.0000         .10000E-03   10000.    
     8 'Prefactor '    86.052       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3309       1.0000         .10000E-03   10000.    
    11 'norm      '    .36434E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15245       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .31045E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.562       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1031       1.0000         .10000E-03   10000.    
    18 'Prefactor '    125.40       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .60834       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.6401       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=   6630.715     FROM MIGRAD    STATUS=FAILED       799 CALLS     2563 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1667        .14444E-02** at limit **
   2  norm          .10000E-03    .25038        .69558E-03** at limit **
   3  Prefactor     .10001E-03    10.992        .79592E-01** at limit **
   4  Prefactor     .10000E-03    85.052        .18142E-02** at limit **
   5  Prefactor     .10000E-03    153.57        .18142E-02** at limit **
   6  norm          6.8055        13.405        .15398E-03    .15460E-03
   7  Prefactor     7.1931        7.9492        .14960E-03    .31006E-04
   8  Prefactor     86.076        72.509        .43308E-04    .11645E-03
   9  Prefactor     .10000E-03    60.423        .18142E-02** at limit **
  10  Prefactor     2.3313        17.199        .26861E-03   -.22385E-03
  11  norm          .10001E-03    12.808        .12285E-02** at limit **
  12  Prefactor     .18224        50.955        .36256E-02    .15085E-02
  13  Prefactor     .10001E-03    4.4552        .34058E-01** at limit **
  14  Prefactor     .10000E-03    5.5910        .18142E-02** at limit **
  15  Prefactor     11.564        9.9789        .11782E-03    .54491E-03
  16  norm          .10000E-03    .22648        .70000E-03** at limit **
  17  Prefactor     5.1098        10.487        .17798E-03    .33215E-03
  18  Prefactor     125.42        43.705        .35946E-04    .20064E-03
  19  Normalizat    .60824        .24640        .37875E-03    .10698E-03
  20  Prefactor     1.6402        .20814        .21278E-03   -.19687E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6630.715     FROM SIMPLEX   STATUS=UNCHANGED   1003 CALLS     3566 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1667        .22045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .25038        .37653E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    10.992        .11009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    85.052        .10180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    153.57        .13467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.8055        13.405        .46902E-06   -1.5186    
   7  Prefactor     7.1931        7.9492        .47637E-06   -1.5172    
   8  Prefactor     86.076        72.509        .47462E-06   -1.3850    
   9  Prefactor     .10000E-03    60.423        .99112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3313        17.199        .46272E-06   -1.5403    
  11  norm          .10001E-03    12.808        .28640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .18224        50.955        .19724E-05   -1.5623    
  13  Prefactor     .10001E-03    4.4552        .25265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.5910        .47563E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.564        9.9789        .46146E-06   -1.5028    
  16  norm          .10000E-03    .22648        .41295E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.1098        10.487        .46964E-06   -1.5256    
  18  Prefactor     125.42        43.705        .40861E-06   -1.3463    
  19  Normalizat    .60824        .24640        .34461E-06   -1.0764    
  20  Prefactor     1.6402        .20814        .22325E-06   -.73684    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6630.715     FROM MIGRAD    STATUS=CONVERGED    296 CALLS     3862 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1830        .28888E-03** at limit **
   2  norm          .10000E-03    .25052        .13912E-03** at limit **
   3  Prefactor     .10001E-03    10.698        .81431E-01** at limit **
   4  Prefactor     .10000E-03    85.083        .36285E-03** at limit **
   5  Prefactor     .10000E-03    153.69        .36285E-03** at limit **
   6  norm          6.8054        13.402        .61593E-05   -.26948E-04
   7  Prefactor     7.1931        7.9479        .59838E-05   -.25459E-04
   8  Prefactor     86.075        72.476        .86615E-05   -.15488E-04
   9  Prefactor     .10000E-03    60.421        .36285E-03** at limit **
  10  Prefactor     2.3315        17.184        .10744E-04   -.59254E-05
  11  norm          .10000E-03    13.054        .24571E-03** at limit **
  12  Prefactor     .18227        51.805        .72513E-03   -.48132E-05
  13  Prefactor     .10002E-03    3.1978        .42182E-01** at limit **
  14  Prefactor     .10000E-03    5.5918        .36285E-03** at limit **
  15  Prefactor     11.564        9.9793        .47126E-05   -.16887E-04
  16  norm          .10000E-03    .22650        .14000E-03** at limit **
  17  Prefactor     5.1097        10.482        .71192E-05    .95814E-06
  18  Prefactor     125.42        43.692        .71892E-05   -.44278E-05
  19  Normalizat    .60824        .24613        .15150E-04   -.51178E-04
  20  Prefactor     1.6402        .20816        .42555E-04   -.86664E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.80535
  Prefactor  = 7.19311
  Prefactor  = 86.0754
  Prefactor  = 0.0001
  Prefactor  = 2.33154
  norm       = 0.0001
  Prefactor  = 0.182265
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 11.5643
  norm       = 0.0001
  Prefactor  = 5.1097
  Prefactor  = 125.419
  Normalizat = 0.608237
  Prefactor  = 1.64024
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.715     FROM HESSE     STATUS=OK           293 CALLS     4155 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1837        .57777E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .25053        .27823E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    10.751        .81101E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    85.084        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    153.69        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.8054        13.398        .12319E-05   -1.5186    
   7  Prefactor     7.1931        7.9508        .11968E-05   -1.5172    
   8  Prefactor     86.075        72.363        .17323E-05   -1.3850    
   9  Prefactor     .10000E-03    60.421        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3315        17.187        .21489E-05   -1.5403    
  11  norm          .10000E-03    13.064        .49142E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .18227        51.629        .29005E-04   -1.5623    
  13  Prefactor     .10002E-03    3.5807        .39138E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.5919        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.564        9.9827        .94252E-06   -1.5028    
  16  norm          .10000E-03    .22650        .28000E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.1097        10.475        .14238E-05   -1.5256    
  18  Prefactor     125.42        43.677        .14378E-05   -1.3463    
  19  Normalizat    .60824        .24616        .30300E-05   -1.0764    
  20  Prefactor     1.6402        .20832        .85110E-05   -.73684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07103e-11
Minuit parameter uncertainties:
  1  7.37992e-09
  2  2.69723e-09
  3  0.000531284
  4  3.10149e-06
  5  9.28576e-06
  6  13.4042
  7  7.95197
  8  72.4369
  9  2.4134e-05
  10  12.6655
  11  2.17487e-05
  12  6.13888
  13  0.00046583
  14  4.91588e-07
  15  9.98415
  16  1.04236e-07
  17  10.4791
  18  43.6884
  19  0.246607
  20  0.208433
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  2.332e+00  1.267e+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.640e+00  2.084e-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.082e-01  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/818441/likelihoodResults_274060801_274320001_4FGL_J1019.7+0511_daily_bin134.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): 0
logL (Free Index) = 6630.71267498
delta logL = 0.00240342564575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6630.71081745
delta logL = 0.004260958136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6079       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2515       1.0000          .0000       10.000    
     3 'Normalizat'    .60737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6404       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6630.711     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      264 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6115        83.800        .16706E-02    .46175E-03
   2  Index         2.2510        6.0440        .11065E-01    .14213E-03
   3  Normalizat    .60735        .23504        .37899E-03   -.65994E-05
   4  Prefactor     1.6404        .20666        .21276E-03    .73739E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.61151
  Index      = 2.251
  Normalizat = 0.607351
  Prefactor  = 1.64041
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.711     FROM HESSE     STATUS=OK            27 CALLS      291 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6115        20.380        .33412E-03   -1.5454    
   2  Index         2.2510        2.4084        .22130E-02   -.58213    
   3  Normalizat    .60735        .23491        .15160E-04   -1.0767    
   4  Prefactor     1.6404        .20649        .85104E-05   -.73680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49948e-12
Minuit parameter uncertainties:
  1  11.4661
  2  2.56706
  3  0.235302
  4  0.206602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818441': 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) = 6630.71081738
delta logL = 0.00426102641541

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.612e+00  1.147e+01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  2.251e+00  2.567e+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:  1.640e+00  2.066e-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.074e-01  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/818441/cmap_HighResolution_274060801_274320001_4FGL_J1019.7+0511_daily_bin134.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.94e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-09-01 18:31:14.874493', job_id='818441', GAL2='1.64', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1630546274.87', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.64', dlogl='4.26e-03', ts2='0.05', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='134' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:31:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 818441: <4FGL_J1019.7+0511_daily_bin134> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin134 154.942 5.1905 274060801 274320001 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 :                                   703.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            956 sec.

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

