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


Performing analysis on: 4FGL_J1119.0+1235_daily_bin1469
RA = 169.766, Dec = 12.5866
tmin = 620092801, tmax = 620352001
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='668634', job_status='RUN', time_executed='2021-09-03 15:59:48.311917', time_epoch_executed='1630709988.31' WHERE source_name='4FGL J1119.0+1235' and cadence='daily' and bin_id='1469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/668634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/668634/ft1_4FGL_J1119.0+1235_daily_bin1469.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/668634/ft2_4FGL_J1119.0+1235_daily_bin1469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/668634/ft1_4FGL_J1119.0+1235_daily_bin1469.fits outfile=/scratch/kocevski/668634/ft1_filteredMKT_4FGL_J1119.0+1235_daily_bin1469.fits ra=169.766 dec=12.5866 rad=12.0 tmin=620092801.0 tmax=620352001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.51
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/668634/ft1_filtered_4FGL_J1119.0+1235_daily_bin1469.fits" evtable="EVENTS" scfile=/scratch/kocevski/668634/ft2_4FGL_J1119.0+1235_daily_bin1469.fits sctable="SC_DATA" outfile=/scratch/kocevski/668634/ltcube_620092801_620352001_4FGL_J1119.0+1235_daily_bin1469.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/668634/ft2_4FGL_J1119.0+1235_daily_bin1469.fits
.....................!
real 14.20
user 13.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/668634/ft1_filtered_4FGL_J1119.0+1235_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/668634/ft2_4FGL_J1119.0+1235_daily_bin1469.fits sctable="SC_DATA" expcube=/scratch/kocevski/668634/ltcube_620092801_620352001_4FGL_J1119.0+1235_daily_bin1469.fits outfile=/scratch/kocevski/668634/expmap_620092801_620352001_4FGL_J1119.0+1235_daily_bin1469.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/668634/ltcube_620092801_620352001_4FGL_J1119.0+1235_daily_bin1469.fits
.....................!
real 191.51
user 185.92
sys 5.13

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/668634/ft1_filtered_4FGL_J1119.0+1235_daily_bin1469.fits scfile=/scratch/kocevski/668634/ft2_4FGL_J1119.0+1235_daily_bin1469.fits outfile=/scratch/kocevski/668634/cmap_620092801_620352001_4FGL_J1119.0+1235_daily_bin1469.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/668634/ft1_filtered_4FGL_J1119.0+1235_daily_bin1469.fits scfile=/scratch/kocevski/668634/ft2_4FGL_J1119.0+1235_daily_bin1469.fits outfile=/scratch/kocevski/668634/cmap_HighResolution_620092801_620352001_4FGL_J1119.0+1235_daily_bin1469.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.110       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.349       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3659       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2405       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .53772E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    23.729       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.775       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2647       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.202       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0709       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4885       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=   6166.148     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     1980 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5249       -.31257E-07** at limit **
   2  Prefactor     .10000E-03    6.3540       -.23690E-06** at limit **
   3  Prefactor     13.108        11.800       -.19102E-05   -.34014E-04
   4  Prefactor     16.350        10.920       -.12997E-05    .26228E-04
   5  Prefactor     7.3653        10.106       -.46273E-06   -.35586E-04
   6  Prefactor     .10000E-03    5.8758       -.17691E-05** at limit **
   7  Prefactor     .10000E-03    5.3622        .16233E-05** at limit **
   8  norm          1.2406        1.4107       -.68311E-06   -.76016E-03
   9  Prefactor     .10001E-03    39.977        .18385E-04** at limit **
  10  Prefactor     .10000E-03    3.2049       -.13423E-06** at limit **
  11  norm          23.734        15.274        .51032E-05    .16996E-03
  12  Prefactor     .10000E-03    3.7845       -.10222E-05** at limit **
  13  Prefactor     13.733        48.653       -.10166E-03    .23647E-04
  14  Prefactor     .10000E-03    3.4600        .82423E-06** at limit **
  15  Prefactor     .10000E-03    34.664       -.29637E-05** at limit **
  16  Prefactor     .10000E-03    3.2091       -.24963E-07** at limit **
  17  Prefactor     1.2698        21.666       -.14178E-05   -.19796E-03
  18  Prefactor     28.148        67.170       -.95317E-04    .14372E-04
  19  Normalizat    1.0708        .20919        .10656E-04   -.20020E-03
  20  Prefactor     1.4886        .19853        .11875E-05    .21695E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1085
  Prefactor  = 16.3496
  Prefactor  = 7.36533
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.2406
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 23.7336
  Prefactor  = 0.0001
  Prefactor  = 13.7326
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.26977
  Prefactor  = 28.1485
  Normalizat = 1.07077
  Prefactor  = 1.48861
 **********
 **   18 **HESSE 
 **********

 FCN=   6166.148     FROM HESSE     STATUS=OK           291 CALLS     2271 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5303        .94652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.4552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.108        11.799        .11063E-03   -1.4984    
   4  Prefactor     16.350        10.945        .99054E-04   -1.4899    
   5  Prefactor     7.3653        10.094        .14778E-03   -1.5165    
   6  Prefactor     .10000E-03    5.9009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.3662        .17756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2406        1.3903        .94476E-04   -1.5485    
   9  Prefactor     .10001E-03    41.514        .42242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2156        .13728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          23.734        15.265        .82230E-04   -1.4733    
  12  Prefactor     .10000E-03    3.7947        .14919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.733        48.817        .10792E-03   -1.4967    
  14  Prefactor     .10000E-03    3.4673        .14264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.2114        .13738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.2698        21.798        .39620E-03   -1.5483    
  18  Prefactor     28.148        67.025        .75440E-04   -1.4646    
  19  Normalizat    1.0708        .24569        .29596E-03   -.90696    
  20  Prefactor     1.4886        .23426        .25383E-03   -.77859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62038e-09
