/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 135 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7382
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2119.6-1105_daily_bin184
RA = 319.924, Dec = -11.091
tmin = 287020801, tmax = 287280001
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='447533', job_status='RUN', time_executed='2021-09-26 11:08:54.141092', time_epoch_executed='1632679734.14' WHERE source_name='4FGL J2119.6-1105' and cadence='daily' and bin_id='184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447533

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447533/ft1_4FGL_J2119.6-1105_daily_bin184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447533/ft2_4FGL_J2119.6-1105_daily_bin184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447533/ft1_4FGL_J2119.6-1105_daily_bin184.fits outfile=/scratch/kocevski/447533/ft1_filteredMKT_4FGL_J2119.6-1105_daily_bin184.fits ra=319.924 dec=-11.091 rad=12.0 tmin=287020801.0 tmax=287280001.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.79
user 3.55
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/447533/ft2_4FGL_J2119.6-1105_daily_bin184.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/447533/ft1_filteredMKT_4FGL_J2119.6-1105_daily_bin184.fits evtable="EVENTS" outfile="/scratch/kocevski/447533/ft1_filtered_4FGL_J2119.6-1105_daily_bin184.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.44
user 0.27
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447533/ft1_filtered_4FGL_J2119.6-1105_daily_bin184.fits" evtable="EVENTS" scfile=/scratch/kocevski/447533/ft2_4FGL_J2119.6-1105_daily_bin184.fits sctable="SC_DATA" outfile=/scratch/kocevski/447533/ltcube_287020801_287280001_4FGL_J2119.6-1105_daily_bin184.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/447533/ft2_4FGL_J2119.6-1105_daily_bin184.fits
.....................!
real 10.99
user 10.47
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447533/ft1_filtered_4FGL_J2119.6-1105_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/447533/ft2_4FGL_J2119.6-1105_daily_bin184.fits sctable="SC_DATA" expcube=/scratch/kocevski/447533/ltcube_287020801_287280001_4FGL_J2119.6-1105_daily_bin184.fits outfile=/scratch/kocevski/447533/expmap_287020801_287280001_4FGL_J2119.6-1105_daily_bin184.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/447533/ltcube_287020801_287280001_4FGL_J2119.6-1105_daily_bin184.fits
.....................!
real 159.43
user 154.18
sys 3.82

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/447533/ft1_filtered_4FGL_J2119.6-1105_daily_bin184.fits scfile=/scratch/kocevski/447533/ft2_4FGL_J2119.6-1105_daily_bin184.fits outfile=/scratch/kocevski/447533/cmap_287020801_287280001_4FGL_J2119.6-1105_daily_bin184.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.47
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447533/ft1_filtered_4FGL_J2119.6-1105_daily_bin184.fits scfile=/scratch/kocevski/447533/ft2_4FGL_J2119.6-1105_daily_bin184.fits outfile=/scratch/kocevski/447533/cmap_HighResolution_287020801_287280001_4FGL_J2119.6-1105_daily_bin184.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.48
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447533/ft1_filtered_4FGL_J2119.6-1105_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/447533/ft2_4FGL_J2119.6-1105_daily_bin184.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447533/Model_4FGL_J2119.6-1105_daily_bin184.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/447533/ft1_filtered_4FGL_J2119.6-1105_daily_bin184.fits.....................!
real 71.88
user 69.96
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/447533/ft1_filtered_4FGL_J2119.6-1105_daily_bin184.fits', '/scratch/kocevski/447533/ft2_4FGL_J2119.6-1105_daily_bin184.fits', expMap='/scratch/kocevski/447533/expmap_287020801_287280001_4FGL_J2119.6-1105_daily_bin184.fits', expCube='/scratch/kocevski/447533/ltcube_287020801_287280001_4FGL_J2119.6-1105_daily_bin184.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/447533/Model_4FGL_J2119.6-1105_daily_bin184.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/447533/ft1_filtered_4FGL_J2119.6-1105_daily_bin184.fits
Spacecraft file(s): /scratch/kocevski/447533/ft2_4FGL_J2119.6-1105_daily_bin184.fits
Exposure map: /scratch/kocevski/447533/expmap_287020801_287280001_4FGL_J2119.6-1105_daily_bin184.fits
Exposure cube: /scratch/kocevski/447533/ltcube_287020801_287280001_4FGL_J2119.6-1105_daily_bin184.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/447533/Model_4FGL_J2119.6-1105_daily_bin184.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) = 9751.43824104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8908       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7544       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.122       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10846E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3427       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14781E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29993E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8726       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11070E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .26340       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12425E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.196       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1696       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8792       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .92515       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2977       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.

 FCN=   9751.361     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2068 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8905        1.9577         .0000        .78498E-04
   2  Prefactor     3.7538        3.2701         .0000        .57367E-03
   3  Prefactor     .10000E-03    1.6065         .0000    ** at limit **
   4  Prefactor     12.120        13.533         .0000       -.16280E-03
   5  Prefactor     .10000E-03    14.042         .0000    ** at limit **
   6  Prefactor     9.3703        16.121         .0000        .40052E-04
   7  Prefactor     .10000E-03    40.751         .0000    ** at limit **
   8  Prefactor     .10000E-03    21.991         .0000    ** at limit **
   9  Prefactor     2.8716        3.3512         .0000        .32189E-03
  10  Prefactor     .10000E-03    1.2423         .0000    ** at limit **
  11  Prefactor     .25710        3.6894         .0000        .69841E-03
  12  Prefactor     .10000E-03    26.553         .0000    ** at limit **
  13  Prefactor     23.196        13.373         .0000        .22276E-03
  14  norm          .10000E-03    2.6031         .0000    ** at limit **
  15  Prefactor     1.1641        6.4049         .0000        .39733E-01
  16  Prefactor     3.8801        7.7863         .0000        .35098E-02
  17  Normalizat    .92535        .22003         .0000        .29216E-04
  18  Prefactor     1.2977        .11843         .0000       -.16493E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.89053
  Prefactor  = 3.75375
  Prefactor  = 0.0001
  Prefactor  = 12.1198
  Prefactor  = 0.0001
  Prefactor  = 9.3703
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.87156
  Prefactor  = 0.0001
  Prefactor  = 0.257104
  Prefactor  = 0.0001
  Prefactor  = 23.196
  norm       = 0.0001
  Prefactor  = 1.1641
  Prefactor  = 3.8801
  Normalizat = 0.925355
  Prefactor  = 1.29773
 **********
 **   18 **HESSE 
 **********

 FCN=   9751.361     FROM HESSE     STATUS=OK           262 CALLS     2330 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8905        1.9557        .13687E-03   -1.5433    
   2  Prefactor     3.7538        3.2629        .16059E-03   -1.5320    
   3  Prefactor     .10000E-03    1.6191        .12221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.120        13.527        .11505E-03   -1.5012    
   5  Prefactor     .10000E-03    14.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.3703        16.060        .13112E-03   -1.5096    
   7  Prefactor     .10000E-03    41.953        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.434        .13473       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8716        3.3401        .18960E-03   -1.5369    
  10  Prefactor     .10000E-03    2.9224        .20754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .25710        22.466        .36561E-02   -1.5607    
  12  Prefactor     .10000E-03    26.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.196        13.383        .83169E-04   -1.4744    
  14  norm          .10000E-03    2.6078        .15559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1641        6.4842        .21226E-02   -1.5492    
  16  Prefactor     3.8801        7.7659        .10244E-02   -1.5314    
  17  Normalizat    .92535        .25402        .37238E-03   -.95575    
  18  Prefactor     1.2977        .13833        .18126E-03   -.83375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88935e-08
