/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 161 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1119.9-1007_daily_bin395
RA = 169.986, Dec = -10.1288
tmin = 341712001, tmax = 341971201
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='671901', job_status='RUN', time_executed='2021-09-03 16:09:17.607317', time_epoch_executed='1630710557.61' WHERE source_name='4FGL J1119.9-1007' and cadence='daily' and bin_id='395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671901

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671901/ft1_4FGL_J1119.9-1007_daily_bin395.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671901/ft2_4FGL_J1119.9-1007_daily_bin395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671901/ft1_4FGL_J1119.9-1007_daily_bin395.fits outfile=/scratch/kocevski/671901/ft1_filteredMKT_4FGL_J1119.9-1007_daily_bin395.fits ra=169.986 dec=-10.1288 rad=12.0 tmin=341712001.0 tmax=341971201.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.45
user 3.23
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/671901/ft2_4FGL_J1119.9-1007_daily_bin395.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/671901/ft2_4FGL_J1119.9-1007_daily_bin395.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/671901/ft1_filteredMKT_4FGL_J1119.9-1007_daily_bin395.fits evtable="EVENTS" outfile="/scratch/kocevski/671901/ft1_filtered_4FGL_J1119.9-1007_daily_bin395.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/671901/ft1_filtered_4FGL_J1119.9-1007_daily_bin395.fits" evtable="EVENTS" scfile=/scratch/kocevski/671901/ft2_4FGL_J1119.9-1007_daily_bin395.fits sctable="SC_DATA" outfile=/scratch/kocevski/671901/ltcube_341712001_341971201_4FGL_J1119.9-1007_daily_bin395.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/671901/ft2_4FGL_J1119.9-1007_daily_bin395.fits
.....................!
real 17.90
user 17.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671901/ft1_filtered_4FGL_J1119.9-1007_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/671901/ft2_4FGL_J1119.9-1007_daily_bin395.fits sctable="SC_DATA" expcube=/scratch/kocevski/671901/ltcube_341712001_341971201_4FGL_J1119.9-1007_daily_bin395.fits outfile=/scratch/kocevski/671901/expmap_341712001_341971201_4FGL_J1119.9-1007_daily_bin395.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/671901/ltcube_341712001_341971201_4FGL_J1119.9-1007_daily_bin395.fits
.....................!
real 192.25
user 187.03
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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1119.9-1007 @ 169.986 -10.1288

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/671901/ft1_filtered_4FGL_J1119.9-1007_daily_bin395.fits scfile=/scratch/kocevski/671901/ft2_4FGL_J1119.9-1007_daily_bin395.fits outfile=/scratch/kocevski/671901/cmap_341712001_341971201_4FGL_J1119.9-1007_daily_bin395.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.986 yref=-10.1288 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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671901/ft1_filtered_4FGL_J1119.9-1007_daily_bin395.fits scfile=/scratch/kocevski/671901/ft2_4FGL_J1119.9-1007_daily_bin395.fits outfile=/scratch/kocevski/671901/cmap_HighResolution_341712001_341971201_4FGL_J1119.9-1007_daily_bin395.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.986 yref=-10.1288 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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/671901/ft1_filtered_4FGL_J1119.9-1007_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/671901/ft2_4FGL_J1119.9-1007_daily_bin395.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/671901/Model_4FGL_J1119.9-1007_daily_bin395.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/671901/ft1_filtered_4FGL_J1119.9-1007_daily_bin395.fits.....................!
real 57.01
user 55.52
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/671901/ft1_filtered_4FGL_J1119.9-1007_daily_bin395.fits', '/scratch/kocevski/671901/ft2_4FGL_J1119.9-1007_daily_bin395.fits', expMap='/scratch/kocevski/671901/expmap_341712001_341971201_4FGL_J1119.9-1007_daily_bin395.fits', expCube='/scratch/kocevski/671901/ltcube_341712001_341971201_4FGL_J1119.9-1007_daily_bin395.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/671901/Model_4FGL_J1119.9-1007_daily_bin395.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1119.9-1007'

4FGL J1119.9-1007
   Spectrum: PowerLaw
