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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1283
RA = 171.491, Dec = 20.0912
tmin = 571881601, tmax = 572140801
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='784797', job_status='RUN', time_executed='2021-09-03 20:40:06.231112', time_epoch_executed='1630726806.23' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784797

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784797/ft1_4FGL_J1125.9+2005_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784797/ft2_4FGL_J1125.9+2005_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784797/ft1_4FGL_J1125.9+2005_daily_bin1283.fits outfile=/scratch/kocevski/784797/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1283.fits ra=171.491 dec=20.0912 rad=12.0 tmin=571881601.0 tmax=572140801.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.57
user 2.36
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/784797/ft2_4FGL_J1125.9+2005_daily_bin1283.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/784797/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1283.fits evtable="EVENTS" outfile="/scratch/kocevski/784797/ft1_filtered_4FGL_J1125.9+2005_daily_bin1283.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784797/ft1_filtered_4FGL_J1125.9+2005_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/784797/ft2_4FGL_J1125.9+2005_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/784797/ltcube_571881601_572140801_4FGL_J1125.9+2005_daily_bin1283.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/784797/ft2_4FGL_J1125.9+2005_daily_bin1283.fits
.....................!
real 17.51
user 17.10
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784797/ft1_filtered_4FGL_J1125.9+2005_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/784797/ft2_4FGL_J1125.9+2005_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/784797/ltcube_571881601_572140801_4FGL_J1125.9+2005_daily_bin1283.fits outfile=/scratch/kocevski/784797/expmap_571881601_572140801_4FGL_J1125.9+2005_daily_bin1283.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/784797/ltcube_571881601_572140801_4FGL_J1125.9+2005_daily_bin1283.fits
.....................!
real 191.61
user 187.04
sys 4.12

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/784797/ft1_filtered_4FGL_J1125.9+2005_daily_bin1283.fits scfile=/scratch/kocevski/784797/ft2_4FGL_J1125.9+2005_daily_bin1283.fits outfile=/scratch/kocevski/784797/cmap_571881601_572140801_4FGL_J1125.9+2005_daily_bin1283.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 1.10
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784797/ft1_filtered_4FGL_J1125.9+2005_daily_bin1283.fits scfile=/scratch/kocevski/784797/ft2_4FGL_J1125.9+2005_daily_bin1283.fits outfile=/scratch/kocevski/784797/cmap_HighResolution_571881601_572140801_4FGL_J1125.9+2005_daily_bin1283.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 1.37
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/784797/ft1_filtered_4FGL_J1125.9+2005_daily_bin1283.fits', '/scratch/kocevski/784797/ft2_4FGL_J1125.9+2005_daily_bin1283.fits', expMap='/scratch/kocevski/784797/expmap_571881601_572140801_4FGL_J1125.9+2005_daily_bin1283.fits', expCube='/scratch/kocevski/784797/ltcube_571881601_572140801_4FGL_J1125.9+2005_daily_bin1283.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/784797/Model_4FGL_J1125.9+2005_daily_bin1283.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/784797/ft1_filtered_4FGL_J1125.9+2005_daily_bin1283.fits
Spacecraft file(s): /scratch/kocevski/784797/ft2_4FGL_J1125.9+2005_daily_bin1283.fits
Exposure map: /scratch/kocevski/784797/expmap_571881601_572140801_4FGL_J1125.9+2005_daily_bin1283.fits
Exposure cube: /scratch/kocevski/784797/ltcube_571881601_572140801_4FGL_J1125.9+2005_daily_bin1283.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/784797/Model_4FGL_J1125.9+2005_daily_bin1283.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) = 1579.46940289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.937       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    125.44       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.7213       1.0000         .10000E-03   10000.    
    12 'norm      '    32.525       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.691       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.867       1.0000         .10000E-03   10000.    
    16 'Prefactor '    53.961       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1381       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8058       1.0000         .10000E-03   10000.    
    20 'norm      '    1.9031       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3746       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1255       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .56253       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=   1579.444     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2872 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.945        .27177E-05** at limit **
   2  Prefactor     .10000E-03    37.683        .90269E-05** at limit **
   3  Prefactor     28.939        30.815        .46142E-06    .71339E-05
   4  Prefactor     .10000E-03    39.411       -.37396E-05** at limit **
   5  Prefactor     125.44        88.268       -.71510E-06    .92539E-06
   6  Prefactor     .10000E-03    63.041        .66557E-06** at limit **
   7  Prefactor     .10000E-03    101.15       -.66768E-05** at limit **
   8  norm          .10000E-03    2.8892       -.19273E-06** at limit **
   9  Prefactor     .10000E-03    9.6184        .46158E-06** at limit **
  10  Prefactor     .10000E-03    22.248       -.50992E-06** at limit **
  11  norm          4.7190        36.389       -.15255E-05   -.21923E-04
  12  norm          32.510        55.000       -.16979E-04   -.12060E-05
  13  Prefactor     36.696        48.306        .46281E-05    .10628E-04
  14  Prefactor     .10000E-03    40.346       -.86819E-05** at limit **
  15  Prefactor     12.864        136.99       -.62294E-05    .22843E-05
  16  Prefactor     53.956        52.635       -.32307E-05    .14848E-04
  17  Prefactor     .10000E-03    65.468        .65973E-05** at limit **
  18  Prefactor     3.1378        20.515       -.15175E-05   -.77325E-04
  19  Prefactor     3.8058        5.4529        .99273E-07   -.11064E-03
  20  norm          1.9033        2.4386        .10287E-06    .16544E-04
  21  Prefactor     .10000E-03    11.655        .82011E-08** at limit **
  22  Prefactor     5.3741        7.0721       -.40560E-06   -.43987E-04
  23  Prefactor     .10000E-03    3.3708       -.23951E-06** at limit **
  24  Normalizat    1.1252        .38333        .12871E-05    .17002E-04
  25  Prefactor     .56276        .34532        .19888E-05    .15887E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.9394
  Prefactor  = 0.0001
  Prefactor  = 125.437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.71905
  norm       = 32.5102
  Prefactor  = 36.6957
  Prefactor  = 0.0001
  Prefactor  = 12.8642
  Prefactor  = 53.9563
  Prefactor  = 0.0001
  Prefactor  = 3.13781
  Prefactor  = 3.80579
  norm       = 1.90331
  Prefactor  = 0.0001
  Prefactor  = 5.37414
  Prefactor  = 0.0001
  Normalizat = 1.12521
  Prefactor  = 0.562762
 **********
 **   18 **HESSE 
 **********

 FCN=   1579.444     FROM HESSE     STATUS=OK           423 CALLS     3295 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.939        30.857        .74477E-04   -1.4632    
   4  Prefactor     .10000E-03    39.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     125.44        88.188        .35941E-04   -1.3463    
   6  Prefactor     .10000E-03    63.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    101.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.9580        .13159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.6250        .12041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.7190        35.781        .18519E-03   -1.5273    
  12  norm          32.510        55.025        .70260E-04   -1.4567    
  13  Prefactor     36.696        48.460        .66163E-04   -1.4496    
  14  Prefactor     .10000E-03    40.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.864        135.82        .11167E-03   -1.4990    
  16  Prefactor     53.956        52.612        .54603E-04   -1.4238    
  17  Prefactor     .10000E-03    65.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1378        20.519        .22884E-03   -1.5354    
  19  Prefactor     3.8058        5.4349        .10283E-03   -1.5318    
  20  norm          1.9033        2.4312        .68305E-04   -1.5432    
  21  Prefactor     .10000E-03    11.666        .13253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.3741        7.0654        .11373E-03   -1.5244    
  23  Prefactor     .10000E-03    3.4952        .14229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1252        .46732        .24458E-03   -.88946    
  25  Prefactor     .56276        .41269        .30238E-03   -1.0918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.09443e-11
