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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin819
RA = 171.491, Dec = 20.0912
tmin = 451612801, tmax = 451872001
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='782968', job_status='RUN', time_executed='2021-09-03 20:34:22.365906', time_epoch_executed='1630726462.37' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='819'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782968

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782968/ft1_4FGL_J1125.9+2005_daily_bin819.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782968/ft2_4FGL_J1125.9+2005_daily_bin819.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782968/ft1_4FGL_J1125.9+2005_daily_bin819.fits outfile=/scratch/kocevski/782968/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin819.fits ra=171.491 dec=20.0912 rad=12.0 tmin=451612801.0 tmax=451872001.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.50
user 3.20
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782968/ft1_filtered_4FGL_J1125.9+2005_daily_bin819.fits evtable="EVENTS" scfile=/scratch/kocevski/782968/ft2_4FGL_J1125.9+2005_daily_bin819.fits sctable="SC_DATA" expcube=/scratch/kocevski/782968/ltcube_451612801_451872001_4FGL_J1125.9+2005_daily_bin819.fits outfile=/scratch/kocevski/782968/expmap_451612801_451872001_4FGL_J1125.9+2005_daily_bin819.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/782968/ltcube_451612801_451872001_4FGL_J1125.9+2005_daily_bin819.fits
.....................!
real 196.84
user 189.67
sys 4.43

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/782968/ft1_filtered_4FGL_J1125.9+2005_daily_bin819.fits scfile=/scratch/kocevski/782968/ft2_4FGL_J1125.9+2005_daily_bin819.fits outfile=/scratch/kocevski/782968/cmap_451612801_451872001_4FGL_J1125.9+2005_daily_bin819.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.57
user 0.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782968/ft1_filtered_4FGL_J1125.9+2005_daily_bin819.fits scfile=/scratch/kocevski/782968/ft2_4FGL_J1125.9+2005_daily_bin819.fits outfile=/scratch/kocevski/782968/cmap_HighResolution_451612801_451872001_4FGL_J1125.9+2005_daily_bin819.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.57
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.109       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7868       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41931       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.267       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.3440       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4841       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .19338E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.670       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5661       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4599       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.625       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .67056       1.0000         .10000E-03   10000.    
    20 'norm      '    9.6849       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9507       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4839       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81392       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94604       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=   5465.784     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2505 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.109        8.8132       -.23353E-07    .24386E-03
   2  Prefactor     2.7869        1.9194        .24867E-08   -.44551E-03
   3  Prefactor     .41905        3.1820       -.61759E-07   -.75546E-04
   4  Prefactor     24.264        10.037       -.53264E-07    .10317E-02
   5  Prefactor     .10000E-03    4.4726        .38322E-07** at limit **
   6  Prefactor     .10000E-03    5.7589       -.10229E-06** at limit **
   7  Prefactor     .10000E-03    4.5228       -.22302E-07** at limit **
   8  norm          4.3438        1.7802       -.13353E-07    .82858E-03
   9  Prefactor     2.4839        2.8523       -.23876E-07   -.33130E-03
  10  Prefactor     .10000E-03    2.7410       -.19617E-07** at limit **
  11  norm          .10000E-03    2.9850       -.24324E-07** at limit **
  12  norm          .10002E-03    5.1500        .28939E-07** at limit **
  13  Prefactor     23.668        13.094       -.34959E-07   -.43794E-04
  14  Prefactor     1.5665        10.225       -.19166E-06    .86612E-04
  15  Prefactor     .10001E-03    50.204        .15495E-06** at limit **
  16  Prefactor     .10000E-03    4.4903        .12565E-07** at limit **
  17  Prefactor     3.4614        7.7652       -.14291E-05   -.17347E-03
  18  Prefactor     12.624        12.351       -.13949E-06   -.95060E-04
  19  Prefactor     .66960        1.4487        .75052E-07   -.77159E-03
  20  norm          9.6846        2.5650        .20848E-07    .34652E-03
  21  Prefactor     .10001E-03    12.940        .13738E-06** at limit **
  22  Prefactor     4.9500        4.1344       -.11778E-07    .48567E-03
  23  Prefactor     1.4842        2.8285       -.39479E-07   -.13844E-03
  24  Normalizat    .81408        .18712        .26536E-06    .68666E-04
  25  Prefactor     .94587        .18773       -.44440E-07   -.91556E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1091
  Prefactor  = 2.78686
  Prefactor  = 0.419051
  Prefactor  = 24.2639
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 4.3438
  Prefactor  = 2.48388
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100017
  Prefactor  = 23.6679
  Prefactor  = 1.56651
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 3.46142
  Prefactor  = 12.6235
  Prefactor  = 0.669601
  norm       = 9.68464
  Prefactor  = 0.000100007
  Prefactor  = 4.95004
  Prefactor  = 1.48421
  Normalizat = 0.814075
  Prefactor  = 0.945869
 **********
 **   18 **HESSE 
 **********

 FCN=   5465.784     FROM HESSE     STATUS=OK           435 CALLS     2940 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.109        8.8113        .12602E-03   -1.5072    
   2  Prefactor     2.7869        1.9185        .81802E-04   -1.5374    
   3  Prefactor     .41905        11.958        .25407E-02   -1.5579    
   4  Prefactor     24.264        10.057        .81315E-04   -1.4722    
   5  Prefactor     .10000E-03    4.4799        .15257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.7776        .17304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5278        .15351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.3438        1.7818        .59861E-04   -1.5291    
   9  Prefactor     2.4839        2.8665        .12601E-03   -1.5393    
  10  Prefactor     .10000E-03    2.7554        .11951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.9873        .12473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10002E-03    37.996        .32027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.668        13.177        .41166E-03   -1.4735    
  14  Prefactor     1.5665        10.373        .33984E-03   -1.5458    
  15  Prefactor     .10001E-03    50.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5061        .15291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4614        24.324        .10871E-02   -1.5336    
  18  Prefactor     12.624        12.792        .56367E-03   -1.4997    
  19  Prefactor     .66960        1.2548        .12058E-02   -1.5544    
  20  norm          9.6846        2.6028        .58196E-04   -1.5085    
  21  Prefactor     .10001E-03    13.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.9500        4.1061        .12636E-03   -1.5263    
  23  Prefactor     1.4842        2.8195        .16165E-03   -1.5464    
  24  Normalizat    .81408        .22138        .25437E-03   -.99549    
  25  Prefactor     .94587        .21814        .25579E-03   -.94556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00854e-08
