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


Performing analysis on: 4FGL_J1119.0+1235_daily_bin28
RA = 169.766, Dec = 12.5866
tmin = 246585601, tmax = 246844801
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='658388', job_status='RUN', time_executed='2021-09-03 15:35:17.454157', time_epoch_executed='1630708517.45' WHERE source_name='4FGL J1119.0+1235' and cadence='daily' and bin_id='28'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/658388

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/658388/ft1_4FGL_J1119.0+1235_daily_bin28.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/658388/ft2_4FGL_J1119.0+1235_daily_bin28.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/658388/ft1_4FGL_J1119.0+1235_daily_bin28.fits outfile=/scratch/kocevski/658388/ft1_filteredMKT_4FGL_J1119.0+1235_daily_bin28.fits ra=169.766 dec=12.5866 rad=12.0 tmin=246585601.0 tmax=246844801.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.47
user 1.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/658388/ft1_filtered_4FGL_J1119.0+1235_daily_bin28.fits" evtable="EVENTS" scfile=/scratch/kocevski/658388/ft2_4FGL_J1119.0+1235_daily_bin28.fits sctable="SC_DATA" outfile=/scratch/kocevski/658388/ltcube_246585601_246844801_4FGL_J1119.0+1235_daily_bin28.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/658388/ft2_4FGL_J1119.0+1235_daily_bin28.fits
.....................!
real 17.30
user 16.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/658388/ft1_filtered_4FGL_J1119.0+1235_daily_bin28.fits evtable="EVENTS" scfile=/scratch/kocevski/658388/ft2_4FGL_J1119.0+1235_daily_bin28.fits sctable="SC_DATA" expcube=/scratch/kocevski/658388/ltcube_246585601_246844801_4FGL_J1119.0+1235_daily_bin28.fits outfile=/scratch/kocevski/658388/expmap_246585601_246844801_4FGL_J1119.0+1235_daily_bin28.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/658388/ltcube_246585601_246844801_4FGL_J1119.0+1235_daily_bin28.fits
.....................!
real 193.55
user 186.58
sys 5.06

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/658388/ft1_filtered_4FGL_J1119.0+1235_daily_bin28.fits scfile=/scratch/kocevski/658388/ft2_4FGL_J1119.0+1235_daily_bin28.fits outfile=/scratch/kocevski/658388/cmap_246585601_246844801_4FGL_J1119.0+1235_daily_bin28.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/658388/ft1_filtered_4FGL_J1119.0+1235_daily_bin28.fits scfile=/scratch/kocevski/658388/ft2_4FGL_J1119.0+1235_daily_bin28.fits outfile=/scratch/kocevski/658388/cmap_HighResolution_246585601_246844801_4FGL_J1119.0+1235_daily_bin28.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2974       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.192       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3391       1.0000         .10000E-03   10000.    
     8 'norm      '    .31719       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.789       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8946       1.0000         .10000E-03   10000.    
    11 'norm      '    8.8584       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4523       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.964       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14459E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98005       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0709       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=   8791.297     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1768 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2974        2.5157        .48584E-02    .15724E-03
   2  Prefactor     .10000E-03    2.8682        .51395E-01** at limit **
   3  Prefactor     .10000E-03    2.5943        .90712E-02** at limit **
   4  Prefactor     .10000E-03    4.0439        .90712E-02** at limit **
   5  Prefactor     13.191        7.9730        .27571E-02   -.29468E-02
   6  Prefactor     .10000E-03    3.1061        .90712E-02** at limit **
   7  Prefactor     7.3389        10.873        .37013E-02   -.66396E-03
   8  norm          .31718        .59597        .10500E-02    .83444E-02
   9  Prefactor     13.789        10.663        .26966E-02   -.18149E-03
  10  Prefactor     7.8945        4.4086        .35677E-02    .26464E-03
  11  norm          8.8586        7.5629        .33668E-02    .24528E-02
  12  Prefactor     2.4526        6.8368        .65301E-02    .12283E-02
  13  Prefactor     24.965        21.654        .20043E-02    .34112E-03
  14  Prefactor     .10000E-03    4.5009        .90712E-02** at limit **
  15  Prefactor     .10000E-03    139.47        .90712E-02** at limit **
  16  Prefactor     .10000E-03    2.3592        .90712E-02** at limit **
  17  Prefactor     .10000E-03    4.5096        .90712E-02** at limit **
  18  Prefactor     .10000E-03    22.941        .90712E-02** at limit **
  19  Normalizat    .98004        .14662        .45916E-01    .17966E-04
  20  Prefactor     1.0709        .14003        .38814E-01    .63767E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.29738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.191
  Prefactor  = 0.0001
  Prefactor  = 7.33885
  norm       = 0.317176
  Prefactor  = 13.7886
  Prefactor  = 7.89451
  norm       = 8.85862
  Prefactor  = 2.45259
  Prefactor  = 24.9652
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 0.980038
  Prefactor  = 1.07095
 **********
 **   18 **HESSE 
 **********

 FCN=   8791.297     FROM HESSE     STATUS=OK           287 CALLS     2055 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2974        2.5148        .11028E-03   -1.5293    
   2  Prefactor     .10000E-03    8.1413        .30456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6136        .14743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.191        7.9596        .11028E-03   -1.4981    
   6  Prefactor     .10000E-03    3.1300        .16136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3389        10.864        .14805E-03   -1.5166    
   8  norm          .31718        .59515        .21000E-03   -1.5595    
   9  Prefactor     13.789        10.663        .10786E-03   -1.4965    
  10  Prefactor     7.8945        4.4068        .14245E-03   -1.5146    
  11  norm          8.8586        7.5602        .13467E-03   -1.5113    
  12  Prefactor     2.4526        6.8156        .26121E-03   -1.5395    
  13  Prefactor     24.965        21.675        .80173E-04   -1.4708    
  14  Prefactor     .10000E-03    4.5350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    140.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.3698        .14064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .98004        .16703        .24943E-03   -.93702    
  20  Prefactor     1.0709        .16070        .23534E-03   -.90401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06003e-08
