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


Performing analysis on: 4FGL_J1119.9-1007_daily_bin1231
RA = 169.986, Dec = -10.1288
tmin = 558403201, tmax = 558662401
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='677073', job_status='RUN', time_executed='2021-09-03 16:22:40.255205', time_epoch_executed='1630711360.26' WHERE source_name='4FGL J1119.9-1007' and cadence='daily' and bin_id='1231'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/677073

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/677073/ft1_4FGL_J1119.9-1007_daily_bin1231.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/677073/ft2_4FGL_J1119.9-1007_daily_bin1231.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/677073/ft1_4FGL_J1119.9-1007_daily_bin1231.fits outfile=/scratch/kocevski/677073/ft1_filteredMKT_4FGL_J1119.9-1007_daily_bin1231.fits ra=169.986 dec=-10.1288 rad=12.0 tmin=558403201.0 tmax=558662401.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.82
user 3.52
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/677073/ft1_filtered_4FGL_J1119.9-1007_daily_bin1231.fits" evtable="EVENTS" scfile=/scratch/kocevski/677073/ft2_4FGL_J1119.9-1007_daily_bin1231.fits sctable="SC_DATA" outfile=/scratch/kocevski/677073/ltcube_558403201_558662401_4FGL_J1119.9-1007_daily_bin1231.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/677073/ft2_4FGL_J1119.9-1007_daily_bin1231.fits
.....................!
real 14.22
user 13.73
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/677073/ft1_filtered_4FGL_J1119.9-1007_daily_bin1231.fits evtable="EVENTS" scfile=/scratch/kocevski/677073/ft2_4FGL_J1119.9-1007_daily_bin1231.fits sctable="SC_DATA" expcube=/scratch/kocevski/677073/ltcube_558403201_558662401_4FGL_J1119.9-1007_daily_bin1231.fits outfile=/scratch/kocevski/677073/expmap_558403201_558662401_4FGL_J1119.9-1007_daily_bin1231.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/677073/ltcube_558403201_558662401_4FGL_J1119.9-1007_daily_bin1231.fits
.....................!
real 193.82
user 187.93
sys 5.35

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/677073/ft1_filtered_4FGL_J1119.9-1007_daily_bin1231.fits scfile=/scratch/kocevski/677073/ft2_4FGL_J1119.9-1007_daily_bin1231.fits outfile=/scratch/kocevski/677073/cmap_558403201_558662401_4FGL_J1119.9-1007_daily_bin1231.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/677073/ft1_filtered_4FGL_J1119.9-1007_daily_bin1231.fits scfile=/scratch/kocevski/677073/ft2_4FGL_J1119.9-1007_daily_bin1231.fits outfile=/scratch/kocevski/677073/cmap_HighResolution_558403201_558662401_4FGL_J1119.9-1007_daily_bin1231.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/677073/ft1_filtered_4FGL_J1119.9-1007_daily_bin1231.fits evtable="EVENTS" scfile=/scratch/kocevski/677073/ft2_4FGL_J1119.9-1007_daily_bin1231.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/677073/Model_4FGL_J1119.9-1007_daily_bin1231.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/677073/ft1_filtered_4FGL_J1119.9-1007_daily_bin1231.fits.....................!
real 45.22
user 43.67
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    149.15       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.607       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.471       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .47969E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    99.082       1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .78188       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0768       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.369       1.0000         .10000E-03   10000.    
    17 'norm      '    10.628       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.101       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2870       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.722       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10636E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2089       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98889       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=   4389.492     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2848 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9630       -.18377E-06** at limit **
   2  Prefactor     .10000E-03    20.811        .66840E-06** at limit **
   3  Prefactor     149.29        141.63       -.10633E-04   -.10666E-04
   4  Prefactor     15.621        25.109       -.79267E-06   -.34947E-04
   5  Prefactor     13.443        16.801        .37329E-06   -.52104E-04
   6  Prefactor     .10006E-03    4.8035        .14720E-05** at limit **
   7  Prefactor     99.072        99.180        .94999E-06   -.97988E-06
   8  norm          .10000E-03    8.1081       -.65601E-06** at limit **
   9  Prefactor     .10000E-03    25.883       -.60186E-07** at limit **
  10  norm          .78134        1.5424        .48310E-06    .36758E-03
  11  Prefactor     .10000E-03    3.8737       -.80484E-07** at limit **
  12  Prefactor     .10000E-03    7.5173        .15034E-06** at limit **
  13  norm          .10000E-03    8.6021        .51197E-06** at limit **
  14  Prefactor     1.0774        2.5087       -.34741E-06   -.41448E-03
  15  Prefactor     .10000E-03    96.230       -.17297E-05** at limit **
  16  Prefactor     23.370        33.210       -.25267E-06    .13791E-05
  17  norm          10.626        11.077        .28984E-06    .44983E-04
  18  Prefactor     13.104        7.3977        .11691E-07    .95173E-04
  19  Prefactor     1.2486        113.40        .16856E-04    .22759E-04
  20  Prefactor     11.768        34.162       -.51649E-05   -.37435E-05
  21  Prefactor     .10000E-03    25.594       -.30368E-06** at limit **
  22  Prefactor     .10000E-03    22.699        .82463E-06** at limit **
  23  Normalizat    1.2083        .27426        .52708E-06   -.49139E-04
  24  Prefactor     .98903        .18237        .64468E-06    .25721E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 149.294
  Prefactor  = 15.6208
  Prefactor  = 13.4426
  Prefactor  = 0.000100059
  Prefactor  = 99.0719
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.781343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.07738
  Prefactor  = 0.000100001
  Prefactor  = 23.3695
  norm       = 10.6261
  Prefactor  = 13.1038
  Prefactor  = 1.2486
  Prefactor  = 11.7677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20834
  Prefactor  = 0.989034
 **********
 **   18 **HESSE 
 **********

 FCN=   4389.492     FROM HESSE     STATUS=OK           401 CALLS     3249 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.0070        .15799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     149.29        141.21        .16500E-03   -1.3258    
   4  Prefactor     15.621        25.078        .10138E-03   -1.4917    
   5  Prefactor     13.443        16.630        .10913E-03   -1.4975    
   6  Prefactor     .10006E-03    19.281        .25320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     99.072        99.160        .40386E-04   -1.3714    
   8  norm          .10000E-03    8.1466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .78134        1.5004        .10861E-03   -1.5531    
  11  Prefactor     .10000E-03    3.9067        .12718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.5637        .17732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.6003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0774        2.1936        .15478E-02   -1.5500    
  15  Prefactor     .10000E-03    97.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.370        33.220        .82860E-04   -1.4741    
  17  norm          10.626        11.075        .61450E-03   -1.5056    
  18  Prefactor     13.104        7.3998        .55332E-03   -1.4984    
  19  Prefactor     1.2486        115.86        .19533E-02   -1.5484    
  20  Prefactor     11.768        34.097        .11701E-03   -1.5022    
  21  Prefactor     .10000E-03    25.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2083        .32007        .29983E-03   -.86346    
  24  Prefactor     .98903        .21715        .22510E-03   -.93096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16311e-09
