/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 7 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_bin368
RA = 169.766, Dec = 12.5866
tmin = 334713601, tmax = 334972801
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='660939', job_status='RUN', time_executed='2021-09-03 15:40:26.899638', time_epoch_executed='1630708826.9' WHERE source_name='4FGL J1119.0+1235' and cadence='daily' and bin_id='368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660939

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660939/ft1_4FGL_J1119.0+1235_daily_bin368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660939/ft2_4FGL_J1119.0+1235_daily_bin368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660939/ft1_4FGL_J1119.0+1235_daily_bin368.fits outfile=/scratch/kocevski/660939/ft1_filteredMKT_4FGL_J1119.0+1235_daily_bin368.fits ra=169.766 dec=12.5866 rad=12.0 tmin=334713601.0 tmax=334972801.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.65
user 3.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/660939/ft1_filtered_4FGL_J1119.0+1235_daily_bin368.fits" evtable="EVENTS" scfile=/scratch/kocevski/660939/ft2_4FGL_J1119.0+1235_daily_bin368.fits sctable="SC_DATA" outfile=/scratch/kocevski/660939/ltcube_334713601_334972801_4FGL_J1119.0+1235_daily_bin368.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/660939/ft2_4FGL_J1119.0+1235_daily_bin368.fits
.....................!
real 17.32
user 16.85
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660939/ft1_filtered_4FGL_J1119.0+1235_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/660939/ft2_4FGL_J1119.0+1235_daily_bin368.fits sctable="SC_DATA" expcube=/scratch/kocevski/660939/ltcube_334713601_334972801_4FGL_J1119.0+1235_daily_bin368.fits outfile=/scratch/kocevski/660939/expmap_334713601_334972801_4FGL_J1119.0+1235_daily_bin368.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/660939/ltcube_334713601_334972801_4FGL_J1119.0+1235_daily_bin368.fits
.....................!
real 194.73
user 188.24
sys 5.79

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/660939/ft1_filtered_4FGL_J1119.0+1235_daily_bin368.fits scfile=/scratch/kocevski/660939/ft2_4FGL_J1119.0+1235_daily_bin368.fits outfile=/scratch/kocevski/660939/cmap_334713601_334972801_4FGL_J1119.0+1235_daily_bin368.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.59
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/660939/ft1_filtered_4FGL_J1119.0+1235_daily_bin368.fits scfile=/scratch/kocevski/660939/ft2_4FGL_J1119.0+1235_daily_bin368.fits outfile=/scratch/kocevski/660939/cmap_HighResolution_334713601_334972801_4FGL_J1119.0+1235_daily_bin368.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.60
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0314       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8158       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0397       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2954       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.010       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3101       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.934       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10264E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.536       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36227E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .72713       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2608       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=   6228.616     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2058 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0313        2.7653        .72560E-02    .85363E-03
   2  Prefactor     .10000E-03    4.9451        .90712E-02** at limit **
   3  Prefactor     6.8163        8.1370        .38421E-02    .21457E-02
   4  Prefactor     7.0281        14.764        .37799E-02    .12627E-02
   5  Prefactor     3.3024        17.480        .55758E-02    .32897E-03
   6  Prefactor     18.009        10.570        .23594E-02    .37651E-03
   7  Prefactor     .10000E-03    11.445        .90712E-02** at limit **
   8  norm          2.3102        1.1103        .67487E-02   -.17285E-03
   9  Prefactor     28.928        21.010        .18620E-02   -.34500E-03
  10  Prefactor     .10000E-03    2.8874        .90712E-02** at limit **
  11  norm          .10000E-03    4.5770        .66394E-01** at limit **
  12  Prefactor     18.537        13.963        .23257E-02    .21088E-04
  13  Prefactor     .10004E-03    50.054        .90712E-02** at limit **
  14  Prefactor     .10024E-03    6.5096        .92026E-01** at limit **
  15  Prefactor     .10002E-03    89.986        .90712E-02** at limit **
  16  Prefactor     .10000E-03    8.1594        .90712E-02** at limit **
  17  Prefactor     .10000E-03    4.9073        .90712E-02** at limit **
  18  Prefactor     .10000E-03    23.016        .90712E-02** at limit **
  19  Normalizat    .72718        .17648        .66086E-01    .37607E-03
  20  Prefactor     1.2608        .16579        .50486E-01    .63544E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.03127
  Prefactor  = 0.0001
  Prefactor  = 6.81632
  Prefactor  = 7.02807
  Prefactor  = 3.3024
  Prefactor  = 18.0088
  Prefactor  = 0.0001
  norm       = 2.31024
  Prefactor  = 28.9284
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.5374
  Prefactor  = 0.000100038
  Prefactor  = 0.000100243
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.727183
  Prefactor  = 1.26078
 **********
 **   18 **HESSE 
 **********

 FCN=   6228.616     FROM HESSE     STATUS=OK           299 CALLS     2357 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0313        2.7372        .14478E-03   -1.5423    
   2  Prefactor     .10000E-03    5.0142        .17128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.8163        8.0933        .15368E-03   -1.5186    
   4  Prefactor     7.0281        14.273        .15120E-03   -1.5178    
   5  Prefactor     3.3024        16.245        .22303E-03   -1.5344    
   6  Prefactor     18.009        10.560        .94377E-04   -1.4859    
   7  Prefactor     .10000E-03    11.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3102        1.1116        .55641E-04   -1.5404    
   9  Prefactor     28.928        21.009        .74482E-04   -1.4632    
  10  Prefactor     .10000E-03    2.8939        .13095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    12.450        .32738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.537        13.992        .93027E-04   -1.4847    
  13  Prefactor     .10004E-03    50.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10024E-03    9.9438        .65892E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    90.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.3271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.9165        .17075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .72718        .20531        .29240E-03   -1.0283    
  20  Prefactor     1.2608        .19398        .22319E-03   -.84481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.15407e-09
