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


Performing analysis on: 4FGL_J1119.0+1235_daily_bin1422
RA = 169.766, Dec = 12.5866
tmin = 607910401, tmax = 608169601
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='668564', job_status='RUN', time_executed='2021-09-03 15:59:25.133383', time_epoch_executed='1630709965.13' WHERE source_name='4FGL J1119.0+1235' and cadence='daily' and bin_id='1422'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/668564

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/668564/ft1_4FGL_J1119.0+1235_daily_bin1422.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/668564/ft2_4FGL_J1119.0+1235_daily_bin1422.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/668564/ft1_4FGL_J1119.0+1235_daily_bin1422.fits outfile=/scratch/kocevski/668564/ft1_filteredMKT_4FGL_J1119.0+1235_daily_bin1422.fits ra=169.766 dec=12.5866 rad=12.0 tmin=607910401.0 tmax=608169601.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 2.99
user 2.72
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/668564/ft1_filtered_4FGL_J1119.0+1235_daily_bin1422.fits" evtable="EVENTS" scfile=/scratch/kocevski/668564/ft2_4FGL_J1119.0+1235_daily_bin1422.fits sctable="SC_DATA" outfile=/scratch/kocevski/668564/ltcube_607910401_608169601_4FGL_J1119.0+1235_daily_bin1422.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/668564/ft2_4FGL_J1119.0+1235_daily_bin1422.fits
.....................!
real 19.80
user 19.44
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/668564/ft1_filtered_4FGL_J1119.0+1235_daily_bin1422.fits evtable="EVENTS" scfile=/scratch/kocevski/668564/ft2_4FGL_J1119.0+1235_daily_bin1422.fits sctable="SC_DATA" expcube=/scratch/kocevski/668564/ltcube_607910401_608169601_4FGL_J1119.0+1235_daily_bin1422.fits outfile=/scratch/kocevski/668564/expmap_607910401_608169601_4FGL_J1119.0+1235_daily_bin1422.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/668564/ltcube_607910401_608169601_4FGL_J1119.0+1235_daily_bin1422.fits
.....................!
real 159.96
user 154.59
sys 4.97

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/668564/ft1_filtered_4FGL_J1119.0+1235_daily_bin1422.fits scfile=/scratch/kocevski/668564/ft2_4FGL_J1119.0+1235_daily_bin1422.fits outfile=/scratch/kocevski/668564/cmap_607910401_608169601_4FGL_J1119.0+1235_daily_bin1422.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.79
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/668564/ft1_filtered_4FGL_J1119.0+1235_daily_bin1422.fits scfile=/scratch/kocevski/668564/ft2_4FGL_J1119.0+1235_daily_bin1422.fits outfile=/scratch/kocevski/668564/cmap_HighResolution_607910401_608169601_4FGL_J1119.0+1235_daily_bin1422.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.51
user 0.36
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2179       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4151       1.0000         .10000E-03   10000.    
     8 'norm      '    .35837       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.953       1.0000         .10000E-03   10000.    
    11 'norm      '    18.217       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.426       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    48.487       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2863       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15065E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .73531       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1536       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=   4882.772     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2019 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1590       -.63006E-08** at limit **
   2  Prefactor     1.2182        3.2035       -.54870E-06   -.59547E-03
   3  Prefactor     .10000E-03    5.6175        .98386E-06** at limit **
   4  Prefactor     .10000E-03    4.1167        .73566E-06** at limit **
   5  Prefactor     .10000E-03    4.2318       -.10019E-05** at limit **
   6  Prefactor     .10000E-03    7.2865        .89060E-05** at limit **
   7  Prefactor     4.4164        12.230       -.28455E-05   -.10919E-03
   8  norm          .35823        1.0274       -.48261E-06   -.15710E-02
   9  Prefactor     .10000E-03    15.378       -.51640E-06** at limit **
  10  Prefactor     10.952        7.0475        .19263E-06    .53852E-05
  11  norm          18.216        11.805        .17858E-05    .28170E-04
  12  Prefactor     .10000E-03    2.9961       -.13840E-06** at limit **
  13  Prefactor     24.412        37.248       -.13285E-04    .99818E-05
  14  Prefactor     .10000E-03    7.0363       -.97324E-05** at limit **
  15  Prefactor     48.446        124.63       -.55375E-04   -.20251E-04
  16  Prefactor     5.2725        14.001        .24709E-04    .19306E-04
  17  Prefactor     .10000E-03    17.497       -.12119E-05** at limit **
  18  Prefactor     .10002E-03    127.89       -.12196E-04** at limit **
  19  Normalizat    .73549        .18774        .18074E-05   -.27788E-04
  20  Prefactor     1.1534        .17999       -.72625E-06    .78713E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.21822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.41635
  norm       = 0.358231
  Prefactor  = 0.0001
  Prefactor  = 10.9523
  norm       = 18.2163
  Prefactor  = 0.0001
  Prefactor  = 24.4124
  Prefactor  = 0.0001
  Prefactor  = 48.4462
  Prefactor  = 5.27247
  Prefactor  = 0.000100002
  Prefactor  = 0.000100016
  Normalizat = 0.735485
  Prefactor  = 1.15344
 **********
 **   18 **HESSE 
 **********

 FCN=   4882.772     FROM HESSE     STATUS=OK           287 CALLS     2306 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1673        .73459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2182        3.1372        .19662E-03   -1.5487    
   3  Prefactor     .10000E-03    5.6927        .16169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1519        .13824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2384        .14029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4164        12.227        .19166E-03   -1.5288    
   8  norm          .35823        1.0104        .11318E-03   -1.5588    
   9  Prefactor     .10000E-03    15.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.952        7.0498        .12106E-03   -1.5046    
  11  norm          18.216        11.796        .93839E-04   -1.4854    
  12  Prefactor     .10000E-03    3.0002        .11811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.412        37.298        .81050E-04   -1.4719    
  14  Prefactor     .10000E-03    7.0827        .18069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     48.446        124.93        .57587E-04   -1.4315    
  16  Prefactor     5.2725        13.905        .17481E-03   -1.5249    
  17  Prefactor     .10000E-03    17.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    128.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .73549        .21165        .26050E-03   -1.0251    
  20  Prefactor     1.1534        .20424        .21564E-03   -.87776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30196e-09
