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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1060
RA = 171.491, Dec = 20.0912
tmin = 514080001, tmax = 514339201
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='784476', job_status='RUN', time_executed='2021-09-03 20:39:09.134994', time_epoch_executed='1630726749.14' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1060'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784476

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784476/ft1_4FGL_J1125.9+2005_daily_bin1060.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784476/ft2_4FGL_J1125.9+2005_daily_bin1060.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784476/ft1_4FGL_J1125.9+2005_daily_bin1060.fits outfile=/scratch/kocevski/784476/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1060.fits ra=171.491 dec=20.0912 rad=12.0 tmin=514080001.0 tmax=514339201.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.64
user 3.41
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/784476/ft2_4FGL_J1125.9+2005_daily_bin1060.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/784476/ft2_4FGL_J1125.9+2005_daily_bin1060.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/784476/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1060.fits evtable="EVENTS" outfile="/scratch/kocevski/784476/ft1_filtered_4FGL_J1125.9+2005_daily_bin1060.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784476/ft1_filtered_4FGL_J1125.9+2005_daily_bin1060.fits" evtable="EVENTS" scfile=/scratch/kocevski/784476/ft2_4FGL_J1125.9+2005_daily_bin1060.fits sctable="SC_DATA" outfile=/scratch/kocevski/784476/ltcube_514080001_514339201_4FGL_J1125.9+2005_daily_bin1060.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/784476/ft2_4FGL_J1125.9+2005_daily_bin1060.fits
.....................!
real 15.38
user 14.76
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784476/ft1_filtered_4FGL_J1125.9+2005_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/784476/ft2_4FGL_J1125.9+2005_daily_bin1060.fits sctable="SC_DATA" expcube=/scratch/kocevski/784476/ltcube_514080001_514339201_4FGL_J1125.9+2005_daily_bin1060.fits outfile=/scratch/kocevski/784476/expmap_514080001_514339201_4FGL_J1125.9+2005_daily_bin1060.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/784476/ltcube_514080001_514339201_4FGL_J1125.9+2005_daily_bin1060.fits
.....................!
real 200.07
user 191.04
sys 5.48

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 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1125.9+2005 @ 171.491 20.0912

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/784476/ft1_filtered_4FGL_J1125.9+2005_daily_bin1060.fits scfile=/scratch/kocevski/784476/ft2_4FGL_J1125.9+2005_daily_bin1060.fits outfile=/scratch/kocevski/784476/cmap_514080001_514339201_4FGL_J1125.9+2005_daily_bin1060.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=171.491 yref=20.0912 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.89
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784476/ft1_filtered_4FGL_J1125.9+2005_daily_bin1060.fits scfile=/scratch/kocevski/784476/ft2_4FGL_J1125.9+2005_daily_bin1060.fits outfile=/scratch/kocevski/784476/cmap_HighResolution_514080001_514339201_4FGL_J1125.9+2005_daily_bin1060.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=171.491 yref=20.0912 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.73
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/784476/ft1_filtered_4FGL_J1125.9+2005_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/784476/ft2_4FGL_J1125.9+2005_daily_bin1060.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/784476/Model_4FGL_J1125.9+2005_daily_bin1060.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/784476/ft1_filtered_4FGL_J1125.9+2005_daily_bin1060.fits.....................!
real 57.70
user 53.60
sys 1.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/784476/ft1_filtered_4FGL_J1125.9+2005_daily_bin1060.fits', '/scratch/kocevski/784476/ft2_4FGL_J1125.9+2005_daily_bin1060.fits', expMap='/scratch/kocevski/784476/expmap_514080001_514339201_4FGL_J1125.9+2005_daily_bin1060.fits', expCube='/scratch/kocevski/784476/ltcube_514080001_514339201_4FGL_J1125.9+2005_daily_bin1060.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/784476/Model_4FGL_J1125.9+2005_daily_bin1060.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1125.9+2005'

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  2.572e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/784476/ft1_filtered_4FGL_J1125.9+2005_daily_bin1060.fits
Spacecraft file(s): /scratch/kocevski/784476/ft2_4FGL_J1125.9+2005_daily_bin1060.fits
Exposure map: /scratch/kocevski/784476/expmap_514080001_514339201_4FGL_J1125.9+2005_daily_bin1060.fits
Exposure cube: /scratch/kocevski/784476/ltcube_514080001_514339201_4FGL_J1125.9+2005_daily_bin1060.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/784476/Model_4FGL_J1125.9+2005_daily_bin1060.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) = 5896.16149421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.941       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7324       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.3687       1.0000         .10000E-03   10000.    
     8 'norm      '    .51389       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18026       1.0000         .10000E-03   10000.    
    11 'norm      '    10.999       1.0000         .10000E-03   10000.    
    12 'norm      '    13.684       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12343E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.276       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.125       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8993       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.475       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9892       1.0000         .10000E-03   10000.    
    20 'norm      '    2.9947       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.799       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .87544       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99283       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99698       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5896.112     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2928 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7557        .46321E-07** at limit **
   2  Prefactor     .10000E-03    .89362        .10019E-06** at limit **
   3  Prefactor     10.940        6.9034        .24955E-07   -.14447E-04
   4  Prefactor     .10000E-03    7.8493       -.11744E-06** at limit **
   5  Prefactor     7.7282        9.9614        .16231E-06   -.11020E-05
   6  Prefactor     .10000E-03    13.003        .44127E-06** at limit **
   7  Prefactor     9.3458        20.819       -.12910E-06   -.48171E-04
   8  norm          .51383        .83699        .41684E-06   -.37345E-03
   9  Prefactor     .10000E-03    1.5450        .16572E-06** at limit **
  10  Prefactor     .18933        85.347        .61048E-05   -.52933E-05
  11  norm          10.998        10.798        .20168E-06    .12308E-04
  12  norm          13.676        13.485        .19810E-06   -.35746E-04
  13  Prefactor     .10000E-03    28.349        .11699E-05** at limit **
  14  Prefactor     18.275        17.566        .12704E-06   -.76454E-05
  15  Prefactor     22.053        47.030       -.19422E-05   -.47251E-04
  16  Prefactor     .10000E-03    4.6549        .53093E-07** at limit **
  17  Prefactor     1.8745        45.949        .25002E-05   -.46336E-05
  18  Prefactor     13.473        12.899        .14069E-06   -.22527E-04
  19  Prefactor     1.9887        1.3828       -.10664E-06    .43931E-04
  20  norm          2.9940        1.9265       -.59840E-07   -.53303E-05
  21  Prefactor     24.794        19.391        .15468E-06   -.98564E-05
  22  Prefactor     .10000E-03    2.1118        .20021E-06** at limit **
  23  Prefactor     .87600        1.3526       -.32331E-06   -.73900E-04
  24  Normalizat    .99334        .23636       -.52503E-05   -.13991E-03
  25  Prefactor     .99647        .22374        .41217E-05   -.15758E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9396
  Prefactor  = 0.0001
  Prefactor  = 7.72819
  Prefactor  = 0.0001
  Prefactor  = 9.34584
  norm       = 0.513833
  Prefactor  = 0.0001
  Prefactor  = 0.189335
  norm       = 10.9979
  norm       = 13.6758
  Prefactor  = 0.0001
  Prefactor  = 18.2751
  Prefactor  = 22.0527
  Prefactor  = 0.0001
  Prefactor  = 1.87452
  Prefactor  = 13.4731
  Prefactor  = 1.98873
  norm       = 2.99404
  Prefactor  = 24.7937
  Prefactor  = 0.0001
  Prefactor  = 0.875997
  Normalizat = 0.993343
  Prefactor  = 0.996474
 **********
 **   18 **HESSE 
 **********

 FCN=   5896.112     FROM HESSE     STATUS=OK           439 CALLS     3367 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7587        .12449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .90212        .70901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.940        6.9029        .12112E-03   -1.5046    
   4  Prefactor     .10000E-03    7.8994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.7282        9.9242        .14421E-03   -1.5152    
   6  Prefactor     .10000E-03    13.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.3458        20.742        .13093E-03   -1.5096    
   8  norm          .51383        .83532        .22655E-03   -1.5565    
   9  Prefactor     .10000E-03    1.5863        .18638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .18933        83.767        .38835E-02   -1.5621    
  11  norm          10.998        10.794        .12080E-03   -1.5045    
  12  norm          13.676        13.491        .10828E-03   -1.4968    
  13  Prefactor     .10000E-03    29.193        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.275        17.564        .93686E-04   -1.4853    
  15  Prefactor     22.053        47.421        .85155E-04   -1.4768    
  16  Prefactor     .10000E-03    4.6604        .16176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.8745        46.175        .30180E-03   -1.5434    
  18  Prefactor     13.473        12.904        .10912E-03   -1.4974    
  19  Prefactor     1.9887        1.3825        .71714E-04   -1.5426    
  20  norm          2.9940        1.9191        .81130E-04   -1.5362    
  21  Prefactor     24.794        19.395        .80439E-04   -1.4712    
  22  Prefactor     .10000E-03    2.1376        .10901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .87600        1.3529        .13724E-02   -1.5521    
  24  Normalizat    .99334        .23740        .25509E-03   -.93254    
  25  Prefactor     .99647        .22287        .26239E-03   -.92847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00116e-08
