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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin75
RA = 154.942, Dec = 5.1905
tmin = 258768001, tmax = 259027201
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='817028', job_status='RUN', time_executed='2021-09-01 18:10:42.919251', time_epoch_executed='1630545042.92' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817028

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817028/ft1_4FGL_J1019.7+0511_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817028/ft2_4FGL_J1019.7+0511_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817028/ft1_4FGL_J1019.7+0511_daily_bin75.fits outfile=/scratch/kocevski/817028/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin75.fits ra=154.942 dec=5.1905 rad=12.0 tmin=258768001.0 tmax=259027201.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.28
user 0.96
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/817028/ft1_filtered_4FGL_J1019.7+0511_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/817028/ft2_4FGL_J1019.7+0511_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/817028/ltcube_258768001_259027201_4FGL_J1019.7+0511_daily_bin75.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/817028/ft2_4FGL_J1019.7+0511_daily_bin75.fits
.....................!
real 9.59
user 9.18
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817028/ft1_filtered_4FGL_J1019.7+0511_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/817028/ft2_4FGL_J1019.7+0511_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/817028/ltcube_258768001_259027201_4FGL_J1019.7+0511_daily_bin75.fits outfile=/scratch/kocevski/817028/expmap_258768001_259027201_4FGL_J1019.7+0511_daily_bin75.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/817028/ltcube_258768001_259027201_4FGL_J1019.7+0511_daily_bin75.fits
.....................!
real 196.47
user 191.99
sys 4.07

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/817028/ft1_filtered_4FGL_J1019.7+0511_daily_bin75.fits scfile=/scratch/kocevski/817028/ft2_4FGL_J1019.7+0511_daily_bin75.fits outfile=/scratch/kocevski/817028/cmap_258768001_259027201_4FGL_J1019.7+0511_daily_bin75.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/817028/ft1_filtered_4FGL_J1019.7+0511_daily_bin75.fits scfile=/scratch/kocevski/817028/ft2_4FGL_J1019.7+0511_daily_bin75.fits outfile=/scratch/kocevski/817028/cmap_HighResolution_258768001_259027201_4FGL_J1019.7+0511_daily_bin75.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.51
user 0.38
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.8097       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3759       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14918E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12233E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.591       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10202E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16804E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5712       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8771       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .78763E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.745       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .66072       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2988       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=   3652.987     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2168 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .50717       -.32237E-07** at limit **
   2  norm          2.8098        1.0159       -.20667E-07   -.13034E-04
   3  Prefactor     1.3850        38.474        .10276E-04   -.15378E-03
   4  Prefactor     .10289E-03    59.712       -.47116E-05** at limit **
   5  Prefactor     .10000E-03    17.029       -.29996E-05** at limit **
   6  norm          .10000E-03    19.085       -.27493E-04** at limit **
   7  Prefactor     .10000E-03    16.810        .10886E-04** at limit **
   8  Prefactor     .10000E-03    19.975        .22987E-04** at limit **
   9  Prefactor     34.682        55.458        .85490E-05   -.67947E-04
  10  Prefactor     .10000E-03    15.733       -.51658E-05** at limit **
  11  norm          .10000E-03    1.3572       -.32340E-07** at limit **
  12  Prefactor     .10438E-03    5.6030        .13072E-05** at limit **
  13  Prefactor     .10000E-03    2.5386       -.32899E-07** at limit **
  14  Prefactor     .10000E-03    12.868        .93104E-08** at limit **
  15  Prefactor     3.5714        8.1977       -.29637E-05   -.25056E-03
  16  norm          1.8764        1.0544        .75177E-07   -.59688E-03
  17  Prefactor     .77126E-01    15.282        .40730E-06    .77425E-04
  18  Prefactor     12.720        25.351       -.12944E-04   -.12757E-04
  19  Normalizat    .66086        .24584       -.39829E-06   -.62337E-04
  20  Prefactor     1.2985        .21454        .26964E-06   -.74886E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.80981
  Prefactor  = 1.38503
  Prefactor  = 0.000102885
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 34.6824
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000104383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.57141
  norm       = 1.87636
  Prefactor  = 0.0771257
  Prefactor  = 12.7204
  Normalizat = 0.660857
  Prefactor  = 1.29855
 **********
 **   18 **HESSE 
 **********

 FCN=   3652.987     FROM HESSE     STATUS=OK           313 CALLS     2481 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .51531        .42010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8098        1.0154        .34904E-04   -1.5373    
   3  Prefactor     1.3850        38.024        .37136E-03   -1.5473    
   4  Prefactor     .10289E-03    60.359        .12328       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    19.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.682        55.029        .68136E-04   -1.4529    
  10  Prefactor     .10000E-03    15.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.4089        .13706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10438E-03    14.398        .44182E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.5808        .93928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5714        8.2932        .21386E-03   -1.5330    
  16  norm          1.8764        1.7017        .35437E-04   -1.5434    
  17  Prefactor     .77126E-01    105.59        .52551E-01   -1.5652    
  18  Prefactor     12.720        25.398        .11220E-03   -1.4995    
  19  Normalizat    .66086        .27997        .31140E-03   -1.0546    
  20  Prefactor     1.2985        .24630        .20424E-03   -.83350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.08047e-09
Minuit parameter uncertainties:
  1  5.37205e-07
  2  1.01539
  3  14.5237
  4  0.026419
  5  5.07788e-06
  6  0.00017675
  7  0.000418405
  8  3.17009e-05
  9  55.1099
  10  0.000186598
  11  6.14796e-06
  12  0.015891
  13  1.35276e-05
  14  1.90477e-05
  15  8.29583
  16  1.70178
  17  5.7139
  18  25.4196
  19  0.28058
  20  0.246518
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  1.866e-04  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.299e+00  2.465e-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.609e-01  2.806e-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: 7.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/817028/likelihoodResults_258768001_259027201_4FGL_J1019.7+0511_daily_bin75.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) = 3652.9874016
delta logL = -0.000301256222883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3652.98710075
delta logL = -4.04910224461e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0905       1.0000          .0000       10.000    
     3 'Normalizat'    .66085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2986       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=   3652.987     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      231 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2859        .90712E-02** at limit **
   2  Index         2.0598        8.9639        .50000        .16447E-04
   3  Normalizat    .66086        .27532E-02    .70359E-01   -.56694E-04
   4  Prefactor     1.2985        .24619E-02    .32635E-01   -.12023E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.05983
  Normalizat = 0.660858
  Prefactor  = 1.29855
 **********
 **   18 **HESSE 
 **********

 FCN=   3652.987     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      262 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0598        5.0616        .50000       -.62863    
   3  Normalizat    .66086        .86388E-02    .31140E-03   -1.0546    
   4  Prefactor     1.2985        .77409E-02    .20424E-03   -.83350    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.52948e-08
Minuit parameter uncertainties:
  1  0.00016615
  2  50.9453
  3  0.00863878
  4  0.0077409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817028': 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) = 3652.98710058
delta logL = -2.32221282204e-07

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  1.661e-04  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  2.060e+00  5.095e+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.299e+00  7.741e-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:  6.609e-01  8.639e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/817028/cmap_HighResolution_258768001_259027201_4FGL_J1019.7+0511_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.88e-03', job_status='DONE', photon_flux_upper_limit='7.85e-08', time_completed='2021-09-01 18:18:18.900039', job_id='817028', GAL2='1.30', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1630545498.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='-2.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='75' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:18:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 817028: <4FGL_J1019.7+0511_daily_bin75> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin75 154.942 5.1905 258768001 259027201 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 :                                   456.02 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             287.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   465 sec.
    Turnaround time :                            468 sec.

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

