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


Performing analysis on: 4FGL_J1119.0+1235_daily_bin1059
RA = 169.766, Dec = 12.5866
tmin = 513820801, tmax = 514080001
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='666549', job_status='RUN', time_executed='2021-09-03 15:53:03.644124', time_epoch_executed='1630709583.64' WHERE source_name='4FGL J1119.0+1235' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/666549

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/666549/ft1_4FGL_J1119.0+1235_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/666549/ft2_4FGL_J1119.0+1235_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/666549/ft1_4FGL_J1119.0+1235_daily_bin1059.fits outfile=/scratch/kocevski/666549/ft1_filteredMKT_4FGL_J1119.0+1235_daily_bin1059.fits ra=169.766 dec=12.5866 rad=12.0 tmin=513820801.0 tmax=514080001.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.74
user 3.51
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/666549/ft2_4FGL_J1119.0+1235_daily_bin1059.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/666549/ft2_4FGL_J1119.0+1235_daily_bin1059.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/666549/ft1_filteredMKT_4FGL_J1119.0+1235_daily_bin1059.fits evtable="EVENTS" outfile="/scratch/kocevski/666549/ft1_filtered_4FGL_J1119.0+1235_daily_bin1059.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.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/666549/ft1_filtered_4FGL_J1119.0+1235_daily_bin1059.fits" evtable="EVENTS" scfile=/scratch/kocevski/666549/ft2_4FGL_J1119.0+1235_daily_bin1059.fits sctable="SC_DATA" outfile=/scratch/kocevski/666549/ltcube_513820801_514080001_4FGL_J1119.0+1235_daily_bin1059.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/666549/ft2_4FGL_J1119.0+1235_daily_bin1059.fits
.....................!
real 16.90
user 13.94
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/666549/ft1_filtered_4FGL_J1119.0+1235_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/666549/ft2_4FGL_J1119.0+1235_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/666549/ltcube_513820801_514080001_4FGL_J1119.0+1235_daily_bin1059.fits outfile=/scratch/kocevski/666549/expmap_513820801_514080001_4FGL_J1119.0+1235_daily_bin1059.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/666549/ltcube_513820801_514080001_4FGL_J1119.0+1235_daily_bin1059.fits
.....................!
real 191.88
user 186.55
sys 4.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 189 point sources and 0 extended sources

