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


Performing analysis on: 4FGL_J2119.6-1105_daily_bin712
RA = 319.924, Dec = -11.091
tmin = 423878401, tmax = 424137601
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='451909', job_status='RUN', time_executed='2021-09-26 11:23:28.391265', time_epoch_executed='1632680608.39' WHERE source_name='4FGL J2119.6-1105' and cadence='daily' and bin_id='712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/451909

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/451909/ft1_4FGL_J2119.6-1105_daily_bin712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/451909/ft2_4FGL_J2119.6-1105_daily_bin712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/451909/ft1_4FGL_J2119.6-1105_daily_bin712.fits outfile=/scratch/kocevski/451909/ft1_filteredMKT_4FGL_J2119.6-1105_daily_bin712.fits ra=319.924 dec=-11.091 rad=12.0 tmin=423878401.0 tmax=424137601.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 5.37
user 5.04
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/451909/ft2_4FGL_J2119.6-1105_daily_bin712.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/451909/ft2_4FGL_J2119.6-1105_daily_bin712.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/451909/ft1_filteredMKT_4FGL_J2119.6-1105_daily_bin712.fits evtable="EVENTS" outfile="/scratch/kocevski/451909/ft1_filtered_4FGL_J2119.6-1105_daily_bin712.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/451909/ft1_filtered_4FGL_J2119.6-1105_daily_bin712.fits" evtable="EVENTS" scfile=/scratch/kocevski/451909/ft2_4FGL_J2119.6-1105_daily_bin712.fits sctable="SC_DATA" outfile=/scratch/kocevski/451909/ltcube_423878401_424137601_4FGL_J2119.6-1105_daily_bin712.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/451909/ft2_4FGL_J2119.6-1105_daily_bin712.fits
.....................!
real 13.82
user 13.40
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/451909/ft1_filtered_4FGL_J2119.6-1105_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/451909/ft2_4FGL_J2119.6-1105_daily_bin712.fits sctable="SC_DATA" expcube=/scratch/kocevski/451909/ltcube_423878401_424137601_4FGL_J2119.6-1105_daily_bin712.fits outfile=/scratch/kocevski/451909/expmap_423878401_424137601_4FGL_J2119.6-1105_daily_bin712.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/451909/ltcube_423878401_424137601_4FGL_J2119.6-1105_daily_bin712.fits
.....................!
real 194.33
user 186.96
sys 6.44

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 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J2119.6-1105 @ 319.924 -11.091

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/451909/ft1_filtered_4FGL_J2119.6-1105_daily_bin712.fits scfile=/scratch/kocevski/451909/ft2_4FGL_J2119.6-1105_daily_bin712.fits outfile=/scratch/kocevski/451909/cmap_423878401_424137601_4FGL_J2119.6-1105_daily_bin712.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=319.924 yref=-11.091 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/451909/ft1_filtered_4FGL_J2119.6-1105_daily_bin712.fits scfile=/scratch/kocevski/451909/ft2_4FGL_J2119.6-1105_daily_bin712.fits outfile=/scratch/kocevski/451909/cmap_HighResolution_423878401_424137601_4FGL_J2119.6-1105_daily_bin712.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=319.924 yref=-11.091 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.59
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/451909/ft1_filtered_4FGL_J2119.6-1105_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/451909/ft2_4FGL_J2119.6-1105_daily_bin712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/451909/Model_4FGL_J2119.6-1105_daily_bin712.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/451909/ft1_filtered_4FGL_J2119.6-1105_daily_bin712.fits.....................!
real 49.55
user 48.05
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/451909/ft1_filtered_4FGL_J2119.6-1105_daily_bin712.fits', '/scratch/kocevski/451909/ft2_4FGL_J2119.6-1105_daily_bin712.fits', expMap='/scratch/kocevski/451909/expmap_423878401_424137601_4FGL_J2119.6-1105_daily_bin712.fits', expCube='/scratch/kocevski/451909/ltcube_423878401_424137601_4FGL_J2119.6-1105_daily_bin712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/451909/Model_4FGL_J2119.6-1105_daily_bin712.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2119.6-1105'

