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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1280
RA = 171.491, Dec = 20.0912
tmin = 571104001, tmax = 571363201
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='784792', job_status='RUN', time_executed='2021-09-03 20:43:19.093825', time_epoch_executed='1630726999.09' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784792

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784792/ft1_4FGL_J1125.9+2005_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784792/ft2_4FGL_J1125.9+2005_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784792/ft1_4FGL_J1125.9+2005_daily_bin1280.fits outfile=/scratch/kocevski/784792/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1280.fits ra=171.491 dec=20.0912 rad=12.0 tmin=571104001.0 tmax=571363201.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.09
user 2.84
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784792/ft1_filtered_4FGL_J1125.9+2005_daily_bin1280.fits" evtable="EVENTS" scfile=/scratch/kocevski/784792/ft2_4FGL_J1125.9+2005_daily_bin1280.fits sctable="SC_DATA" outfile=/scratch/kocevski/784792/ltcube_571104001_571363201_4FGL_J1125.9+2005_daily_bin1280.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/784792/ft2_4FGL_J1125.9+2005_daily_bin1280.fits
.....................!
real 19.35
user 18.90
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784792/ft1_filtered_4FGL_J1125.9+2005_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/784792/ft2_4FGL_J1125.9+2005_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/784792/ltcube_571104001_571363201_4FGL_J1125.9+2005_daily_bin1280.fits outfile=/scratch/kocevski/784792/expmap_571104001_571363201_4FGL_J1125.9+2005_daily_bin1280.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/784792/ltcube_571104001_571363201_4FGL_J1125.9+2005_daily_bin1280.fits
.....................!
real 195.81
user 190.34
sys 4.71

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/784792/ft1_filtered_4FGL_J1125.9+2005_daily_bin1280.fits scfile=/scratch/kocevski/784792/ft2_4FGL_J1125.9+2005_daily_bin1280.fits outfile=/scratch/kocevski/784792/cmap_571104001_571363201_4FGL_J1125.9+2005_daily_bin1280.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784792/ft1_filtered_4FGL_J1125.9+2005_daily_bin1280.fits scfile=/scratch/kocevski/784792/ft2_4FGL_J1125.9+2005_daily_bin1280.fits outfile=/scratch/kocevski/784792/cmap_HighResolution_571104001_571363201_4FGL_J1125.9+2005_daily_bin1280.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.300       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.951       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10724E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    75.499       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1607       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    34.218       1.0000         .10000E-03   10000.    
    13 'Prefactor '    94.338       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13926E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    144.94       1.0000         .10000E-03   10000.    
    16 'Prefactor '    74.136       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10639E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3467       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.734       1.0000         .10000E-03   10000.    
    20 'norm      '    1.7937       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.290       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.0273       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .30402       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10116E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4041       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1505.327     FROM MIGRAD    STATUS=CONVERGED     91 CALLS     2760 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.290        1.9685       -.11257E-05    .25741E-02
   2  Prefactor     .10006E-03    13.253        .36562E-04** at limit **
   3  Prefactor     18.936        2.6610       -.30140E-05    .14923E-02
   4  Prefactor     .11005E-03    250.51       -.14591E-03** at limit **
   5  Prefactor     .10076E-03    28.280       -.14403E-04** at limit **
   6  Prefactor     .10000E-03    26.143       -.38203E-04** at limit **
   7  Prefactor     75.450        8.5630       -.54444E-05    .13957E-01
   8  norm          .10000E-03    2.4529        .36228E-05** at limit **
   9  Prefactor     1.1584        1.2372       -.61317E-06    .11807E-03
  10  Prefactor     .10017E-03    12.773       -.43195E-04** at limit **
  11  norm          .10005E-03    16.822        .46882E-04** at limit **
  12  norm          34.217        1.0057        .43331E-07   -.60934E-03
  13  Prefactor     94.341        1.1805        .32482E-06   -.58052E-03
  14  Prefactor     .30234E-03    14.231       -.39562E-04** at limit **
  15  Prefactor     144.94        1.2690       -.38937E-06    .26010E-02
  16  Prefactor     74.111        4.2530       -.24156E-05    .25728E-02
  17  Prefactor     .10079E-03    28.039       -.17970E-04** at limit **
  18  Prefactor     3.3449        1.0548       -.11755E-05   -.11843E-03
  19  Prefactor     11.733        4.7394        .10731E-05    .12779E-02
  20  norm          1.7936        1.8598        .49978E-06    .67194E-04
  21  Prefactor     23.286        1.2141       -.68942E-06    .22557E-03
  22  Prefactor     6.0259        4.3410       -.11214E-04   -.74990E-02
  23  Prefactor     .30419        6.8647        .30412E-04    .20660E-02
  24  Normalizat    .10000E-01    6.7549        .80667E-04** at limit **
  25  Prefactor     1.4039        .22834       -.24492E-04    .15442E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.2899
  Prefactor  = 0.00010006
  Prefactor  = 18.9363
  Prefactor  = 0.000110055
  Prefactor  = 0.000100757
  Prefactor  = 0.000100004
  Prefactor  = 75.4501
  norm       = 0.0001
  Prefactor  = 1.15836
  Prefactor  = 0.00010017
  norm       = 0.000100054
  norm       = 34.2165
  Prefactor  = 94.3415
  Prefactor  = 0.000302341
  Prefactor  = 144.936
  Prefactor  = 74.1108
  Prefactor  = 0.00010079
  Prefactor  = 3.3449
  Prefactor  = 11.7331
  norm       = 1.79358
  Prefactor  = 23.2861
  Prefactor  = 6.02591
  Prefactor  = 0.304194
  Normalizat = 0.01
  Prefactor  = 1.40391
 **********
 **   18 **HESSE 
 **********

 FCN=   1505.327     FROM HESSE     STATUS=OK           491 CALLS     3251 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.290        138.63        .12055E-02   -1.4041    
   2  Prefactor     .10006E-03    13.984        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.936        66.989        .23001E-02   -1.4837    
   4  Prefactor     .11005E-03    264.72        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10076E-03    56.712        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.297        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     75.450        77.229        .11553E-02   -1.3969    
   8  norm          .10000E-03    2.4532        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1584        21.922        .10692E-01   -1.5493    
  10  Prefactor     .10017E-03    14.882        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10005E-03    17.514        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          34.217        39.289        .17126E-02   -1.4537    
  13  Prefactor     94.341        47.672        .10345E-02   -1.3762    
  14  Prefactor     .30234E-03    129.82        .11699       -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     144.94        134.26        .83672E-03   -1.3294    
  16  Prefactor     74.111        55.105        .11658E-02   -1.3984    
  17  Prefactor     .10079E-03    54.538        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3449        26.086        .55308E-02   -1.5342    
  19  Prefactor     11.733        4.8118        .29237E-02   -1.5023    
  20  norm          1.7936        1.8656        .78062E-02   -1.5440    
  21  Prefactor     23.286        32.016        .20750E-02   -1.4742    
  22  Prefactor     6.0259        6.6718        .40887E-02   -1.5217    
  23  Prefactor     .30419        5.4854        .29151E-01   -1.5598    
  24  Normalizat    .10000E-01    .80438        .22118       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.4039        .33062        .52553E-01   -.80268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87266e-06