Minuit parameter uncertainties:
  1  8.81247
  2  1.91858
  3  4.47757
  4  10.058
  5  9.16542e-05
  6  0.000289884
  7  5.76119e-05
  8  1.78178
  9  2.86665
  10  3.64798e-05
  11  4.71076e-05
  12  0.0015924
  13  13.1783
  14  8.06371
  15  0.0014709
  16  1.47191e-05
  17  18.3622
  18  12.7953
  19  1.25486
  20  2.60283
  21  0.000616559
  22  4.1063
  23  2.81973
  24  0.221621
  25  0.218338
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  2.367e+01  1.318e+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:  9.459e-01  2.183e-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:  8.141e-01  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.06
Ra Dec: 171.491 20.091
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 6.57e-08 +/- 3.66e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.52e-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) = 5465.64516382
delta logL = 0.138906746496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5465.63559477
delta logL = 0.148475800339

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.691       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9308       1.0000          .0000       10.000    
     3 'Normalizat'    .82960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93595       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=   5465.636     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      307 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.696        20.102        .71177E-04    .19966E-04
   2  Index         1.9307        .51019        .66384E-02    .22626E-03
   3  Normalizat    .82952        .20007        .25209E-03    .10869E-04
   4  Prefactor     .93612        .21408        .25693E-03   -.15885E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.6959
  Index      = 1.93074
  Normalizat = 0.829522
  Prefactor  = 0.936116
 **********
 **   18 **HESSE 
 **********

 FCN=   5465.636     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.696        19.690        .28471E-05   -1.4581    
   2  Index         1.9307        .49939        .13277E-02   -.66093    
   3  Normalizat    .82952        .20015        .10083E-04   -.98983    
   4  Prefactor     .93612        .21423        .10277E-04   -.94890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73784e-12
Minuit parameter uncertainties:
  1  19.6936
  2  0.500731
  3  0.200331
  4  0.214428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782968': 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) = 5465.6355943
delta logL = 0.148476270678

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  3.170e+01  1.969e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.931e+00  5.007e-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:  9.361e-01  2.144e-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:  8.295e-01  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.27
Ra Dec: 171.491 20.091
Photon Index (Free Index): 1.93 +/- 0.50
Photon Flux (Free Index): 5.21e-08 +/- 3.84e-08
Energy Flux (Free Index): 4.30e-05 +/- 4.35e-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/782968/cmap_HighResolution_451612801_451872001_4FGL_J1125.9+2005_daily_bin819.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.57e-08', energy_flux2='4.30e-05', photon_flux_error='3.66e-08', dlogl='1.48e-01', energy_flux='2.74e-05', photon_flux2='5.21e-08', job_status='DONE', time_completed='2021-09-03 20:44:54.187072', photon_index_error2='0.50', photon_index2='1.93', ts='6.06', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='4.35e-05', EG='0.81', time_epoch_completed='1630727094.19', return_code='0', job_id='782968', GAL2='0.94', EG2='0.83', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='3.84e-08', ts2='6.27', photon_index='2.24' WHERE bin_id='819' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:44:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 782968: <4FGL_J1125.9+2005_daily_bin819> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin819 171.491 20.0912 451612801 451872001 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 :                                   626.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            804 sec.

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

