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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin839
RA = 171.491, Dec = 20.0912
tmin = 456796801, tmax = 457056001
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='782998', job_status='RUN', time_executed='2021-09-03 20:32:03.058033', time_epoch_executed='1630726323.06' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='839'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782998

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782998/ft1_4FGL_J1125.9+2005_daily_bin839.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782998/ft2_4FGL_J1125.9+2005_daily_bin839.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782998/ft1_4FGL_J1125.9+2005_daily_bin839.fits outfile=/scratch/kocevski/782998/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin839.fits ra=171.491 dec=20.0912 rad=12.0 tmin=456796801.0 tmax=457056001.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.42
user 3.18
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/782998/ft2_4FGL_J1125.9+2005_daily_bin839.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/782998/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin839.fits evtable="EVENTS" outfile="/scratch/kocevski/782998/ft1_filtered_4FGL_J1125.9+2005_daily_bin839.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.55
user 0.38
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782998/ft1_filtered_4FGL_J1125.9+2005_daily_bin839.fits evtable="EVENTS" scfile=/scratch/kocevski/782998/ft2_4FGL_J1125.9+2005_daily_bin839.fits sctable="SC_DATA" expcube=/scratch/kocevski/782998/ltcube_456796801_457056001_4FGL_J1125.9+2005_daily_bin839.fits outfile=/scratch/kocevski/782998/expmap_456796801_457056001_4FGL_J1125.9+2005_daily_bin839.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/782998/ltcube_456796801_457056001_4FGL_J1125.9+2005_daily_bin839.fits
.....................!
real 192.57
user 187.24
sys 4.74

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/782998/ft1_filtered_4FGL_J1125.9+2005_daily_bin839.fits scfile=/scratch/kocevski/782998/ft2_4FGL_J1125.9+2005_daily_bin839.fits outfile=/scratch/kocevski/782998/cmap_456796801_457056001_4FGL_J1125.9+2005_daily_bin839.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.67
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782998/ft1_filtered_4FGL_J1125.9+2005_daily_bin839.fits scfile=/scratch/kocevski/782998/ft2_4FGL_J1125.9+2005_daily_bin839.fits outfile=/scratch/kocevski/782998/cmap_HighResolution_456796801_457056001_4FGL_J1125.9+2005_daily_bin839.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.58
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.726       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.211       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20366       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .85431       1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.967       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9876       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7701       1.0000         .10000E-03   10000.    
    11 'norm      '    19.588       1.0000         .10000E-03   10000.    
    12 'norm      '    .19906E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.5960       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4876       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.948       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.747       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.9094       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .78124E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .56067       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2801       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=   5171.232     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3038 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.724        10.961        .65589E-05    .45933E-03
   2  Prefactor     .10000E-03    1.6237       -.39158E-06** at limit **
   3  Prefactor     14.210        10.113        .45127E-05    .11537E-03
   4  Prefactor     .20142        6.7129       -.29313E-05    .35105E-03
   5  Prefactor     .85365        .46191        .49904E-07   -.44061E-03
   6  Prefactor     27.966        13.805        .12092E-05    .42580E-04
   7  Prefactor     .10000E-03    3.4761        .57165E-08** at limit **
   8  norm          2.9874        1.7459       -.37390E-06   -.14522E-03
   9  Prefactor     .10000E-03    1.4069        .17859E-07** at limit **
  10  Prefactor     3.7701        3.9129        .19738E-06    .38832E-04
  11  norm          19.583        16.978        .48671E-05    .50680E-06
  12  norm          .10106E-03    6.7145        .64058E-06** at limit **
  13  Prefactor     7.5944        11.261       -.10841E-05   -.14852E-04
  14  Prefactor     8.4856        14.247       -.14271E-05   -.20650E-04
  15  Prefactor     16.968        44.048        .66272E-05   -.97906E-05
  16  Prefactor     .10000E-03    5.6174        .12435E-06** at limit **
  17  Prefactor     28.746        18.313        .15220E-05   -.39991E-04
  18  Prefactor     .10000E-03    8.5237        .36130E-06** at limit **
  19  Prefactor     .10000E-03    .70516        .37404E-07** at limit **
  20  norm          6.9092        2.2358        .11430E-06   -.48468E-04
  21  Prefactor     .10000E-03    9.6231        .28696E-07** at limit **
  22  Prefactor     .10000E-03    1.8355        .67858E-07** at limit **
  23  Prefactor     .10058E-03    1.1913        .49215E-06** at limit **
  24  Normalizat    .56063        .20112       -.75184E-05    .15532E-03
  25  Prefactor     1.2802        .19484        .10901E-05   -.10249E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7242
  Prefactor  = 0.0001
  Prefactor  = 14.2098
  Prefactor  = 0.201422
  Prefactor  = 0.853646
  Prefactor  = 27.9656
  Prefactor  = 0.0001
  norm       = 2.98739
  Prefactor  = 0.0001
  Prefactor  = 3.77006
  norm       = 19.5828
  norm       = 0.00010106
  Prefactor  = 7.59439
  Prefactor  = 8.48562
  Prefactor  = 16.9678
  Prefactor  = 0.0001
  Prefactor  = 28.7458
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.90924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100577
  Normalizat = 0.560633
  Prefactor  = 1.28023
 **********
 **   18 **HESSE 
 **********

 FCN=   5171.232     FROM HESSE     STATUS=OK           449 CALLS     3487 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.724        11.002        .95129E-04   -1.4866    
   2  Prefactor     .10000E-03    1.6728        .17872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.210        10.119        .10625E-03   -1.4954    
   4  Prefactor     .20142        46.283        .34023E-02   -1.5618    
   5  Prefactor     .85365        15.701        .25138E-02   -1.5523    
   6  Prefactor     27.966        13.773        .75755E-04   -1.4650    
   7  Prefactor     .10000E-03    3.4778        .13093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9874        1.7398        .67746E-04   -1.5362    
   9  Prefactor     .10000E-03    1.4534        .16598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.7701        3.9148        .14008E-03   -1.5320    
  11  norm          19.583        16.921        .90496E-04   -1.4823    
  12  norm          .10106E-03    8.6476        .55714E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.5944        11.304        .14551E-03   -1.5157    
  14  Prefactor     8.4856        14.263        .13760E-03   -1.5125    
  15  Prefactor     16.968        44.033        .97289E-04   -1.4884    
  16  Prefactor     .10000E-03    5.6296        .16636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.746        18.340        .74723E-04   -1.4635    
  18  Prefactor     .10000E-03    8.7794        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .72023        .58865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.9092        2.2363        .58310E-04   -1.5182    
  21  Prefactor     .10000E-03    9.6574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.9042        .19015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10058E-03    3.4755        .26783E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .56063        .23018        .29739E-03   -1.0968    
  25  Prefactor     1.2802        .22713        .22632E-03   -.83897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06593e-09
