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


Performing analysis on: 4FGL_J1119.9-1007_daily_bin284
RA = 169.986, Dec = -10.1288
tmin = 312940801, tmax = 313200001
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='670633', job_status='RUN', time_executed='2021-09-03 16:05:23.964026', time_epoch_executed='1630710323.96' WHERE source_name='4FGL J1119.9-1007' and cadence='daily' and bin_id='284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670633

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670633/ft1_4FGL_J1119.9-1007_daily_bin284.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670633/ft2_4FGL_J1119.9-1007_daily_bin284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670633/ft1_4FGL_J1119.9-1007_daily_bin284.fits outfile=/scratch/kocevski/670633/ft1_filteredMKT_4FGL_J1119.9-1007_daily_bin284.fits ra=169.986 dec=-10.1288 rad=12.0 tmin=312940801.0 tmax=313200001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.91
user 2.69
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/670633/ft2_4FGL_J1119.9-1007_daily_bin284.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/670633/ft1_filteredMKT_4FGL_J1119.9-1007_daily_bin284.fits evtable="EVENTS" outfile="/scratch/kocevski/670633/ft1_filtered_4FGL_J1119.9-1007_daily_bin284.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.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670633/ft1_filtered_4FGL_J1119.9-1007_daily_bin284.fits" evtable="EVENTS" scfile=/scratch/kocevski/670633/ft2_4FGL_J1119.9-1007_daily_bin284.fits sctable="SC_DATA" outfile=/scratch/kocevski/670633/ltcube_312940801_313200001_4FGL_J1119.9-1007_daily_bin284.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/670633/ft2_4FGL_J1119.9-1007_daily_bin284.fits
.....................!
real 15.79
user 15.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670633/ft1_filtered_4FGL_J1119.9-1007_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/670633/ft2_4FGL_J1119.9-1007_daily_bin284.fits sctable="SC_DATA" expcube=/scratch/kocevski/670633/ltcube_312940801_313200001_4FGL_J1119.9-1007_daily_bin284.fits outfile=/scratch/kocevski/670633/expmap_312940801_313200001_4FGL_J1119.9-1007_daily_bin284.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/670633/ltcube_312940801_313200001_4FGL_J1119.9-1007_daily_bin284.fits
.....................!
real 159.62
user 154.76
sys 4.32

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/670633/ft1_filtered_4FGL_J1119.9-1007_daily_bin284.fits scfile=/scratch/kocevski/670633/ft2_4FGL_J1119.9-1007_daily_bin284.fits outfile=/scratch/kocevski/670633/cmap_312940801_313200001_4FGL_J1119.9-1007_daily_bin284.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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670633/ft1_filtered_4FGL_J1119.9-1007_daily_bin284.fits scfile=/scratch/kocevski/670633/ft2_4FGL_J1119.9-1007_daily_bin284.fits outfile=/scratch/kocevski/670633/cmap_HighResolution_312940801_313200001_4FGL_J1119.9-1007_daily_bin284.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.50
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/670633/ft1_filtered_4FGL_J1119.9-1007_daily_bin284.fits evtable="EVENTS" scfile=/scratch/kocevski/670633/ft2_4FGL_J1119.9-1007_daily_bin284.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/670633/Model_4FGL_J1119.9-1007_daily_bin284.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/670633/ft1_filtered_4FGL_J1119.9-1007_daily_bin284.fits.....................!
real 49.34
user 47.86
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/670633/ft1_filtered_4FGL_J1119.9-1007_daily_bin284.fits', '/scratch/kocevski/670633/ft2_4FGL_J1119.9-1007_daily_bin284.fits', expMap='/scratch/kocevski/670633/expmap_312940801_313200001_4FGL_J1119.9-1007_daily_bin284.fits', expCube='/scratch/kocevski/670633/ltcube_312940801_313200001_4FGL_J1119.9-1007_daily_bin284.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/670633/Model_4FGL_J1119.9-1007_daily_bin284.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/670633/ft1_filtered_4FGL_J1119.9-1007_daily_bin284.fits
Spacecraft file(s): /scratch/kocevski/670633/ft2_4FGL_J1119.9-1007_daily_bin284.fits
Exposure map: /scratch/kocevski/670633/expmap_312940801_313200001_4FGL_J1119.9-1007_daily_bin284.fits
Exposure cube: /scratch/kocevski/670633/ltcube_312940801_313200001_4FGL_J1119.9-1007_daily_bin284.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/670633/Model_4FGL_J1119.9-1007_daily_bin284.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) = 6151.74008501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.037       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.074       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7693       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.477       1.0000         .10000E-03   10000.    
     7 'Prefactor '    94.982       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.225       1.0000         .10000E-03   10000.    
    10 'norm      '    3.0435       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.3812       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7950       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.915       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.7043       1.0000         .10000E-03   10000.    
    17 'norm      '    15.386       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5707       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2435       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.418       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2268       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78538       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=   6151.732     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2676 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.037        6.9864        .13528E-06   -.16321E-04
   2  Prefactor     .10001E-03    48.459       -.16279E-05** at limit **
   3  Prefactor     36.094        86.207        .26927E-04    .44818E-04
   4  Prefactor     5.7697        14.134        .48152E-07   -.19042E-04
   5  Prefactor     .10000E-03    4.8340        .83180E-08** at limit **
   6  Prefactor     18.477        7.1501        .19283E-06   -.27047E-04
   7  Prefactor     94.983        79.054        .72994E-06   -.31347E-05
   8  norm          .10000E-03    4.3042        .20107E-08** at limit **
   9  Prefactor     35.227        37.506        .26795E-05    .20526E-04
  10  norm          3.0435        1.2836       -.14210E-06   -.11755E-03
  11  Prefactor     .10000E-03    1.1008       -.52238E-08** at limit **
  12  Prefactor     9.3813        9.5305        .12670E-06   -.27089E-04
  13  norm          .10000E-03    10.740       -.18475E-07** at limit **
  14  Prefactor     5.7951        3.1457        .54125E-07   -.29627E-04
  15  Prefactor     19.917        26.208        .20188E-05    .81136E-05
  16  Prefactor     9.7029        18.569       -.50396E-06   -.10614E-04
  17  norm          15.386        8.0197        .24106E-07   -.18872E-04
  18  Prefactor     .10000E-03    1.7099       -.57713E-07** at limit **
  19  Prefactor     1.5686        5.6112        .17750E-05   -.75504E-03
  20  Prefactor     8.2436        30.022        .83462E-07   -.35414E-05
  21  Prefactor     18.419        24.992        .11841E-05   -.72459E-06
  22  Prefactor     .10000E-03    14.608       -.26387E-07** at limit **
  23  Normalizat    1.2268        .22855       -.15617E-05    .18234E-04
  24  Prefactor     .78540        .14595       -.64529E-06   -.41772E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0369
  Prefactor  = 0.000100011
  Prefactor  = 36.0943
  Prefactor  = 5.76969
  Prefactor  = 0.0001
  Prefactor  = 18.4773
  Prefactor  = 94.9826
  norm       = 0.0001
  Prefactor  = 35.2273
  norm       = 3.04347
  Prefactor  = 0.0001
  Prefactor  = 9.38134
  norm       = 0.0001
  Prefactor  = 5.79507
  Prefactor  = 19.917
  Prefactor  = 9.70292
  norm       = 15.3859
  Prefactor  = 0.0001
  Prefactor  = 1.56858
  Prefactor  = 8.2436
  Prefactor  = 18.4189
  Prefactor  = 0.0001
  Normalizat = 1.22682
  Prefactor  = 0.785399
 **********
 **   18 **HESSE 
 **********

 FCN=   6151.732     FROM HESSE     STATUS=OK           401 CALLS     3077 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.037        6.9936        .11094E-03   -1.4986    
   2  Prefactor     .10001E-03    49.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.094        86.316        .66725E-04   -1.4506    
   4  Prefactor     5.7697        14.122        .16722E-03   -1.5228    
   5  Prefactor     .10000E-03    4.8385        .16832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.477        7.1739        .93176E-04   -1.4848    
   7  Prefactor     94.983        79.029        .41240E-04   -1.3756    
   8  norm          .10000E-03    4.3203        .15882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     35.227        37.493        .67522E-04   -1.4520    
  10  norm          3.0435        1.2840        .55021E-04   -1.5359    
  11  Prefactor     .10000E-03    1.1018        .80338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.3813        9.5394        .13084E-03   -1.5095    
  13  norm          .10000E-03    10.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.7951        3.1491        .98917E-04   -1.5226    
  15  Prefactor     19.917        26.191        .89751E-04   -1.4815    
  16  Prefactor     9.7029        18.567        .12864E-03   -1.5085    
  17  norm          15.386        8.0230        .10211E-03   -1.4923    
  18  Prefactor     .10000E-03    1.7201        .99993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.5686        31.638        .16960E-02   -1.5457    
  20  Prefactor     8.2436        29.989        .13963E-03   -1.5134    
  21  Prefactor     18.419        25.111        .93326E-04   -1.4849    
  22  Prefactor     .10000E-03    14.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2268        .27145        .28852E-03   -.85778    
  24  Prefactor     .78540        .17286        .23497E-03   -1.0027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.33372e-09