4FGL J2119.6-1105
   Spectrum: PowerLaw
304    Prefactor:  3.738e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
305        Index:  2.365e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  1.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/451909/ft1_filtered_4FGL_J2119.6-1105_daily_bin712.fits
Spacecraft file(s): /scratch/kocevski/451909/ft2_4FGL_J2119.6-1105_daily_bin712.fits
Exposure map: /scratch/kocevski/451909/expmap_423878401_424137601_4FGL_J2119.6-1105_daily_bin712.fits
Exposure cube: /scratch/kocevski/451909/ltcube_423878401_424137601_4FGL_J2119.6-1105_daily_bin712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/451909/Model_4FGL_J2119.6-1105_daily_bin712.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) = 4781.44258311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9558       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10735E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.109       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.915       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .33288E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.088       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3103       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0019       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.255       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.751       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .66269       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0868       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4781.379     FROM MIGRAD    STATUS=CONVERGED     87 CALLS     1486 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2153       -.71042E-06** at limit **
   2  Prefactor     .10000E-03    2.7309        .96748E-08** at limit **
   3  Prefactor     3.9542        6.4163        .45070E-05   -.74319E-04
   4  Prefactor     .10001E-03    31.815       -.86462E-05** at limit **
   5  Prefactor     39.992        46.034       -.39003E-04    .11895E-01
   6  Prefactor     20.902        4.1735       -.35101E-05   -.39948E-02
   7  Prefactor     .10017E-03    57.896        .32833E-04** at limit **
   8  Prefactor     22.003        31.457       -.32257E-04   -.12081E-01
   9  Prefactor     4.3105        2.0407       -.69646E-05   -.94691E-03
  10  Prefactor     .10000E-03    1.1827       -.21271E-05** at limit **
  11  Prefactor     7.0000        7.6563       -.22213E-04   -.16414E-02
  12  Prefactor     .10000E-03    23.618       -.23511E-05** at limit **
  13  Prefactor     29.263        1.9222       -.15234E-06    .64398E-02
  14  norm          .10000E-03    2.3942       -.24467E-06** at limit **
  15  Prefactor     .10000E-03    7.3889        .99737E-06** at limit **
  16  Prefactor     11.751        1.1119       -.34182E-06   -.20892E-03
  17  Normalizat    .66252        .30051       -.12115E-04    .38583E-05
  18  Prefactor     1.0870        .16940        .17384E-05    .36757E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.95415
  Prefactor  = 0.000100008
  Prefactor  = 39.9915
  Prefactor  = 20.9022
  Prefactor  = 0.000100174
  Prefactor  = 22.003
  Prefactor  = 4.31047
  Prefactor  = 0.0001
  Prefactor  = 7.00003
  Prefactor  = 0.000100002
  Prefactor  = 29.2628
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7509
  Normalizat = 0.66252
  Prefactor  = 1.087
 **********
 **   18 **HESSE 
 **********

 FCN=   4781.379     FROM HESSE     STATUS=OK           284 CALLS     1770 TOTAL
                     EDM=   .47E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2032        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.7121        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9542        6.4720        .50703E-02   -1.5310    
   4  Prefactor     .10001E-03    31.272        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.992        96.643        .15823E-02   -1.4442    
   6  Prefactor     20.902        24.471        .21895E-02   -1.4793    
   7  Prefactor     .10017E-03    11.867        .98564E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.003        38.328        .21306E-02   -1.4769    
   9  Prefactor     4.3105        7.1650        .48509E-02   -1.5293    
  10  Prefactor     .10000E-03    1.1704        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.0000        7.8435        .37902E-02   -1.5179    
  12  Prefactor     .10000E-03    23.558        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     29.263        20.528        .18518E-02   -1.4626    
  14  norm          .10000E-03    2.3948        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.2094        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.751        12.005        .29215E-02   -1.5022    
  17  Normalizat    .66252        .27366        .84082E-01   -1.0539    
  18  Prefactor     1.0870        .14573        .38111E-01   -.89883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72383e-06