Setting source of interest to:
4FGL J1119.0+1235 @ 169.766 12.5866

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/666549/ft1_filtered_4FGL_J1119.0+1235_daily_bin1059.fits scfile=/scratch/kocevski/666549/ft2_4FGL_J1119.0+1235_daily_bin1059.fits outfile=/scratch/kocevski/666549/cmap_513820801_514080001_4FGL_J1119.0+1235_daily_bin1059.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.766 yref=12.5866 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.61
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/666549/ft1_filtered_4FGL_J1119.0+1235_daily_bin1059.fits scfile=/scratch/kocevski/666549/ft2_4FGL_J1119.0+1235_daily_bin1059.fits outfile=/scratch/kocevski/666549/cmap_HighResolution_513820801_514080001_4FGL_J1119.0+1235_daily_bin1059.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.766 yref=12.5866 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/666549/ft1_filtered_4FGL_J1119.0+1235_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/666549/ft2_4FGL_J1119.0+1235_daily_bin1059.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/666549/Model_4FGL_J1119.0+1235_daily_bin1059.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/666549/ft1_filtered_4FGL_J1119.0+1235_daily_bin1059.fits.....................!
real 62.29
user 59.53
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/666549/ft1_filtered_4FGL_J1119.0+1235_daily_bin1059.fits', '/scratch/kocevski/666549/ft2_4FGL_J1119.0+1235_daily_bin1059.fits', expMap='/scratch/kocevski/666549/expmap_513820801_514080001_4FGL_J1119.0+1235_daily_bin1059.fits', expCube='/scratch/kocevski/666549/ltcube_513820801_514080001_4FGL_J1119.0+1235_daily_bin1059.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/666549/Model_4FGL_J1119.0+1235_daily_bin1059.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1119.0+1235'

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  3.793e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        alpha:  2.405e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.376e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/666549/ft1_filtered_4FGL_J1119.0+1235_daily_bin1059.fits
Spacecraft file(s): /scratch/kocevski/666549/ft2_4FGL_J1119.0+1235_daily_bin1059.fits
Exposure map: /scratch/kocevski/666549/expmap_513820801_514080001_4FGL_J1119.0+1235_daily_bin1059.fits
Exposure cube: /scratch/kocevski/666549/ltcube_513820801_514080001_4FGL_J1119.0+1235_daily_bin1059.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/666549/Model_4FGL_J1119.0+1235_daily_bin1059.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) = 6364.25305805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7769       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .38491E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0878       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3608       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8272       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.7519       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1131       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3738       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5390       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5435       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .70862       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6364.232     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     1738 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7770        3.6820       -.76108E-07   -.87953E-04
   2  Prefactor     .10006E-03    6.5502        .16752E-05** at limit **
   3  Prefactor     3.0871        5.8667        .63096E-07   -.48058E-04
   4  Prefactor     .10000E-03    6.0524       -.43209E-06** at limit **
   5  Prefactor     .10000E-03    7.6219        .59624E-06** at limit **
   6  Prefactor     7.3604        7.3015       -.22034E-07   -.17102E-04
   7  Prefactor     9.8242        13.218        .11619E-06   -.10939E-03
   8  norm          .10000E-03    .63752        .14320E-07** at limit **
   9  Prefactor     .10000E-03    5.7371        .56348E-06** at limit **
  10  Prefactor     .10000E-03    2.3892       -.77698E-08** at limit **
  11  norm          3.7516        9.8639        .16482E-06   -.41580E-03
  12  Prefactor     2.1131        6.4444        .22636E-06   -.91235E-03
  13  Prefactor     .10000E-03    16.822       -.24562E-05** at limit **
  14  Prefactor     1.3724        7.0414        .66157E-06   -.87216E-03
  15  Prefactor     .10000E-03    37.547       -.25177E-04** at limit **
  16  Prefactor     2.5381        8.9883       -.18599E-07   -.31048E-04
  17  Prefactor     .10000E-03    6.0902       -.40286E-06** at limit **
  18  Prefactor     .10000E-03    33.215        .24352E-04** at limit **
  19  Normalizat    1.5434        .18272       -.26453E-06   -.26388E-03
  20  Prefactor     .70871        .16620       -.21432E-06   -.17484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.777
  Prefactor  = 0.000100061
  Prefactor  = 3.08712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.36041
  Prefactor  = 9.82416
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.75158
  Prefactor  = 2.11305
  Prefactor  = 0.0001
  Prefactor  = 1.37238
  Prefactor  = 0.0001
  Prefactor  = 2.53813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.54344
  Prefactor  = 0.708712
 **********
 **   18 **HESSE 
 **********

 FCN=   6364.232     FROM HESSE     STATUS=OK           291 CALLS     2029 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7770        3.6731        .14380E-03   -1.5319    
   2  Prefactor     .10006E-03    26.047        .38585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0871        5.8411        .23080E-03   -1.5357    
   4  Prefactor     .10000E-03    6.0940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.3604        7.2979        .14783E-03   -1.5165    
   7  Prefactor     9.8242        13.243        .63914E-03   -1.5081    
   8  norm          .10000E-03    .66488        .12415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.7461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3974        .12042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.7516        10.204        .10422E-02   -1.5321    
  12  Prefactor     2.1131        7.2955        .14189E-02   -1.5417    
  13  Prefactor     .10000E-03    16.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3724        19.060        .18588E-02   -1.5474    
  15  Prefactor     .10000E-03    37.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5381        8.9812        .25630E-03   -1.5389    
  17  Prefactor     .10000E-03    6.0982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.5434        .21328        .22686E-03   -.76565    
  20  Prefactor     .70871        .19370        .29347E-03   -1.0319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02846e-08
