/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 231 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7499
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1119.9-1007_daily_bin1777
RA = 169.986, Dec = -10.1288
tmin = 699926401, tmax = 700185601
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='913291', job_status='RUN', time_executed='2023-03-11 00:39:14.496275', time_epoch_executed='1678523954.5' WHERE source_name='4FGL J1119.9-1007' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913291

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913291/ft1_4FGL_J1119.9-1007_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913291/ft2_4FGL_J1119.9-1007_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913291/ft1_4FGL_J1119.9-1007_daily_bin1777.fits outfile=/scratch/kocevski/913291/ft1_filteredMKT_4FGL_J1119.9-1007_daily_bin1777.fits ra=169.986 dec=-10.1288 rad=12.0 tmin=699926401.0 tmax=700185601.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.63
user 3.42
sys 0.20

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

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

Number of photons that the gtmktime cut: 628

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913291/ft1_filtered_4FGL_J1119.9-1007_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/913291/ft2_4FGL_J1119.9-1007_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/913291/ltcube_699926401_700185601_4FGL_J1119.9-1007_daily_bin1777.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/913291/ft2_4FGL_J1119.9-1007_daily_bin1777.fits
.....................!
real 12.83
user 12.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913291/ft1_filtered_4FGL_J1119.9-1007_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/913291/ft2_4FGL_J1119.9-1007_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/913291/ltcube_699926401_700185601_4FGL_J1119.9-1007_daily_bin1777.fits outfile=/scratch/kocevski/913291/expmap_699926401_700185601_4FGL_J1119.9-1007_daily_bin1777.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/913291/ltcube_699926401_700185601_4FGL_J1119.9-1007_daily_bin1777.fits
.....................!
real 191.80
user 187.30
sys 4.10

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/913291/ft1_filtered_4FGL_J1119.9-1007_daily_bin1777.fits scfile=/scratch/kocevski/913291/ft2_4FGL_J1119.9-1007_daily_bin1777.fits outfile=/scratch/kocevski/913291/cmap_699926401_700185601_4FGL_J1119.9-1007_daily_bin1777.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.54
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913291/ft1_filtered_4FGL_J1119.9-1007_daily_bin1777.fits scfile=/scratch/kocevski/913291/ft2_4FGL_J1119.9-1007_daily_bin1777.fits outfile=/scratch/kocevski/913291/cmap_HighResolution_699926401_700185601_4FGL_J1119.9-1007_daily_bin1777.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/913291/ft1_filtered_4FGL_J1119.9-1007_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/913291/ft2_4FGL_J1119.9-1007_daily_bin1777.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/913291/Model_4FGL_J1119.9-1007_daily_bin1777.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/913291/ft1_filtered_4FGL_J1119.9-1007_daily_bin1777.fits.....................!
real 67.61
user 66.27
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/913291/ft1_filtered_4FGL_J1119.9-1007_daily_bin1777.fits', '/scratch/kocevski/913291/ft2_4FGL_J1119.9-1007_daily_bin1777.fits', expMap='/scratch/kocevski/913291/expmap_699926401_700185601_4FGL_J1119.9-1007_daily_bin1777.fits', expCube='/scratch/kocevski/913291/ltcube_699926401_700185601_4FGL_J1119.9-1007_daily_bin1777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/913291/Model_4FGL_J1119.9-1007_daily_bin1777.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  0.000e+00  1.000e+06 ( 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/913291/ft1_filtered_4FGL_J1119.9-1007_daily_bin1777.fits
Spacecraft file(s): /scratch/kocevski/913291/ft2_4FGL_J1119.9-1007_daily_bin1777.fits
Exposure map: /scratch/kocevski/913291/expmap_699926401_700185601_4FGL_J1119.9-1007_daily_bin1777.fits
Exposure cube: /scratch/kocevski/913291/ltcube_699926401_700185601_4FGL_J1119.9-1007_daily_bin1777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/913291/Model_4FGL_J1119.9-1007_daily_bin1777.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) = 6844.81782591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31024E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.6525       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.863       1.0000          .0000       .10000E+07
     4 'Prefactor '    .29953E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .41656E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .21701E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .10763E-03   1.0000          .0000       .10000E+07
     8 'norm      '    1.4118       1.0000          .0000       .10000E+07
     9 'Prefactor '    .84783E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    59.716       1.0000          .0000       .10000E+07
    11 'norm      '    .26054E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.6608       1.0000          .0000       .10000E+07
    13 'Prefactor '    .45375E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    7.5960       1.0000          .0000       .10000E+07
    15 'norm      '    9.5868       1.0000          .0000       .10000E+07
    16 'Prefactor '    .17555E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.5316       1.0000          .0000       .10000E+07
    18 'Prefactor '    .84975E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    24.620       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.7104       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .64402       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6844.793     FROM MIGRAD    STATUS=CONVERGED    152 CALLS     1612 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21094E-08    9.9564       -.44207E-05** at limit **
   2  Prefactor     10.374        9.1017       -.73855E-06    .19592E-01
   3  Prefactor     9.6709        156.01       -.15817E-04    .31920E-02
   4  Prefactor     .24758E-07    13.483        .57075E-05** at limit **
   5  Prefactor     .55511E-10    1.3031        .69978E-07** at limit **
   6  Prefactor     .11047E-07    26.477       -.52249E-05** at limit **
   7  norm           .0000        4.4868        .30270E-06** at limit **
   8  norm          1.4133        1.0828        .19579E-06    .67573E-02
   9  Prefactor      .0000        1.2910       -.65550E-07** at limit **
  10  Prefactor     59.704        14.001       -.14638E-05    .10060E-02
  11  norm          .55511E-09    10.555        .57599E-05** at limit **
  12  Prefactor     4.6599        2.6803       -.25176E-06   -.15889E-02
  13  Prefactor     .59397E-08    12.009       -.47352E-05** at limit **
  14  Prefactor     7.9947        2.6279       -.59094E-06   -.20154E-02
  15  norm          9.5858        6.2391       -.11077E-05    .45534E-04
  16  Prefactor      .0000        1.6833       -.51980E-06** at limit **
  17  Prefactor     2.5295        7.5830       -.10426E-05    .14538E-03
  18  Prefactor     .55511E-10    37.255       -.16146E-05** at limit **
  19  Prefactor     23.675        4.5731       -.70438E-06    .22803E-01
  20  Normalizat    1.7106        .25991       -.22200E-05    .14892E-03
  21  Prefactor     .64382        .17139        .20578E-04    .24579E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.10942e-09
  Prefactor  = 10.3738
  Prefactor  = 9.67091
  Prefactor  = 2.4758e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 1.10467e-08
  norm       = 0
  norm       = 1.41332
  Prefactor  = 0
  Prefactor  = 59.7043
  norm       = 5.55112e-10
  Prefactor  = 4.65992
  Prefactor  = 5.93969e-09
  Prefactor  = 7.9947
  norm       = 9.58576
  Prefactor  = 0
  Prefactor  = 2.52953
  Prefactor  = 5.55112e-11
  Prefactor  = 23.6754
  Normalizat = 1.71058
  Prefactor  = 0.643817
 **********
 **   18 **HESSE 
 **********

 FCN=   6844.793     FROM HESSE     STATUS=OK           357 CALLS     1969 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21094E-08    9.9250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.374        20.578        .32231E-03   -1.5644    
   3  Prefactor     9.6709        163.60        .30373E-03   -1.5646    
   4  Prefactor     .24758E-07    14.226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    1.3009        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11047E-07    27.498        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        4.4763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4133        1.0841        .91128E-04   -1.5684    
   9  Prefactor      .0000        1.2918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     59.704        14.210        .12941E-03   -1.5553    
  11  norm          .55511E-09    10.599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6599        2.6799        .46593E-03   -1.5665    
  13  Prefactor     .59397E-08    12.247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.9947        17.757        .36363E-03   -1.5651    
  15  norm          9.5858        6.2477        .32341E-03   -1.5646    
  16  Prefactor      .0000        1.6788        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.5295        7.6142        .64168E-03   -1.5676    
  18  Prefactor     .55511E-10    36.754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.675        25.296        .20158E-03   -1.5611    
  20  Normalizat    1.7106        .21675        .59133E-01   -.72021    
  21  Prefactor     .64382        .14404        .60330E-01   -1.0577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27164e-08