Minuit parameter uncertainties:
  1  1.66847e-06
  2  1.69523e-06
  3  6.47311
  4  0.00101543
  5  97.0251
  6  24.4825
  7  0.00287455
  8  38.3708
  9  7.1664
  10  7.16339e-06
  11  7.84463
  12  0.000471763
  13  20.5334
  14  1.54288e-06
  15  2.11822e-05
  16  12.0074
  17  0.274224
  18  0.145783
Done.

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

Extracting fit parameters...

4FGL J2119.6-1105
   Spectrum: PowerLaw
304    Prefactor:  2.090e+01  2.448e+01  1.000e-04  1.000e+04 ( 1.000e-13)
305        Index:  2.365e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  1.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.087e+00  1.458e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  6.625e-01  2.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.04
Ra Dec: 319.924 -11.091
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.04e-08 +/- 5.90e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 2.03e-05

TS (Fixed Index): 1.04
Ra Dec: 319.924 -11.091
Photon Flux Upper Limit: 1.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/451909/likelihoodResults_423878401_424137601_4FGL_J2119.6-1105_daily_bin712.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) = 4780.77041497
delta logL = 0.608766372301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4780.74647294
delta logL = 0.632708403831

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4094       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2603       1.0000          .0000       10.000    
     3 'Normalizat'    .59549       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1074       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4780.746     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      292 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4164        23.686        .69120E-03   -.15606E-03
   2  Index         3.2600        1.4439        .43482E-02   -.23411E-04
   3  Normalizat    .59544        .31139        .39130E-03   -.15770E-03
   4  Prefactor     1.1075        .17145        .16436E-03   -.46373E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.41641
  Index      = 3.26
  Normalizat = 0.595445
  Prefactor  = 1.10749
 **********
 **   18 **HESSE 
 **********

 FCN=   4780.746     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4164        14.153        .27648E-04   -1.5128    
   2  Index         3.2600        .87003        .17393E-03   -.35544    
   3  Normalizat    .59544        .30912        .15652E-04   -1.0818    
   4  Prefactor     1.1075        .17015        .32873E-04   -.89228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33381e-10
Minuit parameter uncertainties:
  1  14.1587
  2  0.875109
  3  0.310024
  4  0.170236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/451909': 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) = 4780.74647252
delta logL = 0.632708825496

Extracting fit parameters...

4FGL J2119.6-1105
   Spectrum: PowerLaw
304    Prefactor:  8.416e+00  1.416e+01  1.000e-04  1.000e+04 ( 1.000e-13)
305        Index:  3.260e+00  8.751e-01  0.000e+00  1.000e+01 (-1.000e+00)
306        Scale:  1.160e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.107e+00  1.702e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  5.954e-01  3.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 319.924 -11.091
Photon Index (Free Index): 3.26 +/- 0.88
Photon Flux (Free Index): 1.10e-07 +/- 8.80e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.50e-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/451909/cmap_HighResolution_423878401_424137601_4FGL_J2119.6-1105_daily_bin712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='5.04e-08', energy_flux2='1.97e-05', photon_flux_error='5.90e-08', dlogl='6.33e-01', energy_flux='1.73e-05', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-09-26 11:32:11.395954', photon_index_error2='0.88', photon_index2='3.26', ts='1.04', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='1.50e-05', EG='0.66', time_epoch_completed='1632681131.4', return_code='0', job_id='451909', GAL2='1.11', EG2='0.60', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='8.80e-08', ts2='2.39', photon_index='2.37' WHERE bin_id='712' AND source_name='4FGL J2119.6-1105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 11:32:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 451909: <4FGL_J2119.6-1105_daily_bin712> in cluster <slac> Done

Job <4FGL_J2119.6-1105_daily_bin712> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 11:20:25 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 11:21:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 11:21:14 2021
Terminated at Sun Sep 26 11:32:12 2021
Results reported at Sun Sep 26 11:32:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2119.6-1105_daily_bin712 319.924 -11.091 423878401 424137601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2119.6-1105 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   518.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            707 sec.

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