Minuit parameter uncertainties:
  1  139.285
  2  0.00183218
  3  67.2565
  4  0.103643
  5  0.0131186
  6  0.000669387
  7  77.3319
  8  8.74032e-07
  9  10.0822
  10  0.00317895
  11  0.00195224
  12  39.3192
  13  47.6911
  14  0.324853
  15  134.543
  16  55.143
  17  0.013143
  18  18.6931
  19  4.81199
  20  1.86565
  21  32.0398
  22  6.67265
  23  2.58336
  24  3.64128e-05
  25  0.331122
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  9.434e+01  4.769e+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.404e+00  3.311e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.000e-02  3.641e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.40
Ra Dec: 171.491 20.091
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.62e-07 +/- 1.32e-07
Energy Flux (Fixed Index): 1.09e-04 +/- 5.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) = 1505.20350752
delta logL = 0.123789718699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1505.10178625
delta logL = 0.225510993911

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    121.79       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9712       1.0000          .0000       10.000    
     3 'Normalizat'    .26243E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3961       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=   1505.102     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      289 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     121.72        69.819        .18234E-03    .11971E-04
   2  Index         1.9715        .38959        .30920E-02   -.76745E-05
   3  Normalizat    .25607E-01    6.3754        .12135E-01    .81447E-05
   4  Prefactor     1.3968        .50248        .23305E-03   -.35889E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 121.718
  Index      = 1.97149
  Normalizat = 0.0256069
  Prefactor  = 1.39682
 **********
 **   18 **HESSE 
 **********

 FCN=   1505.102     FROM HESSE     STATUS=OK            27 CALLS      316 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     121.72        69.214        .72937E-05   -1.3497    
   2  Index         1.9715        .38388        .12368E-03   -.65065    
   3  Normalizat    .25607E-01    2.0884        .48540E-03   -1.4917    
   4  Prefactor     1.3968        .40308        .46610E-04   -.80472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20126e-11
Minuit parameter uncertainties:
  1  69.2599
  2  0.384479
  3  0.375356
  4  0.403991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784792': 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) = 1505.10178408
delta logL = 0.225513163308

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.217e+02  6.926e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.971e+00  3.845e-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.397e+00  4.040e-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:  2.561e-02  3.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.60
Ra Dec: 171.491 20.091
Photon Index (Free Index): 1.97 +/- 0.38
Photon Flux (Free Index): 2.13e-07 +/- 1.32e-07
Energy Flux (Free Index): 1.58e-04 +/- 1.28e-04

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/784792/cmap_HighResolution_571104001_571363201_4FGL_J1125.9+2005_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.62e-07', energy_flux2='1.58e-04', photon_flux_error='1.32e-07', dlogl='2.26e-01', energy_flux='1.09e-04', photon_flux2='2.13e-07', job_status='DONE', time_completed='2021-09-03 20:52:24.070523', photon_index_error2='0.38', photon_index2='1.97', ts='13.40', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', energy_flux_error2='1.28e-04', EG='0.01', time_epoch_completed='1630727544.07', return_code='0', job_id='784792', GAL2='1.40', EG2='0.03', return_code2='0', energy_flux_error='5.52e-05', photon_flux_error2='1.32e-07', ts2='13.60', photon_index='2.24' WHERE bin_id='1280' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:52:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 784792: <4FGL_J1125.9+2005_daily_bin1280> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1280> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:36:30 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:39:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 20:39:52 2021
Terminated at Fri Sep  3 20:52:24 2021
Results reported at Fri Sep  3 20:52:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1280 171.491 20.0912 571104001 571363201 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 :                                   418.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             195.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            954 sec.

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