Minuit parameter uncertainties:
  1  1.73251e-06
  2  1.07412e-06
  3  6.90342
  4  4.11552e-05
  5  9.92635
  6  1.54334e-05
  7  20.7581
  8  0.835339
  9  5.81683e-09
  10  7.97404
  11  10.7954
  12  13.4937
  13  6.2904e-05
  14  17.5689
  15  47.502
  16  3.67087e-06
  17  18.6227
  18  12.9069
  19  1.38254
  20  1.91915
  21  19.3998
  22  3.43615e-06
  23  1.35298
  24  0.237649
  25  0.223079
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  6.290e-05  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  9.965e-01  2.231e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  9.933e-01  2.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.491 20.091
Photon Flux Upper Limit: 8.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/784476/likelihoodResults_514080001_514339201_4FGL_J1125.9+2005_daily_bin1060.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) = 5896.11175561
delta logL = -0.000163409355082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5896.11159225
delta logL = -5.31390469405e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2381       1.0000          .0000       10.000    
     3 'Normalizat'    .99330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99654       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5896.112     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.450        .90712E-02** at limit **
   2  Index         2.2353        8.8757        .50000        .74945E-06
   3  Normalizat    .99334        .36568E-02    .46083E-01    .27344E-03
   4  Prefactor     .99647        .37860E-02    .46224E-01    .25649E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.23529
  Normalizat = 0.993344
  Prefactor  = 0.996474
 **********
 **   18 **HESSE 
 **********

 FCN=   5896.112     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      238 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    629.33        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2353        5.5712        .50000       -.58589    
   3  Normalizat    .99334        .21695E-01    .25508E-03   -.93254    
   4  Prefactor     .99647        .22462E-01    .26239E-03   -.92847    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.47765e-09
Minuit parameter uncertainties:
  1  0.00132253
  2  401.916
  3  0.0216952
  4  0.0224625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784476': 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) = 5896.1115922
delta logL = 1.25055521494e-09

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.323e-03  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.235e+00  4.019e+02  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  9.965e-01  2.246e-02  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  9.933e-01  2.170e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 171.491 20.091

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/784476/cmap_HighResolution_514080001_514339201_4FGL_J1125.9+2005_daily_bin1060.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-03', job_status='DONE', photon_flux_upper_limit='8.50e-08', time_completed='2021-09-03 20:51:36.221075', job_id='784476', GAL2='1.00', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630727496.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.25e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1060' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:51:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 784476: <4FGL_J1125.9+2005_daily_bin1060> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1060> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:36:11 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:37:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 20:37:06 2021
Terminated at Fri Sep  3 20:51:36 2021
Results reported at Fri Sep  3 20:51:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1060 171.491 20.0912 514080001 514339201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1125.9+2005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   727.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            925 sec.

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