Minuit parameter uncertainties:
  1  3.67332
  2  0.00251329
  3  5.84217
  4  1.53627e-06
  5  1.28786e-06
  6  7.29874
  7  13.2468
  8  7.91026e-07
  9  1.8293e-06
  10  3.82738e-07
  11  10.2084
  12  7.29857
  13  6.12217e-06
  14  10.2326
  15  0.000143815
  16  8.98594
  17  6.15142e-07
  18  0.000137344
  19  0.213401
  20  0.193889
Done.

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

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  3.752e+00  1.021e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        alpha:  2.405e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
289         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.376e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  7.087e-01  1.939e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.543e+00  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 169.766 12.587
Photon Flux Upper Limit: 8.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/666549/likelihoodResults_513820801_514080001_4FGL_J1119.0+1235_daily_bin1059.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) = 6363.7164813
delta logL = 0.515370018339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6363.69791845
delta logL = 0.533932867882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3220       1.0000         .10000E-03   10000.    
     2 'alpha     '    .98804       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5587       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69092       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6363.698     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      219 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3266        6.2108        .43554E-02    .19127E-03
   2  alpha         .98825        .60264        .50000       -.56842E-04
   3  Normalizat    1.5587        .17949        .51085E-01    .38613E-04
   4  Prefactor     .69096        .16589        .67047E-01    .11085E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.32664
  alpha      = 0.988253
  Normalizat = 1.55867
  Prefactor  = 0.690961
 **********
 **   18 **HESSE 
 **********

 FCN=   6363.698     FROM HESSE     STATUS=OK            29 CALLS      248 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3266        9.3281        .17421E-03   -1.5246    
   2  alpha         .98825        .90225        .23920E-02   -.64939    
   3  Normalizat    1.5587        .20943        .22584E-03   -.76143    
   4  Prefactor     .69096        .19338        .29667E-03   -1.0388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45809e-11
Minuit parameter uncertainties:
  1  9.33065
  2  0.936381
  3  0.209545
  4  0.193571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/666549': 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) = 6363.69791827
delta logL = 0.533933050715

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  5.327e+00  9.331e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        alpha:  9.883e-01  9.364e-01  0.000e+00  5.000e+00 ( 1.000e+00)
289         beta:  2.294e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
290           Eb:  5.376e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  6.910e-01  1.936e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.559e+00  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 169.766 12.587
Photon Index (Free Index): 0.99 +/- 0.94
Photon Flux (Free Index): 9.28e-09 +/- 1.40e-08
Energy Flux (Free Index): 1.70e-05 +/- 2.31e-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/666549/cmap_HighResolution_513820801_514080001_4FGL_J1119.0+1235_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-05', comment='SUCCESS', energy_flux2='1.70e-05', dlogl='5.34e-01', photon_flux2='9.28e-09', job_status='DONE', time_completed='2021-09-03 16:03:45.135436', photon_index_error2='0.94', photon_index2='0.99', ts='0.16', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='8.71e-08', energy_flux_error2='2.31e-05', EG='1.54', time_epoch_completed='1630710225.14', return_code='0', job_id='666549', GAL2='0.69', EG2='1.56', return_code2='0', photon_flux_error2='1.40e-08', ts2='1.23', photon_index='2.41' WHERE bin_id='1059' AND source_name='4FGL J1119.0+1235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 16:03:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 666549: <4FGL_J1119.0+1235_daily_bin1059> in cluster <slac> Done

Job <4FGL_J1119.0+1235_daily_bin1059> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 15:51:16 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 15:52:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 15:52:45 2021
Terminated at Fri Sep  3 16:03:45 2021
Results reported at Fri Sep  3 16:03:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1119.0+1235_daily_bin1059 169.766 12.5866 513820801 514080001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1119.0+1235 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   608.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            749 sec.

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

