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


Performing analysis on: 4FGL_J1119.0+1235_daily_bin1336
RA = 169.766, Dec = 12.5866
tmin = 585619201, tmax = 585878401
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='668439', job_status='RUN', time_executed='2021-09-03 15:59:06.287794', time_epoch_executed='1630709946.29' WHERE source_name='4FGL J1119.0+1235' and cadence='daily' and bin_id='1336'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/668439

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/668439/ft1_4FGL_J1119.0+1235_daily_bin1336.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/668439/ft2_4FGL_J1119.0+1235_daily_bin1336.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/668439/ft1_4FGL_J1119.0+1235_daily_bin1336.fits outfile=/scratch/kocevski/668439/ft1_filteredMKT_4FGL_J1119.0+1235_daily_bin1336.fits ra=169.766 dec=12.5866 rad=12.0 tmin=585619201.0 tmax=585878401.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 2.71
user 2.50
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/668439/ft2_4FGL_J1119.0+1235_daily_bin1336.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/668439/ft2_4FGL_J1119.0+1235_daily_bin1336.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/668439/ft1_filteredMKT_4FGL_J1119.0+1235_daily_bin1336.fits evtable="EVENTS" outfile="/scratch/kocevski/668439/ft1_filtered_4FGL_J1119.0+1235_daily_bin1336.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/668439/ft1_filtered_4FGL_J1119.0+1235_daily_bin1336.fits" evtable="EVENTS" scfile=/scratch/kocevski/668439/ft2_4FGL_J1119.0+1235_daily_bin1336.fits sctable="SC_DATA" outfile=/scratch/kocevski/668439/ltcube_585619201_585878401_4FGL_J1119.0+1235_daily_bin1336.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/668439/ft2_4FGL_J1119.0+1235_daily_bin1336.fits
.....................!
real 16.65
user 16.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/668439/ft1_filtered_4FGL_J1119.0+1235_daily_bin1336.fits evtable="EVENTS" scfile=/scratch/kocevski/668439/ft2_4FGL_J1119.0+1235_daily_bin1336.fits sctable="SC_DATA" expcube=/scratch/kocevski/668439/ltcube_585619201_585878401_4FGL_J1119.0+1235_daily_bin1336.fits outfile=/scratch/kocevski/668439/expmap_585619201_585878401_4FGL_J1119.0+1235_daily_bin1336.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/668439/ltcube_585619201_585878401_4FGL_J1119.0+1235_daily_bin1336.fits
.....................!
real 190.74
user 185.78
sys 4.56

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

