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


Performing analysis on: 4FGL_J1119.0+1235_daily_bin1009
RA = 169.766, Dec = 12.5866
tmin = 500860801, tmax = 501120001
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='666477', job_status='RUN', time_executed='2021-09-03 15:55:18.483976', time_epoch_executed='1630709718.48' WHERE source_name='4FGL J1119.0+1235' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/666477

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/666477/ft1_4FGL_J1119.0+1235_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/666477/ft2_4FGL_J1119.0+1235_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/666477/ft1_4FGL_J1119.0+1235_daily_bin1009.fits outfile=/scratch/kocevski/666477/ft1_filteredMKT_4FGL_J1119.0+1235_daily_bin1009.fits ra=169.766 dec=12.5866 rad=12.0 tmin=500860801.0 tmax=501120001.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 4.62
user 4.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/666477/ft1_filtered_4FGL_J1119.0+1235_daily_bin1009.fits" evtable="EVENTS" scfile=/scratch/kocevski/666477/ft2_4FGL_J1119.0+1235_daily_bin1009.fits sctable="SC_DATA" outfile=/scratch/kocevski/666477/ltcube_500860801_501120001_4FGL_J1119.0+1235_daily_bin1009.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/666477/ft2_4FGL_J1119.0+1235_daily_bin1009.fits
.....................!
real 14.59
user 14.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/666477/ft1_filtered_4FGL_J1119.0+1235_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/666477/ft2_4FGL_J1119.0+1235_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/666477/ltcube_500860801_501120001_4FGL_J1119.0+1235_daily_bin1009.fits outfile=/scratch/kocevski/666477/expmap_500860801_501120001_4FGL_J1119.0+1235_daily_bin1009.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/666477/ltcube_500860801_501120001_4FGL_J1119.0+1235_daily_bin1009.fits
.....................!
real 193.29
user 187.35
sys 5.31

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/666477/ft1_filtered_4FGL_J1119.0+1235_daily_bin1009.fits scfile=/scratch/kocevski/666477/ft2_4FGL_J1119.0+1235_daily_bin1009.fits outfile=/scratch/kocevski/666477/cmap_500860801_501120001_4FGL_J1119.0+1235_daily_bin1009.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.52
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/666477/ft1_filtered_4FGL_J1119.0+1235_daily_bin1009.fits scfile=/scratch/kocevski/666477/ft2_4FGL_J1119.0+1235_daily_bin1009.fits outfile=/scratch/kocevski/666477/cmap_HighResolution_500860801_501120001_4FGL_J1119.0+1235_daily_bin1009.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/666477/ft1_filtered_4FGL_J1119.0+1235_daily_bin1009.fits', '/scratch/kocevski/666477/ft2_4FGL_J1119.0+1235_daily_bin1009.fits', expMap='/scratch/kocevski/666477/expmap_500860801_501120001_4FGL_J1119.0+1235_daily_bin1009.fits', expCube='/scratch/kocevski/666477/ltcube_500860801_501120001_4FGL_J1119.0+1235_daily_bin1009.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/666477/Model_4FGL_J1119.0+1235_daily_bin1009.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/666477/ft1_filtered_4FGL_J1119.0+1235_daily_bin1009.fits
Spacecraft file(s): /scratch/kocevski/666477/ft2_4FGL_J1119.0+1235_daily_bin1009.fits
Exposure map: /scratch/kocevski/666477/expmap_500860801_501120001_4FGL_J1119.0+1235_daily_bin1009.fits
Exposure cube: /scratch/kocevski/666477/ltcube_500860801_501120001_4FGL_J1119.0+1235_daily_bin1009.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/666477/Model_4FGL_J1119.0+1235_daily_bin1009.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) = 5280.45615931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6445       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5715       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1839       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5233       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .76083E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    20.566       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2982       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .62730E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    114.52       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21967E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .64120E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92351       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1433       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5280.384     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     1587 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5464       -.34347E-06** at limit **
   2  Prefactor     .10000E-03    13.428       -.97012E-06** at limit **
   3  Prefactor     2.6479        7.5548       -.95129E-05   -.58849E-04
   4  Prefactor     6.5603        7.3359       -.32051E-05   -.74200E-04
   5  Prefactor     8.1426        7.5061       -.51626E-05   -.20646E-03
   6  Prefactor     5.5268        6.6624        .17288E-05    .36013E-03
   7  Prefactor     .10000E-03    6.5546        .24229E-05** at limit **
   8  norm          .61206E-01    10.335        .16940E-05    .67982E-04
   9  Prefactor     .10069E-03    13.501       -.14093E-05** at limit **
  10  Prefactor     .10000E-03    3.5231        .10099E-05** at limit **
  11  norm          20.708        17.795       -.33860E-08    .11914E-03
  12  Prefactor     .10044E-03    20.824       -.76000E-05** at limit **
  13  Prefactor     7.5898        64.996       -.41119E-04   -.16931E-04
  14  Prefactor     .10006E-03    31.215        .98235E-05** at limit **
  15  Prefactor     107.43        103.34       -.56059E-05    .43130E-05
  16  Prefactor     .10000E-03    7.4296       -.22731E-05** at limit **
  17  Prefactor     .10000E-03    29.410        .79152E-05** at limit **
  18  Prefactor     .10000E-03    116.02       -.37053E-04** at limit **
  19  Normalizat    .92487        .22022       -.52362E-05    .33558E-04
  20  Prefactor     1.1433        .20564        .55000E-05    .21471E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.6479
  Prefactor  = 6.56033
  Prefactor  = 8.14264
  Prefactor  = 5.52677
  Prefactor  = 0.0001
  norm       = 0.0612062
  Prefactor  = 0.000100691
  Prefactor  = 0.0001
  norm       = 20.7082
  Prefactor  = 0.000100439
  Prefactor  = 7.58981
  Prefactor  = 0.000100058
  Prefactor  = 107.435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.924871
  Prefactor  = 1.1433
 **********
 **   18 **HESSE 
 **********

 FCN=   5280.384     FROM HESSE     STATUS=OK           349 CALLS     1936 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2685        .36194E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.949        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6479        7.6212        .62676E-02   -1.5383    
   4  Prefactor     6.5603        7.3325        .39136E-02   -1.5196    
   5  Prefactor     8.1426        7.5060        .35036E-02   -1.5137    
   6  Prefactor     5.5268        6.6523        .42739E-02   -1.5238    
   7  Prefactor     .10000E-03    6.5224        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .61206E-01    .73603        .45957E-01   -1.5659    
   9  Prefactor     .10069E-03    31.322        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          20.708        17.882        .22080E-02   -1.4798    
  12  Prefactor     .10044E-03    6.0862        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.5898        64.952        .34792E-02   -1.5157    
  14  Prefactor     .10006E-03    31.378        .94362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     107.43        103.21        .93987E-03   -1.3631    
  16  Prefactor     .10000E-03    7.4284        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.013        .10071E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    115.89        .94193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .92487        .19132        .45201E-01   -.95592    
  20  Prefactor     1.1433        .17681        .52079E-01   -.88095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04897e-07
