/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 1 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1119.0+1235_daily_bin337
RA = 169.766, Dec = 12.5866
tmin = 326678401, tmax = 326937601
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='660828', job_status='RUN', time_executed='2021-09-03 15:39:58.851419', time_epoch_executed='1630708798.85' WHERE source_name='4FGL J1119.0+1235' and cadence='daily' and bin_id='337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660828

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660828/ft1_4FGL_J1119.0+1235_daily_bin337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660828/ft2_4FGL_J1119.0+1235_daily_bin337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660828/ft1_4FGL_J1119.0+1235_daily_bin337.fits outfile=/scratch/kocevski/660828/ft1_filteredMKT_4FGL_J1119.0+1235_daily_bin337.fits ra=169.766 dec=12.5866 rad=12.0 tmin=326678401.0 tmax=326937601.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.49
user 3.22
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/660828/ft2_4FGL_J1119.0+1235_daily_bin337.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/660828/ft1_filteredMKT_4FGL_J1119.0+1235_daily_bin337.fits evtable="EVENTS" outfile="/scratch/kocevski/660828/ft1_filtered_4FGL_J1119.0+1235_daily_bin337.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/660828/ft1_filtered_4FGL_J1119.0+1235_daily_bin337.fits" evtable="EVENTS" scfile=/scratch/kocevski/660828/ft2_4FGL_J1119.0+1235_daily_bin337.fits sctable="SC_DATA" outfile=/scratch/kocevski/660828/ltcube_326678401_326937601_4FGL_J1119.0+1235_daily_bin337.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/660828/ft2_4FGL_J1119.0+1235_daily_bin337.fits
.....................!
real 17.51
user 17.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660828/ft1_filtered_4FGL_J1119.0+1235_daily_bin337.fits evtable="EVENTS" scfile=/scratch/kocevski/660828/ft2_4FGL_J1119.0+1235_daily_bin337.fits sctable="SC_DATA" expcube=/scratch/kocevski/660828/ltcube_326678401_326937601_4FGL_J1119.0+1235_daily_bin337.fits outfile=/scratch/kocevski/660828/expmap_326678401_326937601_4FGL_J1119.0+1235_daily_bin337.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/660828/ltcube_326678401_326937601_4FGL_J1119.0+1235_daily_bin337.fits
.....................!
real 192.36
user 186.75
sys 4.90

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/660828/ft1_filtered_4FGL_J1119.0+1235_daily_bin337.fits scfile=/scratch/kocevski/660828/ft2_4FGL_J1119.0+1235_daily_bin337.fits outfile=/scratch/kocevski/660828/cmap_326678401_326937601_4FGL_J1119.0+1235_daily_bin337.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.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1223       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.040       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25442E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7521       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10106       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9248       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.625       1.0000         .10000E-03   10000.    
    11 'norm      '    7.5667       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1237       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .53930E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12204E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1028       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1981       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88719       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=   5468.340     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     1829 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3249       -.94464E-07** at limit **
   2  Prefactor     6.1252        8.1009        .55322E-07    .15733E-04
   3  Prefactor     10.040        8.9593        .19845E-06   -.31813E-04
   4  Prefactor     .10000E-03    7.1200       -.38502E-05** at limit **
   5  Prefactor     5.7841        10.443        .56942E-05    .46775E-03
   6  Prefactor     .10000E-03    9.9877       -.67443E-06** at limit **
   7  Prefactor     .10000E-03    11.487        .54942E-06** at limit **
   8  norm          .10038        .75664       -.41087E-06    .11669E-04
   9  Prefactor     7.9250        16.513       -.23723E-07   -.85102E-05
  10  Prefactor     10.626        7.7593       -.62895E-07    .95276E-05
  11  norm          7.5665        11.864        .19419E-05   -.28289E-04
  12  Prefactor     6.1228        10.193        .72614E-06   -.12347E-03
  13  Prefactor     .10000E-03    16.021       -.53616E-06** at limit **
  14  Prefactor     .10011E-03    9.0350        .29837E-05** at limit **
  15  Prefactor     .10000E-03    305.54       -.77015E-05** at limit **
  16  Prefactor     6.1018        7.9946        .20165E-06   -.79700E-04
  17  Prefactor     .10000E-03    13.686       -.75518E-06** at limit **
  18  Prefactor     .10000E-03    56.295        .17900E-06** at limit **
  19  Normalizat    1.1981        .19781       -.42888E-06    .18663E-03
  20  Prefactor     .88723        .18117       -.15719E-06    .82707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.12525
  Prefactor  = 10.0395
  Prefactor  = 0.000100002
  Prefactor  = 5.78414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.100384
  Prefactor  = 7.92499
  Prefactor  = 10.6261
  norm       = 7.5665
  Prefactor  = 6.12283
  Prefactor  = 0.0001
  Prefactor  = 0.000100107
  Prefactor  = 0.0001
  Prefactor  = 6.10177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19813
  Prefactor  = 0.887232
 **********
 **   18 **HESSE 
 **********

 FCN=   5468.340     FROM HESSE     STATUS=OK           297 CALLS     2126 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3823        .13150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1252        8.0768        .16226E-03   -1.5213    
   3  Prefactor     10.040        8.9406        .12646E-03   -1.5074    
   4  Prefactor     .10000E-03    15.452        .36085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.7841        10.777        .16747E-03   -1.5227    
   6  Prefactor     .10000E-03    10.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10038        2.8323        .12065E-02   -1.5645    
   9  Prefactor     7.9250        16.488        .14243E-03   -1.5145    
  10  Prefactor     10.626        7.7528        .12292E-03   -1.5056    
  11  norm          7.5665        11.742        .14579E-03   -1.5158    
  12  Prefactor     6.1228        10.141        .16224E-03   -1.5213    
  13  Prefactor     .10000E-03    16.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10011E-03    25.721        .40462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    306.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.1018        7.9817        .16252E-03   -1.5214    
  17  Prefactor     .10000E-03    13.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    56.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1981        .23286        .24044E-03   -.86661    
  20  Prefactor     .88723        .21423        .25963E-03   -.96589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74687e-09
