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


Performing analysis on: 4FGL_J1119.0+1235_daily_bin24
RA = 169.766, Dec = 12.5866
tmin = 245548801, tmax = 245808001
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='658382', job_status='RUN', time_executed='2021-09-03 15:35:35.934518', time_epoch_executed='1630708535.93' WHERE source_name='4FGL J1119.0+1235' and cadence='daily' and bin_id='24'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/658382

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/658382/ft1_4FGL_J1119.0+1235_daily_bin24.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/658382/ft2_4FGL_J1119.0+1235_daily_bin24.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/658382/ft1_4FGL_J1119.0+1235_daily_bin24.fits outfile=/scratch/kocevski/658382/ft1_filteredMKT_4FGL_J1119.0+1235_daily_bin24.fits ra=169.766 dec=12.5866 rad=12.0 tmin=245548801.0 tmax=245808001.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.47
user 1.26
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/658382/ft1_filtered_4FGL_J1119.0+1235_daily_bin24.fits evtable="EVENTS" scfile=/scratch/kocevski/658382/ft2_4FGL_J1119.0+1235_daily_bin24.fits sctable="SC_DATA" expcube=/scratch/kocevski/658382/ltcube_245548801_245808001_4FGL_J1119.0+1235_daily_bin24.fits outfile=/scratch/kocevski/658382/expmap_245548801_245808001_4FGL_J1119.0+1235_daily_bin24.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/658382/ltcube_245548801_245808001_4FGL_J1119.0+1235_daily_bin24.fits
.....................!
real 194.61
user 188.93
sys 4.86

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/658382/ft1_filtered_4FGL_J1119.0+1235_daily_bin24.fits scfile=/scratch/kocevski/658382/ft2_4FGL_J1119.0+1235_daily_bin24.fits outfile=/scratch/kocevski/658382/cmap_245548801_245808001_4FGL_J1119.0+1235_daily_bin24.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/658382/ft1_filtered_4FGL_J1119.0+1235_daily_bin24.fits scfile=/scratch/kocevski/658382/ft2_4FGL_J1119.0+1235_daily_bin24.fits outfile=/scratch/kocevski/658382/cmap_HighResolution_245548801_245808001_4FGL_J1119.0+1235_daily_bin24.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/658382/ft1_filtered_4FGL_J1119.0+1235_daily_bin24.fits evtable="EVENTS" scfile=/scratch/kocevski/658382/ft2_4FGL_J1119.0+1235_daily_bin24.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/658382/Model_4FGL_J1119.0+1235_daily_bin24.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/658382/ft1_filtered_4FGL_J1119.0+1235_daily_bin24.fits....................!
real 61.21
user 59.66
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1955       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3532       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9487       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.663       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17228E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .48463       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8106       1.0000         .10000E-03   10000.    
    11 'norm      '    4.4454       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23123E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.045       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .80036       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1791       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=   6189.140     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     1756 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1965        2.8111       -.17988E-06   -.31783E-04
   2  Prefactor     5.3555        7.2532        .39723E-06   -.44846E-04
   3  Prefactor     3.9491        7.1858        .32111E-05   -.34190E-04
   4  Prefactor     .10000E-03    2.4773        .28652E-07** at limit **
   5  Prefactor     47.659        14.969        .62923E-07   -.11013E-05
   6  Prefactor     .10000E-03    4.2741       -.93965E-07** at limit **
   7  Prefactor     .10000E-03    5.9290        .58471E-07** at limit **
   8  norm          .48506        1.1036        .15725E-06   -.55252E-04
   9  Prefactor     .10000E-03    9.7391        .15573E-07** at limit **
  10  Prefactor     9.8104        5.9065        .66902E-07   -.69212E-04
  11  norm          4.4424        10.438        .21525E-05   -.27547E-03
  12  Prefactor     .10000E-03    5.3588        .24835E-08** at limit **
  13  Prefactor     .10004E-03    158.74        .15876E-05** at limit **
  14  Prefactor     .10000E-03    11.077        .47933E-07** at limit **
  15  Prefactor     .10000E-03    107.37       -.15464E-05** at limit **
  16  Prefactor     .10000E-03    5.8030        .37811E-07** at limit **
  17  Prefactor     18.042        15.034        .19381E-06   -.36891E-04
  18  Prefactor     .10000E-03    30.666        .15806E-06** at limit **
  19  Normalizat    .80003        .17943       -.20801E-05   -.41437E-03
  20  Prefactor     1.1793        .16799        .39032E-07   -.48833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.1965
  Prefactor  = 5.35555
  Prefactor  = 3.94912
  Prefactor  = 0.0001
  Prefactor  = 47.659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.485065
  Prefactor  = 0.0001
  Prefactor  = 9.81042
  norm       = 4.4424
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.0419
  Prefactor  = 0.0001
  Normalizat = 0.80003
  Prefactor  = 1.17933
 **********
 **   18 **HESSE 
 **********

 FCN=   6189.140     FROM HESSE     STATUS=OK           289 CALLS     2045 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1965        2.7921        .14167E-03   -1.5412    
   2  Prefactor     5.3555        7.2555        .17370E-03   -1.5245    
   3  Prefactor     3.9491        7.1647        .10150E-02   -1.5310    
   4  Prefactor     .10000E-03    2.4806        .12090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     47.659        14.968        .58080E-04   -1.4326    
   6  Prefactor     .10000E-03    22.663        .31264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .48506        1.0751        .11703E-03   -1.5569    
   9  Prefactor     .10000E-03    9.7669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.8104        5.9066        .12794E-03   -1.5081    
  11  norm          4.4424        10.453        .95494E-03   -1.5286    
  12  Prefactor     .10000E-03    5.4184        .17783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10004E-03    164.15        .40188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    107.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.8822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.042        15.038        .94284E-04   -1.4858    
  18  Prefactor     .10000E-03    30.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .80003        .20260        .26598E-03   -1.0007    
  20  Prefactor     1.1793        .19148        .22163E-03   -.86970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.722e-10
