/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 132 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 = 7388
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1119.0+1235_daily_bin8
RA = 169.766, Dec = 12.5866
tmin = 241401601, tmax = 241660801
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='657297', job_status='RUN', time_executed='2021-09-03 15:31:17.674239', time_epoch_executed='1630708277.67' WHERE source_name='4FGL J1119.0+1235' and cadence='daily' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657297/ft1_4FGL_J1119.0+1235_daily_bin8.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657297/ft2_4FGL_J1119.0+1235_daily_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657297/ft1_4FGL_J1119.0+1235_daily_bin8.fits outfile=/scratch/kocevski/657297/ft1_filteredMKT_4FGL_J1119.0+1235_daily_bin8.fits ra=169.766 dec=12.5866 rad=12.0 tmin=241401601.0 tmax=241660801.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 1.46
user 1.27
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/657297/ft2_4FGL_J1119.0+1235_daily_bin8.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/657297/ft1_filteredMKT_4FGL_J1119.0+1235_daily_bin8.fits evtable="EVENTS" outfile="/scratch/kocevski/657297/ft1_filtered_4FGL_J1119.0+1235_daily_bin8.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657297/ft1_filtered_4FGL_J1119.0+1235_daily_bin8.fits" evtable="EVENTS" scfile=/scratch/kocevski/657297/ft2_4FGL_J1119.0+1235_daily_bin8.fits sctable="SC_DATA" outfile=/scratch/kocevski/657297/ltcube_241401601_241660801_4FGL_J1119.0+1235_daily_bin8.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/657297/ft2_4FGL_J1119.0+1235_daily_bin8.fits
.....................!
real 15.84
user 15.42
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657297/ft1_filtered_4FGL_J1119.0+1235_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/657297/ft2_4FGL_J1119.0+1235_daily_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/657297/ltcube_241401601_241660801_4FGL_J1119.0+1235_daily_bin8.fits outfile=/scratch/kocevski/657297/expmap_241401601_241660801_4FGL_J1119.0+1235_daily_bin8.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/657297/ltcube_241401601_241660801_4FGL_J1119.0+1235_daily_bin8.fits
.....................!
real 191.83
user 186.08
sys 5.40

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/657297/ft1_filtered_4FGL_J1119.0+1235_daily_bin8.fits scfile=/scratch/kocevski/657297/ft2_4FGL_J1119.0+1235_daily_bin8.fits outfile=/scratch/kocevski/657297/cmap_241401601_241660801_4FGL_J1119.0+1235_daily_bin8.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657297/ft1_filtered_4FGL_J1119.0+1235_daily_bin8.fits scfile=/scratch/kocevski/657297/ft2_4FGL_J1119.0+1235_daily_bin8.fits outfile=/scratch/kocevski/657297/cmap_HighResolution_241401601_241660801_4FGL_J1119.0+1235_daily_bin8.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.54
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/657297/ft1_filtered_4FGL_J1119.0+1235_daily_bin8.fits', '/scratch/kocevski/657297/ft2_4FGL_J1119.0+1235_daily_bin8.fits', expMap='/scratch/kocevski/657297/expmap_241401601_241660801_4FGL_J1119.0+1235_daily_bin8.fits', expCube='/scratch/kocevski/657297/ltcube_241401601_241660801_4FGL_J1119.0+1235_daily_bin8.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/657297/Model_4FGL_J1119.0+1235_daily_bin8.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/657297/ft1_filtered_4FGL_J1119.0+1235_daily_bin8.fits
Spacecraft file(s): /scratch/kocevski/657297/ft2_4FGL_J1119.0+1235_daily_bin8.fits
Exposure map: /scratch/kocevski/657297/expmap_241401601_241660801_4FGL_J1119.0+1235_daily_bin8.fits
Exposure cube: /scratch/kocevski/657297/ltcube_241401601_241660801_4FGL_J1119.0+1235_daily_bin8.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/657297/Model_4FGL_J1119.0+1235_daily_bin8.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) = 8249.31010879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .68543E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2936       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0191       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.845       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3525       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .95496       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2443       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12188E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10548E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13232E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.332       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91787       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4547       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=   8249.224     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     1787 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5117       -.35994E-07** at limit **
   2  Prefactor     .10001E-03    5.2253        .51872E-06** at limit **
   3  Prefactor     1.2941        6.3889        .27239E-05   -.26077E-04
   4  Prefactor     9.0277        10.414       -.32231E-06   -.14790E-03
   5  Prefactor     13.828        12.133       -.27025E-06   -.11813E-03
   6  Prefactor     .10000E-03    2.0519       -.24903E-08** at limit **
   7  Prefactor     .10000E-03    4.7360       -.15826E-06** at limit **
   8  norm          1.3518        1.3522        .10164E-06   -.19169E-03
   9  Prefactor     .95391        10.285        .82553E-07   -.54085E-04
  10  Prefactor     .10000E-03    3.5407        .73403E-07** at limit **
  11  norm          .10000E-03    9.5684       -.25958E-06** at limit **
  12  Prefactor     .10000E-03    3.4014        .29779E-07** at limit **
  13  Prefactor     4.2573        39.156       -.35798E-05   -.55185E-04
  14  Prefactor     .10000E-03    2.5958        .37714E-07** at limit **
  15  Prefactor     .10000E-03    70.183        .30616E-07** at limit **
  16  Prefactor     .10000E-03    3.3868        .34816E-07** at limit **
  17  Prefactor     .10000E-03    7.8979       -.50376E-07** at limit **
  18  Prefactor     13.070        49.466       -.48344E-06   -.90171E-05
  19  Normalizat    .91770        .17356        .73537E-08   -.17434E-03
  20  Prefactor     1.4547        .16753       -.53917E-06   -.13443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 1.29405
  Prefactor  = 9.02774
  Prefactor  = 13.8281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.35182
  Prefactor  = 0.953905
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.25726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0698
  Normalizat = 0.917703
  Prefactor  = 1.45472
 **********
 **   18 **HESSE 
 **********

 FCN=   8249.224     FROM HESSE     STATUS=OK           291 CALLS     2078 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5383        .10903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    23.461        .38530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2941        6.6346        .38908E-03   -1.5480    
   4  Prefactor     9.0277        10.483        .13346E-03   -1.5107    
   5  Prefactor     13.828        12.135        .10765E-03   -1.4964    
   6  Prefactor     .10000E-03    2.0590        .12705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3518        1.3266        .98385E-04   -1.5475    
   9  Prefactor     .95391        77.498        .54563E-02   -1.5513    
  10  Prefactor     .10000E-03    3.5706        .16691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.8401        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4131        .16359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.2573        41.672        .19558E-03   -1.5295    
  14  Prefactor     .10000E-03    2.6038        .14291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    70.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.3990        .16322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.9329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.070        49.506        .10970E-03   -1.4985    
  19  Normalizat    .91770        .20334        .28404E-03   -.95841    
  20  Prefactor     1.4547        .19923        .23224E-03   -.78816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9356e-08
