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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin834
RA = 171.491, Dec = 20.0912
tmin = 455500801, tmax = 455760001
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='782991', job_status='RUN', time_executed='2021-09-03 20:31:58.557777', time_epoch_executed='1630726318.56' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='834'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782991

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782991/ft1_4FGL_J1125.9+2005_daily_bin834.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782991/ft2_4FGL_J1125.9+2005_daily_bin834.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782991/ft1_4FGL_J1125.9+2005_daily_bin834.fits outfile=/scratch/kocevski/782991/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin834.fits ra=171.491 dec=20.0912 rad=12.0 tmin=455500801.0 tmax=455760001.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.58
user 3.18
sys 0.23

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782991/ft1_filtered_4FGL_J1125.9+2005_daily_bin834.fits evtable="EVENTS" scfile=/scratch/kocevski/782991/ft2_4FGL_J1125.9+2005_daily_bin834.fits sctable="SC_DATA" expcube=/scratch/kocevski/782991/ltcube_455500801_455760001_4FGL_J1125.9+2005_daily_bin834.fits outfile=/scratch/kocevski/782991/expmap_455500801_455760001_4FGL_J1125.9+2005_daily_bin834.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/782991/ltcube_455500801_455760001_4FGL_J1125.9+2005_daily_bin834.fits
.....................!
real 193.62
user 187.54
sys 5.57

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/782991/ft1_filtered_4FGL_J1125.9+2005_daily_bin834.fits scfile=/scratch/kocevski/782991/ft2_4FGL_J1125.9+2005_daily_bin834.fits outfile=/scratch/kocevski/782991/cmap_455500801_455760001_4FGL_J1125.9+2005_daily_bin834.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782991/ft1_filtered_4FGL_J1125.9+2005_daily_bin834.fits scfile=/scratch/kocevski/782991/ft2_4FGL_J1125.9+2005_daily_bin834.fits outfile=/scratch/kocevski/782991/cmap_HighResolution_455500801_455760001_4FGL_J1125.9+2005_daily_bin834.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1513       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5045       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .78401       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.804       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.481       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1215       1.0000         .10000E-03   10000.    
     8 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1140       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2217       1.0000         .10000E-03   10000.    
    11 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.497       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    68.307       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1572       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2343       1.0000         .10000E-03   10000.    
    20 'norm      '    13.151       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1880       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .59094       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3320       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=   5509.632     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2900 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1519        5.8429       -.55383E-06   -.52121E-03
   2  Prefactor     1.5049        2.5322       -.29479E-06   -.86200E-03
   3  Prefactor     .80256        5.7273       -.41786E-06   -.40696E-03
   4  Prefactor     11.803        9.8374       -.28601E-05   -.46683E-03
   5  Prefactor     .10000E-03    4.9430        .44655E-05** at limit **
   6  Prefactor     13.482        11.557        .10937E-05   -.43314E-04
   7  Prefactor     4.1336        22.391        .25728E-04   -.77462E-04
   8  norm          .10000E-03    .64686        .94118E-07** at limit **
   9  Prefactor     4.1147        3.5839        .26210E-06   -.43466E-03
  10  Prefactor     5.2220        11.163        .11442E-05   -.25267E-03
  11  norm          .10000E-03    5.2807       -.53146E-05** at limit **
  12  norm          .10000E-03    6.4295        .18027E-05** at limit **
  13  Prefactor     17.500        12.644        .94953E-06   -.74786E-04
  14  Prefactor     .10000E-03    5.1131       -.10338E-05** at limit **
  15  Prefactor     68.317        43.090        .11888E-04    .18243E-04
  16  Prefactor     .10000E-03    3.1392       -.29389E-06** at limit **
  17  Prefactor     1.2578        55.731       -.51426E-05   -.19098E-03
  18  Prefactor     .10000E-03    2.8297        .26027E-06** at limit **
  19  Prefactor     2.2334        1.6676        .25242E-06   -.42908E-04
  20  norm          13.150        2.9193        .66033E-06    .17303E-03
  21  Prefactor     4.1884        11.466        .31614E-05   -.81913E-04
  22  Prefactor     .10000E-03    1.6885        .14400E-06** at limit **
  23  Prefactor     .10000E-03    1.1376       -.89320E-07** at limit **
  24  Normalizat    .59067        .20317       -.71364E-05   -.21860E-04
  25  Prefactor     1.3322        .19993        .66865E-06   -.20609E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.15187
  Prefactor  = 1.50487
  Prefactor  = 0.802564
  Prefactor  = 11.803
  Prefactor  = 0.0001
  Prefactor  = 13.4824
  Prefactor  = 4.13363
  norm       = 0.0001
  Prefactor  = 4.11473
  Prefactor  = 5.22196
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.5003
  Prefactor  = 0.0001
  Prefactor  = 68.3166
  Prefactor  = 0.0001
  Prefactor  = 1.25778
  Prefactor  = 0.0001
  Prefactor  = 2.23342
  norm       = 13.1503
  Prefactor  = 4.18841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.59067
  Prefactor  = 1.33223
 **********
 **   18 **HESSE 
 **********

 FCN=   5509.632     FROM HESSE     STATUS=OK           431 CALLS     3331 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1519        5.8193        .28092E-03   -1.5415    
   2  Prefactor     1.5049        2.5090        .14533E-03   -1.5463    
   3  Prefactor     .80256        11.865        .33484E-02   -1.5529    
   4  Prefactor     11.803        9.7648        .11660E-03   -1.5021    
   5  Prefactor     .10000E-03    4.9079        .16039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.482        11.546        .10909E-03   -1.4973    
   7  Prefactor     4.1336        21.464        .19856E-03   -1.5301    
   8  norm          .10000E-03    1.1024        .11464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1147        3.5741        .11661E-03   -1.5302    
  10  Prefactor     5.2220        11.071        .17591E-03   -1.5251    
  11  norm          .10000E-03    5.3031        .16668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.4792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.500        12.612        .95749E-04   -1.4871    
  14  Prefactor     .10000E-03    5.1197        .16389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     68.317        42.782        .48566E-04   -1.4053    
  16  Prefactor     .10000E-03    3.1426        .12843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.2578        55.575        .42898E-03   -1.5484    
  18  Prefactor     .10000E-03    2.8323        .12194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2334        1.6422        .76409E-04   -1.5409    
  20  norm          13.150        2.9078        .56307E-04   -1.4983    
  21  Prefactor     4.1884        11.419        .19693E-03   -1.5299    
  22  Prefactor     .10000E-03    1.7347        .18829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.1610        .77271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .59067        .23330        .30858E-03   -1.0838    
  25  Prefactor     1.3322        .23662        .23255E-03   -.82354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86288e-09