Minuit parameter uncertainties:
  1  1.95581
  2  3.26307
  3  5.18442e-08
  4  13.5306
  5  2.51426e-07
  6  16.0672
  7  1.67231e-05
  8  3.19568e-05
  9  3.34035
  10  8.77021e-08
  11  4.80763
  12  2.74236e-06
  13  13.3845
  14  2.9873e-07
  15  5.49548
  16  7.76795
  17  0.254349
  18  0.138365
Done.

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

Extracting fit parameters...

4FGL J2119.6-1105
   Spectrum: PowerLaw
304    Prefactor:  9.370e+00  1.607e+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.298e+00  1.384e-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:  9.254e-01  2.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.42
Ra Dec: 319.924 -11.091
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447533/likelihoodResults_287020801_287280001_4FGL_J2119.6-1105_daily_bin184.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) = 9751.09123496
delta logL = 0.269893613184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9751.06069118
delta logL = 0.300437387685

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9751.061     FROM MIGRAD    STATUS=FAILED        84 CALLS      294 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3023        170.76        .17975E-03   -.31569E-02
   2  Index         3.3633        6.5646        .62166E-02   -.79325E-03
   3  Normalizat    .88328        .24925        .38027E-03   -.82653E-03
   4  Prefactor     1.3118        .13890        .18040E-03   -.14640E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9751.061     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      384 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3023        170.76        .14967E-03   -.31569E-02
   2  Index         3.3633        6.5646        .88627E-03   -.79325E-03
   3  Normalizat    .88328        .24925        .15238E-03   -.82653E-03
   4  Prefactor     1.3118        .13890        .88310E-04   -.14640E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9751.061     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      417 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3015        10.414        .71898E-05   -.12017E-04
   2  Index         3.3634        1.5663        .24867E-03   -.33832E-05
   3  Normalizat    .88328        .25076        .76054E-04    .35995E-04
   4  Prefactor     1.3118        .13956        .36080E-04    .52811E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.30153
  Index      = 3.36343
  Normalizat = 0.883283
  Prefactor  = 1.31181
 **********
 **   18 **HESSE 
 **********

 FCN=   9751.061     FROM HESSE     STATUS=OK            23 CALLS      440 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3015        10.152        .14380E-05   -1.5345    
   2  Index         3.3634        1.5280        .99466E-05   -.33346    
   3  Normalizat    .88328        .25069        .15211E-04   -.97050    
   4  Prefactor     1.3118        .13952        .72159E-05   -.82956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41448e-12