291    Prefactor:  4.961e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
292        Index:  2.154e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  1.951e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/671901/ft1_filtered_4FGL_J1119.9-1007_daily_bin395.fits
Spacecraft file(s): /scratch/kocevski/671901/ft2_4FGL_J1119.9-1007_daily_bin395.fits
Exposure map: /scratch/kocevski/671901/expmap_341712001_341971201_4FGL_J1119.9-1007_daily_bin395.fits
Exposure cube: /scratch/kocevski/671901/ltcube_341712001_341971201_4FGL_J1119.9-1007_daily_bin395.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/671901/Model_4FGL_J1119.9-1007_daily_bin395.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) = 5968.97642421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.816       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.067       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.501       1.0000         .10000E-03   10000.    
     9 'Prefactor '    76.092       1.0000         .10000E-03   10000.    
    10 'norm      '    13.721       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4795       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.536       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0357       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .19595       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2603       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4160       1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.259       1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.991       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0983       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88413       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5968.974     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2723 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.818        8.2777        .87187E-08   -.21888E-04
   2  Prefactor     11.069        20.001        .11911E-06    .16112E-05
   3  Prefactor     .10000E-03    43.802        .38666E-06** at limit **
   4  Prefactor     .10000E-03    9.5002        .73249E-07** at limit **
   5  Prefactor     .10000E-03    6.9726        .50901E-09** at limit **
   6  Prefactor     .10000E-03    2.4748       -.12551E-08** at limit **
   7  Prefactor     .10000E-03    66.153       -.76669E-05** at limit **
   8  norm          11.511        12.662       -.12819E-05   -.99977E-04
   9  Prefactor     76.093        72.033       -.14622E-06   -.48028E-05
  10  norm          13.722        2.5856        .26376E-07   -.55192E-05
  11  Prefactor     5.4690        6.2302        .21306E-05    .35475E-03
  12  Prefactor     16.540        11.991        .16732E-06    .46677E-05
  13  norm          .10000E-03    8.1847        .10218E-07** at limit **
  14  Prefactor     1.0359        1.7348        .37041E-07    .25168E-04
  15  Prefactor     .10000E-03    93.234        .73499E-05** at limit **
  16  Prefactor     .10000E-03    31.385       -.16616E-05** at limit **
  17  norm          .26595        10.865        .29612E-05   -.52464E-03
  18  Prefactor     2.2496        4.0653       -.96511E-07   -.40660E-03
  19  Prefactor     5.4232        17.335        .76915E-06   -.21210E-04
  20  Prefactor     39.253        36.542        .54165E-06   -.42096E-04
  21  Prefactor     31.982        20.421       -.26974E-06   -.16320E-03
  22  Prefactor     .10000E-03    33.953        .14672E-05** at limit **
  23  Normalizat    1.0982        .22994       -.18870E-05   -.20236E-03
  24  Prefactor     .88408        .15469        .56996E-06   -.25497E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.8179
  Prefactor  = 11.0689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 11.5109
  Prefactor  = 76.0932
  norm       = 13.7221
  Prefactor  = 5.469
  Prefactor  = 16.54
  norm       = 0.0001
  Prefactor  = 1.03589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.265946
  Prefactor  = 2.24956
  Prefactor  = 5.42317
  Prefactor  = 39.2526
  Prefactor  = 31.9816
  Prefactor  = 0.0001
  Normalizat = 1.09816
  Prefactor  = 0.884079
 **********
 **   18 **HESSE 
 **********

 FCN=   5968.974     FROM HESSE     STATUS=OK           399 CALLS     3122 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.818        8.2783        .94889E-04   -1.4863    
   2  Prefactor     11.069        19.998        .12043E-03   -1.5042    
   3  Prefactor     .10000E-03    43.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.5532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.0268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4927        .11847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    66.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.511        12.734        .11813E-03   -1.5029    
   9  Prefactor     76.093        72.083        .46032E-04   -1.3961    
  10  norm          13.722        2.5871        .50149E-04   -1.4967    
  11  Prefactor     5.4690        6.4152        .85825E-03   -1.5240    
  12  Prefactor     16.540        11.997        .98492E-04   -1.4894    
  13  norm          .10000E-03    8.1867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0359        1.4400        .12771E-02   -1.5504    
  15  Prefactor     .10000E-03    94.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .26595        47.655        .36398E-02   -1.5605    
  18  Prefactor     2.2496        3.9813        .17609E-03   -1.5408    
  19  Prefactor     5.4232        17.246        .17267E-03   -1.5242    
  20  Prefactor     39.253        36.501        .63971E-04   -1.4454    
  21  Prefactor     31.982        20.424        .70843E-04   -1.4576    
  22  Prefactor     .10000E-03    33.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0982        .26705        .30310E-03   -.89811    
  24  Prefactor     .88408        .18166        .23271E-03   -.96700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78636e-09
