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


Performing analysis on: 4FGL_J1119.0+1235_daily_bin261
RA = 169.766, Dec = 12.5866
tmin = 306979201, tmax = 307238401
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='658754', job_status='RUN', time_executed='2021-09-03 15:33:23.972962', time_epoch_executed='1630708403.97' WHERE source_name='4FGL J1119.0+1235' and cadence='daily' and bin_id='261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/658754

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/658754/ft1_4FGL_J1119.0+1235_daily_bin261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/658754/ft2_4FGL_J1119.0+1235_daily_bin261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/658754/ft1_4FGL_J1119.0+1235_daily_bin261.fits outfile=/scratch/kocevski/658754/ft1_filteredMKT_4FGL_J1119.0+1235_daily_bin261.fits ra=169.766 dec=12.5866 rad=12.0 tmin=306979201.0 tmax=307238401.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 14.17
user 13.71
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/658754/ft2_4FGL_J1119.0+1235_daily_bin261.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/658754/ft1_filteredMKT_4FGL_J1119.0+1235_daily_bin261.fits evtable="EVENTS" outfile="/scratch/kocevski/658754/ft1_filtered_4FGL_J1119.0+1235_daily_bin261.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.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/658754/ft1_filtered_4FGL_J1119.0+1235_daily_bin261.fits" evtable="EVENTS" scfile=/scratch/kocevski/658754/ft2_4FGL_J1119.0+1235_daily_bin261.fits sctable="SC_DATA" outfile=/scratch/kocevski/658754/ltcube_306979201_307238401_4FGL_J1119.0+1235_daily_bin261.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/658754/ft2_4FGL_J1119.0+1235_daily_bin261.fits
.....................!
real 16.05
user 15.28
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/658754/ft1_filtered_4FGL_J1119.0+1235_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/658754/ft2_4FGL_J1119.0+1235_daily_bin261.fits sctable="SC_DATA" expcube=/scratch/kocevski/658754/ltcube_306979201_307238401_4FGL_J1119.0+1235_daily_bin261.fits outfile=/scratch/kocevski/658754/expmap_306979201_307238401_4FGL_J1119.0+1235_daily_bin261.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/658754/ltcube_306979201_307238401_4FGL_J1119.0+1235_daily_bin261.fits
.....................!
real 192.27
user 187.29
sys 4.39

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/658754/ft1_filtered_4FGL_J1119.0+1235_daily_bin261.fits scfile=/scratch/kocevski/658754/ft2_4FGL_J1119.0+1235_daily_bin261.fits outfile=/scratch/kocevski/658754/cmap_306979201_307238401_4FGL_J1119.0+1235_daily_bin261.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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/658754/ft1_filtered_4FGL_J1119.0+1235_daily_bin261.fits scfile=/scratch/kocevski/658754/ft2_4FGL_J1119.0+1235_daily_bin261.fits outfile=/scratch/kocevski/658754/cmap_HighResolution_306979201_307238401_4FGL_J1119.0+1235_daily_bin261.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15488E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4077       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.001       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .24445E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    104.44       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5415       1.0000         .10000E-03   10000.    
    11 'norm      '    12.629       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.675       1.0000         .10000E-03   10000.    
    15 'Prefactor '    624.32       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    96.762       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1744       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86218       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=   2235.127     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2057 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    4.8029       -.10712E-05** at limit **
   2  Prefactor     .10000E-03    4.4362        .82468E-07** at limit **
   3  Prefactor     .10000E-03    9.0183        .34927E-05** at limit **
   4  Prefactor     .10000E-03    11.420       -.35498E-05** at limit **
   5  Prefactor     5.4079        16.052        .18335E-05   -.34138E-04
   6  Prefactor     32.999        36.992       -.12369E-05   -.22603E-04
   7  Prefactor     .10000E-03    16.474        .14403E-05** at limit **
   8  norm          .10002E-03    1.5840        .55798E-06** at limit **
   9  Prefactor     104.44        65.896       -.13249E-05   -.34924E-04
  10  Prefactor     8.5418        8.6660        .33321E-06   -.16834E-04
  11  norm          12.630        25.855        .40213E-05   -.64357E-04
  12  Prefactor     .10000E-03    6.6085        .43926E-07** at limit **
  13  Prefactor     .10000E-03    42.062       -.15713E-05** at limit **
  14  Prefactor     26.676        20.052        .18834E-06   -.17780E-04
  15  Prefactor     624.33        426.98        .17969E-05   -.32634E-05
  16  Prefactor     .10000E-03    12.173        .41433E-05** at limit **
  17  Prefactor     .10001E-03    17.288       -.59027E-05** at limit **
  18  Prefactor     97.024        185.72        .26321E-03    .68007E-05
  19  Normalizat    1.1743        .31416       -.33939E-05   -.47146E-04
  20  Prefactor     .86216        .29668       -.60974E-05   -.34417E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.40793
  Prefactor  = 32.9989
  Prefactor  = 0.0001
  norm       = 0.00010002
  Prefactor  = 104.439
  Prefactor  = 8.54179
  norm       = 12.6301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.6761
  Prefactor  = 624.328
  Prefactor  = 0.000100002
  Prefactor  = 0.00010001
  Prefactor  = 97.0238
  Normalizat = 1.17428
  Prefactor  = 0.862159
 **********
 **   18 **HESSE 
 **********

 FCN=   2235.127     FROM HESSE     STATUS=OK           291 CALLS     2348 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    9.1576        .20104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.4481        .97232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.0295        .13865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.490        .15586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.4079        16.024        .17280E-03   -1.5243    
   6  Prefactor     32.999        36.984        .69754E-04   -1.4558    
   7  Prefactor     .10000E-03    16.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10002E-03    28.937        .11389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     104.44        65.799        .39347E-04   -1.3660    
  10  Prefactor     8.5418        8.6674        .13621E-03   -1.5123    
  11  norm          12.630        25.842        .11272E-03   -1.4997    
  12  Prefactor     .10000E-03    6.6130        .11871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    42.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.676        20.059        .77565E-04   -1.4675    
  15  Prefactor     624.33        427.04        .82665E-04   -1.0657    
  16  Prefactor     .10000E-03    12.164        .16106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    17.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     97.024        185.63        .20431E-03   -1.3735    
  19  Normalizat    1.1743        .36856        .25207E-03   -.87401    
  20  Prefactor     .86216        .34705        .27519E-03   -.97476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04729e-09