Minuit parameter uncertainties:
  1  5.82079
  2  2.50917
  3  6.17289
  4  9.76611
  5  6.27888e-05
  6  11.5475
  7  18.8491
  8  2.82403e-05
  9  3.57431
  10  11.0754
  11  1.93238e-05
  12  2.20225e-05
  13  12.6138
  14  1.27248e-05
  15  42.801
  16  6.2471e-06
  17  16.7373
  18  2.46486e-06
  19  1.6422
  20  2.90785
  21  11.4254
  22  1.06424e-05
  23  7.64857e-06
  24  0.233689
  25  0.236815
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.750e+01  1.261e+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.332e+00  2.368e-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.907e-01  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.95
Ra Dec: 171.491 20.091
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 4.86e-08 +/- 3.50e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.46e-05

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) = 5509.55329786
delta logL = 0.0786871760247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5509.55114049
delta logL = 0.0808445464809

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.126       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0178       1.0000          .0000       10.000    
     3 'Normalizat'    .60456       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3236       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=   5509.551     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      297 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.121        15.288        .44639E-03    .18490E-04
   2  Index         2.0175        .55801        .78093E-02    .20179E-03
   3  Normalizat    .60460        .21489        .30518E-03   -.47496E-04
   4  Prefactor     1.3235        .23312        .23320E-03    .52348E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.121
  Index      = 2.01749
  Normalizat = 0.6046
  Prefactor  = 1.32352
 **********
 **   18 **HESSE 
 **********

 FCN=   5509.551     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.121        15.124        .17856E-04   -1.4811    
   2  Index         2.0175        .55164        .15619E-02   -.63913    
   3  Normalizat    .60460        .21492        .12207E-04   -1.0779    
   4  Prefactor     1.3235        .23324        .46640E-04   -.82610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90536e-11
Minuit parameter uncertainties:
  1  15.1271
  2  0.553389
  3  0.21522
  4  0.233422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782991': 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) = 5509.55114015
delta logL = 0.0808448822536

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  2.012e+01  1.513e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.017e+00  5.534e-01  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.324e+00  2.334e-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:  6.046e-01  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.10
Ra Dec: 171.491 20.091
Photon Index (Free Index): 2.02 +/- 0.55
Photon Flux (Free Index): 3.80e-08 +/- 3.78e-08
Energy Flux (Free Index): 2.51e-05 +/- 2.43e-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/782991/cmap_HighResolution_455500801_455760001_4FGL_J1125.9+2005_daily_bin834.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.86e-08', energy_flux2='2.51e-05', photon_flux_error='3.50e-08', dlogl='8.08e-02', energy_flux='2.02e-05', photon_flux2='3.80e-08', job_status='DONE', time_completed='2021-09-03 20:42:41.472455', photon_index_error2='0.55', photon_index2='2.02', ts='5.95', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', energy_flux_error2='2.43e-05', EG='0.59', time_epoch_completed='1630726961.47', return_code='0', job_id='782991', GAL2='1.32', EG2='0.60', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='3.78e-08', ts2='6.10', photon_index='2.24' WHERE bin_id='834' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:42:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 782991: <4FGL_J1125.9+2005_daily_bin834> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin834 171.491 20.0912 455500801 455760001 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 :                                   640.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            671 sec.

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

