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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1358
RA = 171.491, Dec = 20.0912
tmin = 591321601, tmax = 591580801
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='784905', job_status='RUN', time_executed='2021-09-03 20:40:48.285576', time_epoch_executed='1630726848.29' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784905

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784905/ft1_4FGL_J1125.9+2005_daily_bin1358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784905/ft2_4FGL_J1125.9+2005_daily_bin1358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784905/ft1_4FGL_J1125.9+2005_daily_bin1358.fits outfile=/scratch/kocevski/784905/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1358.fits ra=171.491 dec=20.0912 rad=12.0 tmin=591321601.0 tmax=591580801.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.48
user 2.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/784905/ft2_4FGL_J1125.9+2005_daily_bin1358.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/784905/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1358.fits evtable="EVENTS" outfile="/scratch/kocevski/784905/ft1_filtered_4FGL_J1125.9+2005_daily_bin1358.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.47
user 0.32
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784905/ft1_filtered_4FGL_J1125.9+2005_daily_bin1358.fits" evtable="EVENTS" scfile=/scratch/kocevski/784905/ft2_4FGL_J1125.9+2005_daily_bin1358.fits sctable="SC_DATA" outfile=/scratch/kocevski/784905/ltcube_591321601_591580801_4FGL_J1125.9+2005_daily_bin1358.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/784905/ft2_4FGL_J1125.9+2005_daily_bin1358.fits
.....................!
real 17.15
user 16.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784905/ft1_filtered_4FGL_J1125.9+2005_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/784905/ft2_4FGL_J1125.9+2005_daily_bin1358.fits sctable="SC_DATA" expcube=/scratch/kocevski/784905/ltcube_591321601_591580801_4FGL_J1125.9+2005_daily_bin1358.fits outfile=/scratch/kocevski/784905/expmap_591321601_591580801_4FGL_J1125.9+2005_daily_bin1358.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/784905/ltcube_591321601_591580801_4FGL_J1125.9+2005_daily_bin1358.fits
.....................!
real 160.44
user 155.19
sys 4.38

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/784905/ft1_filtered_4FGL_J1125.9+2005_daily_bin1358.fits scfile=/scratch/kocevski/784905/ft2_4FGL_J1125.9+2005_daily_bin1358.fits outfile=/scratch/kocevski/784905/cmap_591321601_591580801_4FGL_J1125.9+2005_daily_bin1358.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.54
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784905/ft1_filtered_4FGL_J1125.9+2005_daily_bin1358.fits scfile=/scratch/kocevski/784905/ft2_4FGL_J1125.9+2005_daily_bin1358.fits outfile=/scratch/kocevski/784905/cmap_HighResolution_591321601_591580801_4FGL_J1125.9+2005_daily_bin1358.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.52
user 0.33
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .64137       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4650       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9625       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.6546       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2608       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5664       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2024       1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.813       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4691       1.0000         .10000E-03   10000.    
    20 'norm      '    .51109       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95712       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2635       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6896.733     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2888 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1578         .0000    ** at limit **
   2  Prefactor     .64214        1.3884         .0000        .21009E-03
   3  Prefactor     .10000E-03    7.8808         .0000    ** at limit **
   4  Prefactor     6.4641        7.9761         .0000        .31722E-03
   5  Prefactor     1.9627        7.8058         .0000        .47576E-03
   6  Prefactor     .10004E-03    11.290         .0000    ** at limit **
   7  Prefactor     .10008E-03    19.914         .0000    ** at limit **
   8  norm          2.6555        2.0135         .0000        .53941E-03
   9  Prefactor     2.2610        2.1288         .0000        .44630E-03
  10  Prefactor     3.5671        6.4042         .0000        .40600E-03
  11  norm          1.1898        32.232         .0000        .75769E-02
  12  norm          .10000E-03    3.8284         .0000    ** at limit **
  13  Prefactor     .10002E-03    7.1175         .0000    ** at limit **
  14  Prefactor     .10005E-03    9.1692         .0000    ** at limit **
  15  Prefactor     34.812        54.566         .0000        .14684E-02
  16  Prefactor     .10001E-03    5.6528         .0000    ** at limit **
  17  Prefactor     .10000E-03    33.267         .0000    ** at limit **
  18  Prefactor     .10000E-03    4.7216         .0000    ** at limit **
  19  Prefactor     2.4681        1.4227         .0000       -.75293E-03
  20  norm          .51109        1.0477         .0000        .86464E-03
  21  Prefactor     .10001E-03    18.732         .0000    ** at limit **
  22  Prefactor     .10000E-03    3.6679         .0000    ** at limit **
  23  Prefactor     .10000E-03    .91640         .0000    ** at limit **
  24  Normalizat    .95709        .17540         .0000        .47100E-03
  25  Prefactor     1.2635        .18011         .0000        .38475E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.642139
  Prefactor  = 0.000100005
  Prefactor  = 6.4641
  Prefactor  = 1.96267
  Prefactor  = 0.000100036
  Prefactor  = 0.000100078
  norm       = 2.6555
  Prefactor  = 2.26103
  Prefactor  = 3.56709
  norm       = 1.1898
  norm       = 0.000100002
  Prefactor  = 0.000100023
  Prefactor  = 0.000100052
  Prefactor  = 34.812
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 2.46813
  norm       = 0.511094
  Prefactor  = 0.000100006
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 0.957091
  Prefactor  = 1.26354
 **********
 **   18 **HESSE 
 **********

 FCN=   6896.733     FROM HESSE     STATUS=OK           421 CALLS     3309 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2275        .16532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .64214        1.1217        .13736E-02   -1.5548    
   3  Prefactor     .10000E-03    8.0630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4641        7.8414        .15784E-03   -1.5199    
   5  Prefactor     1.9627        7.6626        .29609E-03   -1.5428    
   6  Prefactor     .10004E-03    11.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10008E-03    20.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.6555        1.9983        .96895E-04   -1.5382    
   9  Prefactor     2.2610        2.1210        .11216E-03   -1.5407    
  10  Prefactor     3.5671        6.3866        .21401E-03   -1.5330    
  11  norm          1.1898        32.174        .20686E-02   -1.5490    
  12  norm          .10000E-03    3.8409        .15866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    7.1450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10005E-03    9.2546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     34.812        54.143        .67919E-04   -1.4527    
  16  Prefactor     .10001E-03    5.6815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.7353        .17621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4681        1.4219        .72287E-04   -1.5394    
  20  norm          .51109        .85672        .11629E-02   -1.5565    
  21  Prefactor     .10001E-03    18.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.8272        .31023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .92414        .77622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95709        .20219        .26701E-03   -.94482    
  25  Prefactor     1.2635        .21061        .25312E-03   -.84398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06765e-08