Minuit parameter uncertainties:
  1  5.19231e-06
  2  0.000738542
  3  5.86099
  4  10.4854
  5  12.1373
  6  1.49112e-06
  7  4.28676e-06
  8  1.32659
  9  17.2182
  10  3.57162e-06
  11  1.96302e-05
  12  1.53561e-06
  13  26.663
  14  1.44965e-06
  15  8.72942e-07
  16  2.39306e-06
  17  3.50638e-06
  18  49.6618
  19  0.20351
  20  0.19934
Done.

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

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  1.000e-04  1.963e-05  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:  1.455e+00  1.993e-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:  9.177e-01  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/657297/likelihoodResults_241401601_241660801_4FGL_J1119.0+1235_daily_bin8.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): 102
logL (Free Index) = 8249.2247409
delta logL = -0.000484984335344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8249.22425711
delta logL = -1.19717151392e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12599E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3809       1.0000          .0000       5.0000    
     3 'Normalizat'    .91775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4547       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8249.224     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      243 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.238        .36285E-02** at limit **
   2  alpha         1.8454        2.9925        .16484E-01    .68967E-08
   3  Normalizat    .91770        .19616        .28404E-03    .13072E-03
   4  Prefactor     1.4547        .19705        .23224E-03    .17002E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.84541
  Normalizat = 0.917704
  Prefactor  = 1.45472
 **********
 **   18 **HESSE 
 **********

 FCN=   8249.224     FROM HESSE     STATUS=OK            29 CALLS      272 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.282        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8454        3.4212        .65937E-01   -.26492    
   3  Normalizat    .91770        .19636        .11362E-04   -.95841    
   4  Prefactor     1.4547        .19724        .46449E-04   -.78816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.82429e-11
Minuit parameter uncertainties:
  1  0.000260133
  2  306.23
  3  0.196511
  4  0.197347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657297': 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) = 8249.22425435
delta logL = 1.56100759341e-06

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  1.000e-04  2.601e-04  1.000e-04  1.000e+04 ( 1.000e-12)
288        alpha:  1.845e+00  3.062e+02  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:  1.455e+00  1.973e-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:  9.177e-01  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 169.766 12.587

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/657297/cmap_HighResolution_241401601_241660801_4FGL_J1119.0+1235_daily_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-05', job_status='DONE', photon_flux_upper_limit='5.26e-08', time_completed='2021-09-03 15:42:55.788228', job_id='657297', GAL2='1.45', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630708975.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='1.56e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='8' AND source_name='4FGL J1119.0+1235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 15:42:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 657297: <4FGL_J1119.0+1235_daily_bin8> in cluster <slac> Done

Job <4FGL_J1119.0+1235_daily_bin8> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 15:26:54 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 15:28:57 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:28:57 2021
Terminated at Fri Sep  3 15:42:56 2021
Results reported at Fri Sep  3 15:42:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1119.0+1235_daily_bin8 169.766 12.5866 241401601 241660801 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 :                                   697.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            962 sec.

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