Minuit parameter uncertainties:
  1  3.31733e-06
  2  1.09899e-05
  3  7.62398
  4  7.33345
  5  7.50691
  6  6.65314
  7  1.12874e-05
  8  0.424156
  9  0.00930926
  10  9.32236e-07
  11  17.8865
  12  0.00326804
  13  44.471
  14  0.00269436
  15  103.385
  16  6.85875e-06
  17  0.000235482
  18  0.000846699
  19  0.191466
  20  0.176899
Done.

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

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  2.071e+01  1.789e+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:  1.143e+00  1.769e-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:  9.249e-01  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 169.766 12.587
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.20e-08 +/- 5.35e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.61e-05

TS (Fixed Index): 1.88
Ra Dec: 169.766 12.587
Photon Flux Upper Limit: 1.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/666477/likelihoodResults_500860801_501120001_4FGL_J1119.0+1235_daily_bin1009.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) = 5278.68281634
delta logL = 1.70099805185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5278.60519569
delta logL = 1.77861870024

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0215       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5749       1.0000          .0000       5.0000    
     3 'Normalizat'    .79416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2367       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=   5278.605     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      264 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0166        43.039        .50273E-02    .25251E-03
   2  alpha         4.5773        3.7551        .40835       -.39416E-05
   3  Normalizat    .79407        .10932        .63057E-01    .18398E-04
   4  Prefactor     1.2365        .10152        .50357E-01    .14054E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.0166
  alpha      = 4.57727
  Normalizat = 0.794068
  Prefactor  = 1.23653
 **********
 **   18 **HESSE 
 **********

 FCN=   5278.605     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      297 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0166        48.434        .69367E-04   -1.5307    
   2  alpha         4.5773        4.1647        .21024E-01    .98074    
   3  Normalizat    .79407        .21280        .27893E-03   -1.0029    
   4  Prefactor     1.2365        .20943        .22262E-03   -.85215    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.65121e-09
Minuit parameter uncertainties:
  1  27.9232
  2  5.00455
  3  0.213025
  4  0.209567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/666477': 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) = 5278.60518522
delta logL = 1.77862917522

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  4.017e+00  2.792e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        alpha:  4.577e+00  5.005e+00  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:  1.237e+00  2.096e-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:  7.941e-01  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.96
Ra Dec: 169.766 12.587
Photon Index (Free Index): 4.58 +/- 5.00
Photon Flux (Free Index): 1.57e-07 +/- 8.44e-08
Energy Flux (Free Index): 2.30e-05 +/- 2.18e-05

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/666477/cmap_HighResolution_500860801_501120001_4FGL_J1119.0+1235_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-05', comment='SUCCESS', photon_flux='6.20e-08', energy_flux2='2.30e-05', photon_flux_error='5.35e-08', dlogl='1.78e+00', energy_flux='1.87e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-03 16:04:57.675571', photon_index_error2='5.00', photon_index2='4.58', ts='1.88', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='2.18e-05', EG='0.92', time_epoch_completed='1630710297.68', return_code='0', job_id='666477', GAL2='1.24', EG2='0.79', return_code2='102', energy_flux_error='1.61e-05', photon_flux_error2='8.44e-08', ts2='5.96', photon_index='2.41' WHERE bin_id='1009' AND source_name='4FGL J1119.0+1235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 16:04:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 666477: <4FGL_J1119.0+1235_daily_bin1009> in cluster <slac> Done

Job <4FGL_J1119.0+1235_daily_bin1009> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 15:51:10 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 15:52:21 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:52:21 2021
Terminated at Fri Sep  3 16:04:58 2021
Results reported at Fri Sep  3 16:04:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1119.0+1235_daily_bin1009 169.766 12.5866 500860801 501120001 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 :                                   571.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            828 sec.

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