Minuit parameter uncertainties:
  1  2.73736
  2  3.74597e-05
  3  8.09458
  4  14.2795
  5  14.6549
  6  10.5609
  7  4.94829e-05
  8  1.11159
  9  21.0144
  10  2.57388e-05
  11  2.26546e-05
  12  13.9945
  13  0.00277072
  14  0.00310649
  15  0.00292869
  16  0.00010508
  17  7.60537e-05
  18  0.000100331
  19  0.205528
  20  0.194088
Done.

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

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  1.000e-04  2.265e-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.261e+00  1.941e-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.272e-01  2.055e-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.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/660939/likelihoodResults_334713601_334972801_4FGL_J1119.0+1235_daily_bin368.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) = 6228.61630949
delta logL = -0.000380785838388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6228.61592877
delta logL = -6.04786691838e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4026       1.0000          .0000       5.0000    
     3 'Normalizat'    .72725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2607       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=   6228.616     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      222 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.7846        .66458E-01** at limit **
   2  alpha         2.4003        3.0130        .41191        .85570E-06
   3  Normalizat    .72718        .57515E-02    .66086E-01    .39812E-04
   4  Prefactor     1.2608        .56508E-02    .50486E-01    .20259E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.40028
  Normalizat = 0.727184
  Prefactor  = 1.26078
 **********
 **   18 **HESSE 
 **********

 FCN=   6228.616     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      253 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    944.64        .32755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4003        3.7695        .16476       -.39900E-01
   3  Normalizat    .72718        .42625E-01    .29240E-03   -1.0283    
   4  Prefactor     1.2608        .41939E-01    .22319E-03   -.84481    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.76387e-07
Minuit parameter uncertainties:
  1  0.000412957
  2  2272.37
  3  0.042627
  4  0.0419397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660939': 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): 102
logL (Free Index) = 6228.6159287
delta logL = 2.05636752071e-09

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  1.000e-04  4.130e-04  1.000e-04  1.000e+04 ( 1.000e-12)
288        alpha:  2.400e+00  2.272e+03  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.261e+00  4.194e-02  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.272e-01  4.263e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/660939/cmap_HighResolution_334713601_334972801_4FGL_J1119.0+1235_daily_bin368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-05', job_status='DONE', photon_flux_upper_limit='5.57e-08', time_completed='2021-09-03 15:51:10.113252', job_id='660939', GAL2='1.26', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630709470.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='2.06e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='368' AND source_name='4FGL J1119.0+1235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 15:51:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 660939: <4FGL_J1119.0+1235_daily_bin368> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1119.0+1235_daily_bin368 169.766 12.5866 334713601 334972801 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 :                                   635.60 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             345.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            901 sec.

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