Minuit parameter uncertainties:
  1  9.90822e-07
  2  3.13759
  3  1.48028e-05
  4  1.75213e-05
  5  1.13456e-05
  6  2.53041e-05
  7  12.2342
  8  1.01049
  9  1.05798e-05
  10  7.05033
  11  11.7975
  12  1.07288e-06
  13  37.3336
  14  2.72819e-05
  15  125.616
  16  13.9131
  17  0.000356296
  18  0.00286441
  19  0.211891
  20  0.204382
Done.

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

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  1.822e+01  1.180e+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:  1.153e+00  2.044e-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:  7.355e-01  2.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.30
Ra Dec: 169.766 12.587
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 5.45e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.06e-05

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) = 4882.56718519
delta logL = 0.204477684642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4882.56416631
delta logL = 0.207496569974

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.069       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9096       1.0000          .0000       5.0000    
     3 'Normalizat'    .75677       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1396       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=   4882.564     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      198 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.069        15.258        .22930E-02   -.25111E-03
   2  alpha         1.9096        .77233        .42705       -.57703E-04
   3  Normalizat    .75678        .17875        .43043E-01    .29490E-04
   4  Prefactor     1.1396        .18053        .36245E-01   -.13589E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.0689
  alpha      = 1.90959
  Normalizat = 0.75678
  Prefactor  = 1.13961
 **********
 **   18 **HESSE 
 **********

 FCN=   4882.564     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.069        12.559        .91720E-04   -1.4834    
   2  alpha         1.9096        .72754        .17462E-01   -.23842    
   3  Normalizat    .75678        .20126        .25715E-03   -1.0169    
   4  Prefactor     1.1396        .20379        .21671E-03   -.88211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27186e-10
Minuit parameter uncertainties:
  1  12.5609
  2  0.738881
  3  0.201459
  4  0.203928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/668564': 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) = 4882.5641663
delta logL = 0.207496574913

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  1.907e+01  1.256e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        alpha:  1.910e+00  7.389e-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:  1.140e+00  2.039e-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:  7.568e-01  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.72
Ra Dec: 169.766 12.587
Photon Index (Free Index): 1.91 +/- 0.74
Photon Flux (Free Index): 3.92e-08 +/- 3.39e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.27e-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/668564/cmap_HighResolution_607910401_608169601_4FGL_J1119.0+1235_daily_bin1422.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.45e-08', energy_flux2='1.85e-05', photon_flux_error='3.53e-08', dlogl='2.07e-01', energy_flux='1.64e-05', photon_flux2='3.92e-08', job_status='DONE', time_completed='2021-09-03 16:09:13.840347', photon_index_error2='0.74', photon_index2='1.91', ts='5.30', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='0.74', time_epoch_completed='1630710553.84', return_code='0', job_id='668564', GAL2='1.14', EG2='0.76', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='3.39e-08', ts2='5.72', photon_index='2.41' WHERE bin_id='1422' AND source_name='4FGL J1119.0+1235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 16:09:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 668564: <4FGL_J1119.0+1235_daily_bin1422> in cluster <slac> Done

Job <4FGL_J1119.0+1235_daily_bin1422> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 15:56:23 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 15:57:16 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:57:16 2021
Terminated at Fri Sep  3 16:09:14 2021
Results reported at Fri Sep  3 16:09:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1119.0+1235_daily_bin1422 169.766 12.5866 607910401 608169601 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 :                                   447.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            771 sec.

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