Setting source of interest to:
4FGL J1119.0+1235 @ 169.766 12.5866

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/668439/ft1_filtered_4FGL_J1119.0+1235_daily_bin1336.fits scfile=/scratch/kocevski/668439/ft2_4FGL_J1119.0+1235_daily_bin1336.fits outfile=/scratch/kocevski/668439/cmap_585619201_585878401_4FGL_J1119.0+1235_daily_bin1336.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=169.766 yref=12.5866 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.63
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/668439/ft1_filtered_4FGL_J1119.0+1235_daily_bin1336.fits scfile=/scratch/kocevski/668439/ft2_4FGL_J1119.0+1235_daily_bin1336.fits outfile=/scratch/kocevski/668439/cmap_HighResolution_585619201_585878401_4FGL_J1119.0+1235_daily_bin1336.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=169.766 yref=12.5866 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/668439/ft1_filtered_4FGL_J1119.0+1235_daily_bin1336.fits evtable="EVENTS" scfile=/scratch/kocevski/668439/ft2_4FGL_J1119.0+1235_daily_bin1336.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/668439/Model_4FGL_J1119.0+1235_daily_bin1336.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/668439/ft1_filtered_4FGL_J1119.0+1235_daily_bin1336.fits.....................!
real 62.29
user 60.89
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/668439/ft1_filtered_4FGL_J1119.0+1235_daily_bin1336.fits', '/scratch/kocevski/668439/ft2_4FGL_J1119.0+1235_daily_bin1336.fits', expMap='/scratch/kocevski/668439/expmap_585619201_585878401_4FGL_J1119.0+1235_daily_bin1336.fits', expCube='/scratch/kocevski/668439/ltcube_585619201_585878401_4FGL_J1119.0+1235_daily_bin1336.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/668439/Model_4FGL_J1119.0+1235_daily_bin1336.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1119.0+1235'

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  3.793e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        alpha:  2.405e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.376e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/668439/ft1_filtered_4FGL_J1119.0+1235_daily_bin1336.fits
Spacecraft file(s): /scratch/kocevski/668439/ft2_4FGL_J1119.0+1235_daily_bin1336.fits
Exposure map: /scratch/kocevski/668439/expmap_585619201_585878401_4FGL_J1119.0+1235_daily_bin1336.fits
Exposure cube: /scratch/kocevski/668439/ltcube_585619201_585878401_4FGL_J1119.0+1235_daily_bin1336.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/668439/Model_4FGL_J1119.0+1235_daily_bin1336.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) = 6845.96346373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2034       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.584       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.763       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .39526       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .96111       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6768       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    18.680       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .43911       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8364       1.0000         .10000E-03   10000.    
    15 'Prefactor '    59.338       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.886       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5515       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1202       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96335       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6845.950     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2086 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3465        .14745E-06** at limit **
   2  Prefactor     .10000E-03    2.3255        .22959E-07** at limit **
   3  Prefactor     3.2050        6.8844       -.38604E-05   -.14532E-03
   4  Prefactor     13.584        12.084        .58878E-06   -.25415E-04
   5  Prefactor     12.763        13.574       -.10859E-06   -.19242E-04
   6  Prefactor     .40528        5.9255        .43142E-06    .74455E-04
   7  Prefactor     .10000E-03    6.6752       -.32173E-07** at limit **
   8  norm          .96128        .98384       -.33859E-08   -.16878E-03
   9  Prefactor     6.6802        15.829        .51531E-05    .16847E-04
  10  Prefactor     .10000E-03    15.277        .26227E-05** at limit **
  11  norm          18.682        10.059        .28512E-06    .72071E-05
  12  Prefactor     .51717        7.8116        .11993E-05   -.36664E-03
  13  Prefactor     .10000E-03    17.476       -.65873E-05** at limit **
  14  Prefactor     7.8372        7.0912       -.74214E-07   -.30791E-04
  15  Prefactor     59.349        64.440        .12232E-04    .26047E-04
  16  Prefactor     14.887        8.0485        .62995E-07   -.99666E-05
  17  Prefactor     1.5524        3.6008        .93779E-06   -.94293E-03
  18  Prefactor     .10000E-03    22.098        .62246E-05** at limit **
  19  Normalizat    1.1200        .17346       -.51984E-06   -.16476E-03
  20  Prefactor     .96347        .15997       -.49788E-06   -.14454E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.20502
  Prefactor  = 13.5839
  Prefactor  = 12.763
  Prefactor  = 0.405277
  Prefactor  = 0.0001
  norm       = 0.961277
  Prefactor  = 6.68021
  Prefactor  = 0.0001
  norm       = 18.6818
  Prefactor  = 0.517166
  Prefactor  = 0.0001
  Prefactor  = 7.83716
  Prefactor  = 59.3494
  Prefactor  = 14.8871
  Prefactor  = 1.55238
  Prefactor  = 0.0001
  Normalizat = 1.11998
  Prefactor  = 0.963473
 **********
 **   18 **HESSE 
 **********

 FCN=   6845.950     FROM HESSE     STATUS=OK           305 CALLS     2391 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4048        .24738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.3499        .12321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2050        6.8825        .22637E-03   -1.5350    
   4  Prefactor     13.584        12.100        .10868E-03   -1.4971    
   5  Prefactor     12.763        13.562        .11212E-03   -1.4993    
   6  Prefactor     .40528        26.496        .38191E-02   -1.5581    
   7  Prefactor     .10000E-03    6.6881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .96128        .93912        .79822E-03   -1.5512    
   9  Prefactor     6.6802        15.820        .15529E-03   -1.5191    
  10  Prefactor     .10000E-03    15.796        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.682        10.069        .92670E-04   -1.4843    
  12  Prefactor     .51717        44.771        .43476E-02   -1.5564    
  13  Prefactor     .10000E-03    17.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.8372        7.0992        .14324E-03   -1.5148    
  15  Prefactor     59.349        64.391        .52084E-04   -1.4166    
  16  Prefactor     14.887        8.0598        .10381E-03   -1.4936    
  17  Prefactor     1.5524        18.611        .17096E-02   -1.5459    
  18  Prefactor     .10000E-03    22.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1200        .20465        .24658E-03   -.89113    
  20  Prefactor     .96347        .18868        .25037E-03   -.93957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.86314e-09