Minuit parameter uncertainties:
  1  2.7923
  2  7.25667
  3  7.16623
  4  3.29179e-06
  5  14.9693
  6  0.000193269
  7  7.28392e-06
  8  1.07517
  9  5.31696e-06
  10  5.90692
  11  10.4569
  12  3.35316e-06
  13  0.00485472
  14  1.9104e-05
  15  0.000682911
  16  1.17036e-05
  17  15.0409
  18  1.54206e-06
  19  0.20279
  20  0.191594
Done.

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

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  4.442e+00  1.046e+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.179e+00  1.916e-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:  8.000e-01  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 169.766 12.587
Photon Flux Upper Limit: 8.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/658382/likelihoodResults_245548801_245808001_4FGL_J1119.0+1235_daily_bin24.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) = 6188.77649946
delta logL = 0.363894550785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6188.77149948
delta logL = 0.368894535538

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7786       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6034       1.0000          .0000       5.0000    
     3 'Normalizat'    .76351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1998       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=   6188.771     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7725        126.56        .51919E-02    .53320E-03
   2  alpha         3.6055        2.9500        .47921        .46499E-04
   3  Normalizat    .76337        .54059E-01    .43132E-01   -.10487E-03
   4  Prefactor     1.1999        .53496E-01    .49769E-01   -.18854E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.77247
  alpha      = 3.60554
  Normalizat = 0.763368
  Prefactor  = 1.19989
 **********
 **   18 **HESSE 
 **********

 FCN=   6188.771     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7725        9.9887        .16243E-03   -1.5319    
   2  alpha         3.6055        1.7690        .26503E-01    .45807    
   3  Normalizat    .76337        .19872        .27175E-03   -1.0144    
   4  Prefactor     1.1999        .19372        .22002E-03   -.86335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.10518e-11
Minuit parameter uncertainties:
  1  9.99307
  2  2.03837
  3  0.198906
  4  0.193832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/658382': 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) = 6188.77149819
delta logL = 0.36889582405

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  3.772e+00  9.993e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        alpha:  3.606e+00  2.038e+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.200e+00  1.938e-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.634e-01  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.00
Ra Dec: 169.766 12.587
Photon Index (Free Index): 3.61 +/- 2.04
Photon Flux (Free Index): 4.16e-08 +/- 4.80e-08
Energy Flux (Free Index): 7.31e-06 +/- 8.91e-06

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/658382/cmap_HighResolution_245548801_245808001_4FGL_J1119.0+1235_daily_bin24.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-05', comment='SUCCESS', energy_flux2='7.31e-06', dlogl='3.69e-01', photon_flux2='4.16e-08', job_status='DONE', time_completed='2021-09-03 15:45:42.420253', photon_index_error2='2.04', photon_index2='3.61', ts='0.22', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='8.72e-08', energy_flux_error2='8.91e-06', EG='0.80', time_epoch_completed='1630709142.42', return_code='0', job_id='658382', GAL2='1.20', EG2='0.76', return_code2='0', photon_flux_error2='4.80e-08', ts2='1.00', photon_index='2.41' WHERE bin_id='24' AND source_name='4FGL J1119.0+1235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 15:45:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 658382: <4FGL_J1119.0+1235_daily_bin24> in cluster <slac> Done

Job <4FGL_J1119.0+1235_daily_bin24> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 15:31:32 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 15:31:39 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:31:39 2021
Terminated at Fri Sep  3 15:45:43 2021
Results reported at Fri Sep  3 15:45:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1119.0+1235_daily_bin24 169.766 12.5866 245548801 245808001 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 :                                   605.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            851 sec.

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