Minuit parameter uncertainties:
  1  6.99403
  2  0.00150941
  3  86.6168
  4  14.1303
  5  2.03059e-06
  6  7.17427
  7  79.1164
  8  3.94455e-08
  9  37.5178
  10  1.284
  11  9.31426e-07
  12  9.54099
  13  1.07117e-05
  14  3.14924
  15  26.2062
  16  18.5778
  17  8.02352
  18  9.70973e-08
  19  14.0974
  20  30.0442
  21  25.1254
  22  2.89627e-06
  23  0.271764
  24  0.172981
Done.

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

Extracting fit parameters...

4FGL J1119.9-1007
   Spectrum: PowerLaw
291    Prefactor:  9.498e+01  7.912e+01  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:  7.854e-01  1.730e-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.227e+00  2.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.07
Ra Dec: 169.986 -10.129
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.95e-08 +/- 4.12e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 2.02e-05

TS (Fixed Index): 2.07
Ra Dec: 169.986 -10.129
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670633/likelihoodResults_312940801_313200001_4FGL_J1119.9-1007_daily_bin284.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) = 6151.73134191
delta logL = 0.00078399368067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6151.7306179
delta logL = 0.00150800207575

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    98.909       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1240       1.0000          .0000       10.000    
     3 'Normalizat'    1.2279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78482       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6151.731     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      273 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     99.001        115.36        .20210E-03   -.47814E-05
   2  Index         2.1236        .57700        .63224E-02    .19382E-04
   3  Normalizat    1.2284        .25333        .28837E-03    .32722E-05
   4  Prefactor     .78452        .17031        .23509E-03   -.13541E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 99.0014
  Index      = 2.12358
  Normalizat = 1.22844
  Prefactor  = 0.78452
 **********
 **   18 **HESSE 
 **********

 FCN=   6151.731     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .58E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     99.001        108.19        .80842E-05   -1.3715    
   2  Index         2.1236        .54099        .25290E-03   -.61295    
   3  Normalizat    1.2284        .25323        .11535E-04   -.85728    
   4  Prefactor     .78452        .17024        .94035E-05   -1.0030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77667e-13