Minuit parameter uncertainties:
  1  3.0115e-07
  2  1.07703e-05
  3  30.8742
  4  7.2226e-06
  5  88.2806
  6  1.73406e-05
  7  6.21306e-05
  8  9.39493e-06
  9  8.82591e-06
  10  4.48859e-05
  11  26.0101
  12  55.1111
  13  48.5123
  14  8.42987e-05
  15  83.8426
  16  52.6576
  17  5.49151e-05
  18  16.0559
  19  5.43559
  20  2.43135
  21  9.43588e-06
  22  7.06649
  23  5.28748e-06
  24  0.469052
  25  0.414927
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  3.670e+01  4.851e+01  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:  5.628e-01  4.149e-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:  1.125e+00  4.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.75
Ra Dec: 171.491 20.091
Photon Flux Upper Limit: 4.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/784797/likelihoodResults_571881601_572140801_4FGL_J1125.9+2005_daily_bin1283.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) = 1579.07453668
delta logL = 0.3695357842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1579.06803188
delta logL = 0.376040581666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.806       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0039       1.0000          .0000       10.000    
     3 'Normalizat'    1.0626       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60678       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1579.068     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      294 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.803        40.214        .10409E-03    .81040E-04
   2  Index         3.0039        1.2553        .35099E-02    .31021E-04
   3  Normalizat    1.0624        .45719        .25014E-03   -.44152E-04
   4  Prefactor     .60711        .40971        .29164E-03   -.44449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8033
  Index      = 3.00391
  Normalizat = 1.06236
  Prefactor  = 0.607112
 **********
 **   18 **HESSE 
 **********

 FCN=   1579.068     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.803        32.959        .41637E-05   -1.4938    
   2  Index         3.0039        1.0322        .14040E-03   -.41066    
   3  Normalizat    1.0624        .45770        .50027E-04   -.90970    
   4  Prefactor     .60711        .40930        .11666E-04   -1.0729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71874e-11
Minuit parameter uncertainties:
  1  32.9991
  2  1.04115
  3  0.459417
  4  0.411334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784797': 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) = 1579.06803152
delta logL = 0.376040939104

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.480e+01  3.300e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  3.004e+00  1.041e+00  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:  6.071e-01  4.113e-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:  1.062e+00  4.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.53
Ra Dec: 171.491 20.091
Photon Index (Free Index): 3.00 +/- 1.04
Photon Flux (Free Index): 1.86e-07 +/- 1.88e-07
Energy Flux (Free Index): 3.70e-05 +/- 3.86e-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/784797/cmap_HighResolution_571881601_572140801_4FGL_J1125.9+2005_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-02', comment='SUCCESS', energy_flux2='3.70e-05', dlogl='3.76e-01', photon_flux2='1.86e-07', job_status='DONE', time_completed='2021-09-03 20:47:24.354056', photon_index_error2='1.04', photon_index2='3.00', ts='0.75', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='4.01e-07', energy_flux_error2='3.86e-05', EG='1.13', time_epoch_completed='1630727244.35', return_code='0', job_id='784797', GAL2='0.61', EG2='1.06', return_code2='0', photon_flux_error2='1.88e-07', ts2='1.53', photon_index='2.24' WHERE bin_id='1283' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:47:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 784797: <4FGL_J1125.9+2005_daily_bin1283> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1283> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:36:31 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:39:53 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:39:53 2021
Terminated at Fri Sep  3 20:47:25 2021
Results reported at Fri Sep  3 20:47:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1283 171.491 20.0912 571881601 572140801 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 :                                   425.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   451 sec.
    Turnaround time :                            654 sec.

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