Minuit parameter uncertainties:
  1  0.000734559
  2  2.27215e-05
  3  3.44475e-05
  4  7.70444e-05
  5  16.0363
  6  37.0094
  7  6.67336e-05
  8  0.00150542
  9  65.8452
  10  8.66868
  11  25.865
  12  1.31264e-05
  13  2.85702e-05
  14  20.0639
  15  429.287
  16  0.000346022
  17  0.000822499
  18  186.759
  19  0.369373
  20  0.347945
Done.

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

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  1.263e+01  2.586e+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.622e-01  3.479e-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.174e+00  3.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/658754/likelihoodResults_306979201_307238401_4FGL_J1119.0+1235_daily_bin261.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) = 2234.62353102
delta logL = 0.503253493268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2234.58662615
delta logL = 0.540158356684

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.5475       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7725       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0842       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91230       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2234.587     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      237 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5499        16.693        .12969E-03   -.13836E-02
   2  alpha         3.7725        1.2732        .15636E-02   -.12063E-03
   3  Normalizat    1.0842        .37460        .26039E-03    .13874E-03
   4  Prefactor     .91232        .34894        .26801E-03    .15271E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.54993
  alpha      = 3.77247
  Normalizat = 1.08424
  Prefactor  = 0.91232
 **********
 **   18 **HESSE 
 **********

 FCN=   2234.587     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5499        16.384        .51878E-05   -1.5090    
   2  alpha         3.7725        1.2527        .62546E-04    .53401    
   3  Normalizat    1.0842        .37499        .52077E-04   -.90259    
   4  Prefactor     .91232        .34926        .53603E-04   -.95712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28186e-09
Minuit parameter uncertainties:
  1  16.3913
  2  1.33704
  3  0.375913
  4  0.350126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/658754': 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) = 2234.58662612
delta logL = 0.540158390175

Extracting fit parameters...

4FGL J1119.0+1235
   Spectrum: LogParabola
287         norm:  9.550e+00  1.639e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        alpha:  3.772e+00  1.337e+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.123e-01  3.501e-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.084e+00  3.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 169.766 12.587
Photon Index (Free Index): 3.77 +/- 1.34
Photon Flux (Free Index): 1.30e-07 +/- 1.34e-07
Energy Flux (Free Index): 2.19e-05 +/- 2.17e-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/658754/cmap_HighResolution_306979201_307238401_4FGL_J1119.0+1235_daily_bin261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.87e-05', comment='SUCCESS', energy_flux2='2.19e-05', dlogl='5.40e-01', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-03 15:41:43.209381', photon_index_error2='1.34', photon_index2='3.77', ts='0.29', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='2.28e-07', energy_flux_error2='2.17e-05', EG='1.17', time_epoch_completed='1630708903.21', return_code='0', job_id='658754', GAL2='0.91', EG2='1.08', return_code2='0', photon_flux_error2='1.34e-07', ts2='1.44', photon_index='2.41' WHERE bin_id='261' AND source_name='4FGL J1119.0+1235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 15:41:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 658754: <4FGL_J1119.0+1235_daily_bin261> in cluster <slac> Done

Job <4FGL_J1119.0+1235_daily_bin261> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 15:32:03 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 15:33:12 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:33:12 2021
Terminated at Fri Sep  3 15:41:43 2021
Results reported at Fri Sep  3 15:41:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1119.0+1235_daily_bin261 169.766 12.5866 306979201 307238401 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 :                                   488.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   511 sec.
    Turnaround time :                            580 sec.

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