Minuit parameter uncertainties:
  1  11.0036
  2  4.69026e-05
  3  10.1201
  4  6.10979
  5  7.32374
  6  13.7751
  7  2.54902e-06
  8  1.73987
  9  1.20988e-06
  10  3.91503
  11  16.9253
  12  0.00605472
  13  11.3076
  14  14.2682
  15  44.1169
  16  2.92725e-05
  17  18.3431
  18  5.20948e-05
  19  4.5353e-06
  20  2.23634
  21  2.60827e-05
  22  1.2659e-05
  23  0.00283207
  24  0.230573
  25  0.227306
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  7.594e+00  1.131e+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:  1.280e+00  2.273e-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:  5.606e-01  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/782998/likelihoodResults_456796801_457056001_4FGL_J1125.9+2005_daily_bin839.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) = 5169.0953564
delta logL = 2.1361586344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5169.06600569
delta logL = 2.16550933816

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76280E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.0118       1.0000          .0000       10.000    
     3 'Normalizat'    .44159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3713       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=   5169.066     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      285 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76197E-01    .69640        .23995E-02    .12468E-02
   2  Index         5.0123        2.2511        .73263E-01    .15860E-03
   3  Normalizat    .44176        .57518E-01    .75249E-01    .35868E-04
   4  Prefactor     1.3710        .63223E-01    .49729E-01   -.30740E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0761968
  Index      = 5.01226
  Normalizat = 0.44176
  Prefactor  = 1.37105
 **********
 **   18 **HESSE 
 **********

 FCN=   5169.066     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      318 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76197E-01    1.1930        .10762E-04   -1.5653    
   2  Index         5.0123        3.1174        .30087E-02    .24520E-02
   3  Normalizat    .44176        .18864        .33318E-03   -1.1520    
   4  Prefactor     1.3710        .20662        .21983E-03   -.81218    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.95567e-07
Minuit parameter uncertainties:
  1  0.602628
  2  3.36588
  3  0.188915
  4  0.206743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782998': 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) = 5169.06600525
delta logL = 2.16550978338

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  7.620e-02  6.026e-01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  5.012e+00  3.366e+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:  1.371e+00  2.067e-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:  4.418e-01  1.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.40
Ra Dec: 171.491 20.091
Photon Index (Free Index): 5.01 +/- 3.37
Photon Flux (Free Index): 9.00e-08 +/- 5.05e-08
Energy Flux (Free Index): 1.20e-05 +/- 7.26e-06

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/782998/cmap_HighResolution_456796801_457056001_4FGL_J1125.9+2005_daily_bin839.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-03', comment='SUCCESS', energy_flux2='1.20e-05', dlogl='2.17e+00', photon_flux2='9.00e-08', job_status='DONE', time_completed='2021-09-03 20:44:08.387042', photon_index_error2='3.37', photon_index2='5.01', ts='0.61', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='9.13e-08', energy_flux_error2='7.26e-06', EG='0.56', time_epoch_completed='1630727048.39', return_code='0', job_id='782998', GAL2='1.37', EG2='0.44', return_code2='102', photon_flux_error2='5.05e-08', ts2='5.40', photon_index='2.24' WHERE bin_id='839' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:44:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 782998: <4FGL_J1125.9+2005_daily_bin839> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin839> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 20:31:32 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:31:49 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:31:49 2021
Terminated at Fri Sep  3 20:44:09 2021
Results reported at Fri Sep  3 20:44:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin839 171.491 20.0912 456796801 457056001 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 :                                   720.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            757 sec.

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