Minuit parameter uncertainties:
  1  3.39019e-06
  2  8.07826
  3  8.94182
  4  0.000327226
  5  10.7811
  6  6.84782e-06
  7  5.77e-05
  8  1.06596
  9  16.4979
  10  7.7535
  11  11.7459
  12  10.144
  13  1.35225e-05
  14  0.00331801
  15  0.000146781
  16  7.98311
  17  4.19485e-06
  18  1.9744e-06
  19  0.23306
  20  0.214432
Done.

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

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  7.567e+00  1.175e+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:  8.872e-01  2.144e-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.198e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.52
Ra Dec: 169.766 12.587
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/660828/likelihoodResults_326678401_326937601_4FGL_J1119.0+1235_daily_bin337.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) = 5468.01403865
delta logL = 0.326136847857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5468.00180802
delta logL = 0.338367475554

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1379       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3139       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90363       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=   5468.002     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      214 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1268        204.25        .40512E-02    .24692E-03
   2  alpha         3.3164        2.8768        .44318        .33503E-04
   3  Normalizat    1.1686        .68985E-01    .54947E-01    .76382E-05
   4  Prefactor     .90383        .66889E-01    .45051E-01    .81964E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.12677
  alpha      = 3.31641
  Normalizat = 1.16863
  Prefactor  = 0.903832
 **********
 **   18 **HESSE 
 **********

 FCN=   5468.002     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1268        10.566        .16205E-03   -1.5213    
   2  alpha         3.3164        1.2747        .22054E-01    .33267    
   3  Normalizat    1.1686        .23018        .24297E-03   -.87578    
   4  Prefactor     .90383        .21534        .25743E-03   -.96007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.28044e-12
Minuit parameter uncertainties:
  1  10.5694
  2  1.34641
  3  0.230381
  4  0.215546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660828': 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) = 5468.00180534
delta logL = 0.338370157477

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  6.127e+00  1.057e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        alpha:  3.316e+00  1.346e+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:  9.038e-01  2.155e-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.169e+00  2.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 169.766 12.587
Photon Index (Free Index): 3.32 +/- 1.35
Photon Flux (Free Index): 4.77e-08 +/- 5.10e-08
Energy Flux (Free Index): 9.12e-06 +/- 9.79e-06

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/660828/cmap_HighResolution_326678401_326937601_4FGL_J1119.0+1235_daily_bin337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-05', comment='SUCCESS', energy_flux2='9.12e-06', dlogl='3.38e-01', photon_flux2='4.77e-08', job_status='DONE', time_completed='2021-09-03 15:49:40.023235', photon_index_error2='1.35', photon_index2='3.32', ts='0.52', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='9.79e-06', EG='1.20', time_epoch_completed='1630709380.02', return_code='0', job_id='660828', GAL2='0.90', EG2='1.17', return_code2='0', photon_flux_error2='5.10e-08', ts2='1.21', photon_index='2.41' WHERE bin_id='337' AND source_name='4FGL J1119.0+1235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 15:49:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 660828: <4FGL_J1119.0+1235_daily_bin337> in cluster <slac> Done

Job <4FGL_J1119.0+1235_daily_bin337> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 15:36:02 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 15:39: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:39:43 2021
Terminated at Fri Sep  3 15:49:40 2021
Results reported at Fri Sep  3 15:49:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1119.0+1235_daily_bin337 169.766 12.5866 326678401 326937601 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 :                                   579.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            818 sec.

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