Minuit parameter uncertainties:
  1  1.55308e-05
  2  0.000129196
  3  141.526
  4  25.0947
  5  16.636
  6  0.00212552
  7  99.3268
  8  2.39999e-05
  9  1.31515e-05
  10  1.50044
  11  1.89849e-05
  12  1.31451e-05
  13  3.37166e-06
  14  2.19376
  15  0.000472321
  16  33.2461
  17  11.0773
  18  7.4003
  19  24.103
  20  34.1534
  21  4.03331e-05
  22  2.90539e-05
  23  0.320595
  24  0.217345
Done.

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

Extracting fit parameters...

4FGL J1119.9-1007
   Spectrum: PowerLaw
291    Prefactor:  9.907e+01  9.933e+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:  9.890e-01  2.173e-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.208e+00  3.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 169.986 -10.129
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 5.16e-08 +/- 5.17e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 2.54e-05

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

Saving results to:
/scratch/kocevski/677073/likelihoodResults_558403201_558662401_4FGL_J1119.9-1007_daily_bin1231.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) = 4389.48909403
delta logL = 0.00334658934025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4389.48492257
delta logL = 0.00751805200071

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    86.524       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2475       1.0000          .0000       10.000    
     3 'Normalizat'    1.2055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99031       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=   4389.485     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      268 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     86.638        150.57        .21595E-03    .11966E-03
   2  Index         2.2473        .87125        .62207E-02    .71670E-04
   3  Normalizat    1.2046        .31101        .30021E-03   -.13019E-03
   4  Prefactor     .99087        .21462        .22491E-03    .24125E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 86.6378
  Index      = 2.24732
  Normalizat = 1.20464
  Prefactor  = 0.990868
 **********
 **   18 **HESSE 
 **********

 FCN=   4389.485     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     86.638        133.78        .86381E-05   -1.3844    
   2  Index         2.2473        .77434        .24883E-03   -.58301    
   3  Normalizat    1.2046        .31085        .12008E-04   -.86460    
   4  Prefactor     .99087        .21452        .44982E-04   -.93035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.42735e-10
Minuit parameter uncertainties:
  1  134.245
  2  0.778853
  3  0.311326
  4  0.214708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/677073': 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) = 4389.48491835
delta logL = 0.00752226838813

Extracting fit parameters...

4FGL J1119.9-1007
   Spectrum: PowerLaw
291    Prefactor:  8.664e+01  1.342e+02  1.000e-04  1.000e+04 ( 1.000e-14)
292        Index:  2.247e+00  7.789e-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:  9.909e-01  2.147e-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.205e+00  3.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.56
Ra Dec: 169.986 -10.129
Photon Index (Free Index): 2.25 +/- 0.78
Photon Flux (Free Index): 5.52e-08 +/- 6.03e-08
Energy Flux (Free Index): 2.28e-05 +/- 2.95e-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/677073/cmap_HighResolution_558403201_558662401_4FGL_J1119.9-1007_daily_bin1231.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', comment='SUCCESS', photon_flux='5.16e-08', energy_flux2='2.28e-05', photon_flux_error='5.17e-08', dlogl='7.52e-03', energy_flux='2.53e-05', photon_flux2='5.52e-08', job_status='DONE', time_completed='2021-09-03 16:33:03.900751', photon_index_error2='0.78', photon_index2='2.25', ts='1.55', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='2.95e-05', EG='1.21', time_epoch_completed='1630711983.9', return_code='0', job_id='677073', GAL2='0.99', EG2='1.20', return_code2='0', energy_flux_error='2.54e-05', photon_flux_error2='6.03e-08', ts2='1.56', photon_index='2.15' WHERE bin_id='1231' AND source_name='4FGL J1119.9-1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 16:33:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 677073: <4FGL_J1119.9-1007_daily_bin1231> in cluster <slac> Done

Job <4FGL_J1119.9-1007_daily_bin1231> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 16:21:15 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 16:21:23 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:21:23 2021
Terminated at Fri Sep  3 16:33:04 2021
Results reported at Fri Sep  3 16:33:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1119.9-1007_daily_bin1231 169.986 -10.1288 558403201 558662401 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 :                                   617.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            709 sec.

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