Minuit parameter uncertainties:
  1  0.000288154
  2  20.578
  3  79.5564
  4  0.00118652
  5  1.428e-05
  6  0.00110224
  7  4.42767e-06
  8  1.08409
  9  1.06943e-05
  10  14.2099
  11  0.000154433
  12  2.67989
  13  0.000538197
  14  17.7569
  15  6.24774
  16  7.90278e-06
  17  7.61424
  18  0.000107934
  19  25.2965
  20  0.216869
  21  0.144122
Done.

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

Extracting fit parameters...

4FGL J1119.9-1007
   Spectrum: PowerLaw
291    Prefactor:  1.105e-08  1.102e-03  0.000e+00  1.000e+06 ( 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:  6.438e-01  1.441e-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.711e+00  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/913291/likelihoodResults_699926401_700185601_4FGL_J1119.9-1007_daily_bin1777.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) = 6844.81079873
delta logL = -0.017374367766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6844.79342441
delta logL = -4.71427483717e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61062E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.0570       1.0000          .0000       10.000    
     3 'Normalizat'    1.7106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64381       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6844.793     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      232 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-07    4.6028        .42118E-03** at limit **
   2  Index         2.0246        6.3710        .39518        .18124E-08
   3  Normalizat    1.7106        .21096E-02    .59133E-01    .28526E-04
   4  Prefactor     .64382        .14075E-02    .60330E-01    .92480E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88578e-08
  Index      = 2.02456
  Normalizat = 1.71058
  Prefactor  = 0.643816
 **********
 **   18 **HESSE 
 **********

 FCN=   6844.793     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      263 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38858E-07    11.254        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0246        7.2197        .50000       -.63737    
   3  Normalizat    1.7106        .32970E-02    .26147E-03   -.72021    
   4  Prefactor     .64382        .21973E-02    .26687E-03   -1.0577    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.72056e-10