Minuit parameter uncertainties:
  1  2.51489
  2  6.40402e-06
  3  1.55183e-07
  4  1.07668e-05
  5  7.96026
  6  8.23177e-07
  7  10.867
  8  0.595157
  9  10.6642
  10  4.40694
  11  7.56106
  12  6.81775
  13  21.6814
  14  0.000238581
  15  0.000391014
  16  1.05387e-06
  17  0.000246331
  18  5.08164e-05
  19  0.167118
  20  0.160773
Done.

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

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  8.859e+00  7.561e+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

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.071e+00  1.608e-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.800e-01  1.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.59
Ra Dec: 169.766 12.587
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.65e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 8.00e-06 +/- 6.83e-06

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

Saving results to:
/scratch/kocevski/658388/likelihoodResults_246585601_246844801_4FGL_J1119.0+1235_daily_bin28.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) = 8791.28888822
delta logL = 0.0083931499521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8791.28866427
delta logL = 0.00861710273239

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8938       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2483       1.0000          .0000       5.0000    
     3 'Normalizat'    .98448       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0683       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8791.289     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      267 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9232        7.7251        .67200E-03   -.16884E-04
   2  alpha         2.2531        1.1153        .33297E-01    .41443E-05
   3  Normalizat    .98432        .16597        .24895E-03   -.78454E-04
   4  Prefactor     1.0683        .16148        .23559E-03   -.78465E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.92319
  alpha      = 2.25314
  Normalizat = 0.984316
  Prefactor  = 1.06833
 **********
 **   18 **HESSE 
 **********

 FCN=   8791.289     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9232        7.7273        .26880E-04   -1.5110    
   2  alpha         2.2531        1.1156        .66595E-02   -.98905E-01
   3  Normalizat    .98432        .16604        .99581E-05   -.93558    
   4  Prefactor     1.0683        .16156        .94236E-05   -.90485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86938e-12
Minuit parameter uncertainties:
  1  7.72817
  2  1.15683
  3  0.166131
  4  0.161633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/658388': 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) = 8791.288649
delta logL = 0.00863237767589

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  8.923e+00  7.728e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        alpha:  2.253e+00  1.157e+00  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.068e+00  1.616e-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.843e-01  1.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.61
Ra Dec: 169.766 12.587
Photon Index (Free Index): 2.25 +/- 1.16
Photon Flux (Free Index): 2.35e-08 +/- 3.05e-08
Energy Flux (Free Index): 7.96e-06 +/- 6.89e-06

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/658388/cmap_HighResolution_246585601_246844801_4FGL_J1119.0+1235_daily_bin28.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.35e-05', comment='SUCCESS', photon_flux='2.65e-08', energy_flux2='7.96e-06', photon_flux_error='2.26e-08', dlogl='8.63e-03', energy_flux='8.00e-06', photon_flux2='2.35e-08', job_status='DONE', time_completed='2021-09-03 15:47:26.461395', photon_index_error2='1.16', photon_index2='2.25', ts='2.59', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='7.79e-08', energy_flux_error2='6.89e-06', EG='0.98', time_epoch_completed='1630709246.46', return_code='0', job_id='658388', GAL2='1.07', EG2='0.98', return_code2='0', energy_flux_error='6.83e-06', photon_flux_error2='3.05e-08', ts2='2.61', photon_index='2.41' WHERE bin_id='28' AND source_name='4FGL J1119.0+1235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 15:47:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 658388: <4FGL_J1119.0+1235_daily_bin28> in cluster <slac> Done

Job <4FGL_J1119.0+1235_daily_bin28> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 15:31:34 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 15:31:43 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:31:43 2021
Terminated at Fri Sep  3 15:47:27 2021
Results reported at Fri Sep  3 15:47:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1119.0+1235_daily_bin28 169.766 12.5866 246585601 246844801 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 :                                   721.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            953 sec.

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