Minuit parameter uncertainties:
  1  9.57052e-06
  2  9.18554e-05
  3  11.8008
  4  10.9459
  5  10.0964
  6  3.05679e-05
  7  1.2909e-05
  8  1.39035
  9  0.00117553
  10  1.3602e-05
  11  15.2673
  12  4.5222e-06
  13  48.9594
  14  2.96033e-06
  15  2.96427e-06
  16  3.48368e-05
  17  10.5262
  18  67.205
  19  0.245953
  20  0.234433
Done.

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

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  2.373e+01  1.527e+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.489e+00  2.344e-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.071e+00  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.34
Ra Dec: 169.766 12.587
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.10e-08 +/- 4.57e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.38e-05

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) = 6166.04105478
delta logL = 0.106495091594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6166.03667441
delta logL = 0.110875459387

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.682       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7288       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0501       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5011       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6166.037     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      292 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.675        15.308        .86021E-04    .63834E-04
   2  alpha         2.7283        .70627        .15885E-01    .10668E-03
   3  Normalizat    1.0505        .24013        .29841E-03   -.55431E-04
   4  Prefactor     1.5008        .23413        .25297E-03    .81773E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.6749
  alpha      = 2.72827
  Normalizat = 1.05045
  Prefactor  = 1.50081
 **********
 **   18 **HESSE 
 **********

 FCN=   6166.037     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.675        15.008        .34408E-05   -1.4777    
   2  alpha         2.7283        .69216        .31770E-02    .91436E-01
   3  Normalizat    1.0505        .24019        .11937E-04   -.91359    
   4  Prefactor     1.5008        .23420        .50595E-04   -.77517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.24204e-11
Minuit parameter uncertainties:
  1  15.0104
  2  0.701407
  3  0.240443
  4  0.234364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/668634': 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) = 6166.03667261
delta logL = 0.110877261241

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  2.167e+01  1.501e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        alpha:  2.728e+00  7.014e-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:  1.501e+00  2.344e-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.050e+00  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.57
Ra Dec: 169.766 12.587
Photon Index (Free Index): 2.73 +/- 0.70
Photon Flux (Free Index): 8.83e-08 +/- 6.32e-08
Energy Flux (Free Index): 2.17e-05 +/- 1.32e-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/668634/cmap_HighResolution_620092801_620352001_4FGL_J1119.0+1235_daily_bin1469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.10e-08', energy_flux2='2.17e-05', photon_flux_error='4.57e-08', dlogl='1.11e-01', energy_flux='2.14e-05', photon_flux2='8.83e-08', job_status='DONE', time_completed='2021-09-03 16:11:50.565745', photon_index_error2='0.70', photon_index2='2.73', ts='4.34', fit_tolerance='1e-08', GAL='1.49', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='1.07', time_epoch_completed='1630710710.57', return_code='0', job_id='668634', GAL2='1.50', EG2='1.05', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='6.32e-08', ts2='4.57', photon_index='2.41' WHERE bin_id='1469' AND source_name='4FGL J1119.0+1235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 16:11:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 668634: <4FGL_J1119.0+1235_daily_bin1469> in cluster <slac> Done

Job <4FGL_J1119.0+1235_daily_bin1469> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 15:56:28 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 15:57:22 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:22 2021
Terminated at Fri Sep  3 16:11:51 2021
Results reported at Fri Sep  3 16:11:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1119.0+1235_daily_bin1469 169.766 12.5866 620092801 620352001 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 :                                   572.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            923 sec.

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