Minuit parameter uncertainties:
  1  2.58235e-05
  2  1.42063e-06
  3  6.88422
  4  12.1025
  5  13.5654
  6  6.55601
  7  2.84417e-06
  8  0.939131
  9  15.8297
  10  6.34258e-05
  11  10.0698
  12  9.63029
  13  3.38026e-05
  14  7.09997
  15  64.467
  16  8.06043
  17  10.754
  18  4.39228e-05
  19  0.204792
  20  0.188807
Done.

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

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  1.868e+01  1.007e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        alpha:  2.405e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.376e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.635e-01  1.888e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.120e+00  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.68
Ra Dec: 169.766 12.587
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 5.59e-08 +/- 3.01e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 9.09e-06

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) = 6843.61185162
delta logL = 2.33765620836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6843.20063811
delta logL = 2.74886971445

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6449       1.0000         .10000E-03   10000.    
     2 'alpha     '    .82158       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1652       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94418       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6843.201     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      213 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6449        5.5276        .36259E-02    .46962E-02
   2  alpha         .82018        .40678        .33939       -.45435E-04
   3  Normalizat    1.1650        .16681        .54818E-01    .15659E-03
   4  Prefactor     .94441        .15925        .45566E-01    .17654E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.64495
  alpha      = 0.820181
  Normalizat = 1.16499
  Prefactor  = 0.944413
 **********
 **   18 **HESSE 
 **********

 FCN=   6843.201     FROM HESSE     STATUS=OK            27 CALLS      240 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6449        9.2284        .13738E-03   -1.5155    
   2  alpha         .82018        .65897        .15235E-02   -.73681    
   3  Normalizat    1.1650        .19643        .24240E-03   -.87692    
   4  Prefactor     .94441        .18765        .25267E-03   -.94606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34675e-08
Minuit parameter uncertainties:
  1  9.23012
  2  0.673737
  3  0.196553
  4  0.187782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/668439': 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) = 6843.20062895
delta logL = 2.74887887843

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  7.645e+00  9.230e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        alpha:  8.202e-01  6.737e-01  0.000e+00  5.000e+00 ( 1.000e+00)
289         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.376e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.444e-01  1.878e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.165e+00  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.19
Ra Dec: 169.766 12.587
Photon Index (Free Index): 0.82 +/- 0.67
Photon Flux (Free Index): 1.45e-08 +/- 1.26e-08
Energy Flux (Free Index): 3.58e-05 +/- 3.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/668439/cmap_HighResolution_585619201_585878401_4FGL_J1119.0+1235_daily_bin1336.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.59e-08', energy_flux2='3.58e-05', photon_flux_error='3.01e-08', dlogl='2.75e+00', energy_flux='1.69e-05', photon_flux2='1.45e-08', job_status='DONE', time_completed='2021-09-03 16:11:16.329585', photon_index_error2='0.67', photon_index2='0.82', ts='7.68', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='3.13e-05', EG='1.12', time_epoch_completed='1630710676.33', return_code='0', job_id='668439', GAL2='0.94', EG2='1.16', return_code2='0', energy_flux_error='9.09e-06', photon_flux_error2='1.26e-08', ts2='13.19', photon_index='2.41' WHERE bin_id='1336' AND source_name='4FGL J1119.0+1235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 16:11:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 668439: <4FGL_J1119.0+1235_daily_bin1336> in cluster <slac> Done

Job <4FGL_J1119.0+1235_daily_bin1336> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 15:56:15 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 15:57:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 15:57:00 2021
Terminated at Fri Sep  3 16:11:17 2021
Results reported at Fri Sep  3 16:11:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1119.0+1235_daily_bin1336 169.766 12.5866 585619201 585878401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1119.0+1235 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   598.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            902 sec.

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