Minuit parameter uncertainties:
  1  108.407
  2  0.542575
  3  0.253483
  4  0.170357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670633': 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) = 6151.73061544
delta logL = 0.00151046562132

Extracting fit parameters...

4FGL J1119.9-1007
   Spectrum: PowerLaw
291    Prefactor:  9.900e+01  1.084e+02  1.000e-04  1.000e+04 ( 1.000e-14)
292        Index:  2.124e+00  5.426e-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:  7.845e-01  1.704e-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.228e+00  2.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.06
Ra Dec: 169.986 -10.129
Photon Index (Free Index): 2.12 +/- 0.54
Photon Flux (Free Index): 4.84e-08 +/- 4.42e-08
Energy Flux (Free Index): 2.53e-05 +/- 2.77e-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/670633/cmap_HighResolution_312940801_313200001_4FGL_J1119.9-1007_daily_bin284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='4.95e-08', energy_flux2='2.53e-05', photon_flux_error='4.12e-08', dlogl='1.51e-03', energy_flux='2.43e-05', photon_flux2='4.84e-08', job_status='DONE', time_completed='2021-09-03 16:15:35.602576', photon_index_error2='0.54', photon_index2='2.12', ts='2.07', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='2.77e-05', EG='1.23', time_epoch_completed='1630710935.6', return_code='0', job_id='670633', GAL2='0.78', EG2='1.23', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='4.42e-08', ts2='2.06', photon_index='2.15' WHERE bin_id='284' AND source_name='4FGL J1119.9-1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 16:15:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 670633: <4FGL_J1119.9-1007_daily_bin284> in cluster <slac> Done

Job <4FGL_J1119.9-1007_daily_bin284> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 16:02:09 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 16:04:01 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:04:01 2021
Terminated at Fri Sep  3 16:15:36 2021
Results reported at Fri Sep  3 16:15:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1119.9-1007_daily_bin284 169.986 -10.1288 312940801 313200001 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 :                                   604.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            807 sec.

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