Minuit parameter uncertainties:
  1  4.37017e-05
  2  1.12174
  3  0.0003848
  4  7.84262
  5  7.66645
  6  0.00128431
  7  0.00251701
  8  1.99838
  9  2.12105
  10  6.38782
  11  12.3812
  12  0.000165724
  13  0.000807306
  14  0.00138344
  15  54.2197
  16  0.000432018
  17  0.000416237
  18  0.000145756
  19  1.42193
  20  0.85674
  21  0.000685206
  22  0.000199372
  23  1.46854e-06
  24  0.20235
  25  0.210752
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  8.073e-04  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:  1.264e+00  2.108e-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.571e-01  2.023e-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: 6.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/784905/likelihoodResults_591321601_591580801_4FGL_J1125.9+2005_daily_bin1358.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) = 6896.73370564
delta logL = -0.000666999557325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6896.73303868
delta logL = -4.05671016779e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2478       1.0000          .0000       10.000    
     3 'Normalizat'    .95708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2636       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=   6896.733     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    64.739        .18142E-02** at limit **
   2  Index         2.2654        6.6956        .50000       -.62407E-05
   3  Normalizat    .95709        .13047E-01    .26701E-03    .20608E-04
   4  Prefactor     1.2635        .14041E-01    .25312E-03    .19403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100128
  Index      = 2.26545
  Normalizat = 0.95709
  Prefactor  = 1.26354
 **********
 **   18 **HESSE 
 **********

 FCN=   6896.733     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10013E-03    317.85        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2654        5.0125        .50000       -.57867    
   3  Normalizat    .95709        .30254E-01    .10680E-04   -.94482    
   4  Prefactor     1.2635        .32556E-01    .10125E-04   -.84398    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.60172e-09
Minuit parameter uncertainties:
  1  0.0128335
  2  578.6
  3  0.0302545
  4  0.0325567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784905': 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) = 6896.73303861
delta logL = 3.09219103656e-08

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.001e-04  1.283e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.265e+00  5.786e+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:  1.264e+00  3.256e-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.571e-01  3.025e-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/784905/cmap_HighResolution_591321601_591580801_4FGL_J1125.9+2005_daily_bin1358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-03', job_status='DONE', photon_flux_upper_limit='6.76e-08', time_completed='2021-09-03 20:51:47.410115', job_id='784905', GAL2='1.26', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630727507.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='3.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1358' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:51:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 784905: <4FGL_J1125.9+2005_daily_bin1358> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1358> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:36:38 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:40:29 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:40:29 2021
Terminated at Fri Sep  3 20:51:48 2021
Results reported at Fri Sep  3 20:51:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1358 171.491 20.0912 591321601 591580801 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 :                                   651.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            910 sec.

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