Minuit parameter uncertainties:
  1  0.00132263
  2  5222.53
  3  0.00329701
  4  0.00219733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913291': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6844.79342436
delta logL = -3.96539689973e-10

Extracting fit parameters...

4FGL J1119.9-1007
   Spectrum: PowerLaw
291    Prefactor:  3.886e-08  1.323e-03  0.000e+00  1.000e+06 ( 1.000e-14)
292        Index:  2.025e+00  5.223e+03  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:  6.438e-01  2.197e-03  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.711e+00  3.297e-03  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/913291/cmap_HighResolution_699926401_700185601_4FGL_J1119.9-1007_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.31e-08', time_completed='2023-03-11 00:49:34.697598', job_id='913291', GAL2='0.64', fit_tolerance='1e-08', EG2='1.71', EG='1.71', time_epoch_completed='1678524574.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='-3.97e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1777' AND source_name='4FGL J1119.9-1007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 00:49:34 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0133>
Subject: Job 913291: <4FGL_J1119.9-1007_daily_bin1777> in cluster <slac> Done

Job <4FGL_J1119.9-1007_daily_bin1777> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Mar 11 00:35:14 2023
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:35:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:35:15 2023
Terminated at Sat Mar 11 00:49:35 2023
Results reported at Sat Mar 11 00:49:35 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1119.9-1007_daily_bin1777 169.986 -10.1288 699926401 700185601 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 :                                   622.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            861 sec.

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