Minuit parameter uncertainties:
  1  8.27885
  2  20.0098
  3  3.5053e-05
  4  6.99322e-06
  5  5.21142e-07
  6  1.24439e-06
  7  0.000774218
  8  12.7368
  9  72.1661
  10  2.58716
  11  6.41599
  12  11.9992
  13  2.57856e-06
  14  1.44005
  15  0.000413675
  16  0.000114485
  17  7.12447
  18  3.98174
  19  17.2614
  20  36.5221
  21  20.4289
  22  5.29359e-05
  23  0.267374
  24  0.181786
Done.

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

Extracting fit parameters...

4FGL J1119.9-1007
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  7.742e-04  1.000e-04  1.000e+04 ( 1.000e-14)
292        Index:  2.154e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  1.951e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  8.841e-01  1.818e-01  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
612   Normalization:  1.098e+00  2.674e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 169.986 -10.129
Photon Flux Upper Limit: 9.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/671901/likelihoodResults_341712001_341971201_4FGL_J1119.9-1007_daily_bin395.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5968.97361077
delta logL = -7.14112038622e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5968.97353933
delta logL = 2.92229742627e-08

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 'Index     '    2.2038       1.0000          .0000       10.000    
     3 'Normalizat'    1.0982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88408       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5968.974     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    167.56        .90712E-02** at limit **
   2  Index         2.2249        5.6997        .50000       -.26807E-05
   3  Normalizat    1.0982        .21665        .68509E-01    .24128E-04
   4  Prefactor     .88408        .15181        .44802E-01    .24341E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.22487
  Normalizat = 1.09816
  Prefactor  = 0.884079
 **********
 **   18 **HESSE 
 **********

 FCN=   5968.974     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8898.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2249        5.7959        .50000       -.58839    
   3  Normalizat    1.0982        .10001        .30310E-03   -.89811    
   4  Prefactor     .88408        .70117E-01    .23271E-03   -.96700    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.17223e-10
Minuit parameter uncertainties:
  1  0.00745508
  2  54.236
  3  0.100022
  4  0.0701246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671901': 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) = 5968.97353931
delta logL = 4.30645741289e-08

Extracting fit parameters...

4FGL J1119.9-1007
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  7.455e-03  1.000e-04  1.000e+04 ( 1.000e-14)
292        Index:  2.225e+00  5.424e+01  0.000e+00  1.000e+01 (-1.000e+00)
293        Scale:  1.951e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  8.841e-01  7.012e-02  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
612   Normalization:  1.098e+00  1.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 169.986 -10.129

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/671901/cmap_HighResolution_341712001_341971201_4FGL_J1119.9-1007_daily_bin395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', job_status='DONE', photon_flux_upper_limit='9.16e-08', time_completed='2021-09-03 16:21:24.511430', job_id='671901', GAL2='0.88', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630711284.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.31e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='395' AND source_name='4FGL J1119.9-1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 16:21:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 671901: <4FGL_J1119.9-1007_daily_bin395> in cluster <slac> Done

Job <4FGL_J1119.9-1007_daily_bin395> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep  3 16:06:05 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 16:06:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 16:06:26 2021
Terminated at Fri Sep  3 16:21:25 2021
Results reported at Fri Sep  3 16:21:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1119.9-1007_daily_bin395 169.986 -10.1288 341712001 341971201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1119.9-1007 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   725.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            920 sec.

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