Minuit parameter uncertainties:
  1  10.1569
  2  1.55594
  3  0.251024
  4  0.139559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447533': 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) = 9751.06069103
delta logL = 0.300437543297

Extracting fit parameters...

4FGL J2119.6-1105
   Spectrum: PowerLaw
304    Prefactor:  3.302e+00  1.016e+01  1.000e-04  1.000e+04 ( 1.000e-13)
305        Index:  3.363e+00  1.556e+00  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.312e+00  1.396e-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:  8.833e-01  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 319.924 -11.091
Photon Index (Free Index): 3.36 +/- 1.56
Photon Flux (Free Index): 5.32e-08 +/- 5.91e-08
Energy Flux (Free Index): 9.21e-06 +/- 1.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/447533/cmap_HighResolution_287020801_287280001_4FGL_J2119.6-1105_daily_bin184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.50e-03', comment='SUCCESS', energy_flux2='9.21e-06', dlogl='3.00e-01', photon_flux2='5.32e-08', job_status='DONE', time_completed='2021-09-26 11:20:03.748070', photon_index_error2='1.56', photon_index2='3.36', ts='0.42', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='1.01e-05', EG='0.93', time_epoch_completed='1632680403.75', return_code='0', job_id='447533', GAL2='1.31', EG2='0.88', return_code2='0', photon_flux_error2='5.91e-08', ts2='1.06', photon_index='2.37' WHERE bin_id='184' AND source_name='4FGL J2119.6-1105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 11:20:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 447533: <4FGL_J2119.6-1105_daily_bin184> in cluster <slac> Done

Job <4FGL_J2119.6-1105_daily_bin184> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 26 11:05:28 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 11:06:30 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:06:30 2021
Terminated at Sun Sep 26 11:20:04 2021
Results reported at Sun Sep 26 11:20:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2119.6-1105_daily_bin184 319.924 -11.091 287020801 287280001 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 :                                   661.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            876 sec.

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

