/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 70 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 = 7431
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1398
RA = 171.491, Dec = 20.0912
tmin = 601689601, tmax = 601948801
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='786071', job_status='RUN', time_executed='2021-09-03 20:43:01.463632', time_epoch_executed='1630726981.46' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/786071

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/786071/ft1_4FGL_J1125.9+2005_daily_bin1398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/786071/ft2_4FGL_J1125.9+2005_daily_bin1398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/786071/ft1_4FGL_J1125.9+2005_daily_bin1398.fits outfile=/scratch/kocevski/786071/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1398.fits ra=171.491 dec=20.0912 rad=12.0 tmin=601689601.0 tmax=601948801.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.53
user 3.33
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/786071/ft1_filtered_4FGL_J1125.9+2005_daily_bin1398.fits" evtable="EVENTS" scfile=/scratch/kocevski/786071/ft2_4FGL_J1125.9+2005_daily_bin1398.fits sctable="SC_DATA" outfile=/scratch/kocevski/786071/ltcube_601689601_601948801_4FGL_J1125.9+2005_daily_bin1398.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/786071/ft2_4FGL_J1125.9+2005_daily_bin1398.fits
.....................!
real 14.41
user 14.04
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/786071/ft1_filtered_4FGL_J1125.9+2005_daily_bin1398.fits evtable="EVENTS" scfile=/scratch/kocevski/786071/ft2_4FGL_J1125.9+2005_daily_bin1398.fits sctable="SC_DATA" expcube=/scratch/kocevski/786071/ltcube_601689601_601948801_4FGL_J1125.9+2005_daily_bin1398.fits outfile=/scratch/kocevski/786071/expmap_601689601_601948801_4FGL_J1125.9+2005_daily_bin1398.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/786071/ltcube_601689601_601948801_4FGL_J1125.9+2005_daily_bin1398.fits
.....................!
real 190.59
user 185.81
sys 4.30

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/786071/ft1_filtered_4FGL_J1125.9+2005_daily_bin1398.fits scfile=/scratch/kocevski/786071/ft2_4FGL_J1125.9+2005_daily_bin1398.fits outfile=/scratch/kocevski/786071/cmap_601689601_601948801_4FGL_J1125.9+2005_daily_bin1398.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=171.491 yref=20.0912 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/786071/ft1_filtered_4FGL_J1125.9+2005_daily_bin1398.fits scfile=/scratch/kocevski/786071/ft2_4FGL_J1125.9+2005_daily_bin1398.fits outfile=/scratch/kocevski/786071/cmap_HighResolution_601689601_601948801_4FGL_J1125.9+2005_daily_bin1398.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.757       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7750       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.532       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7129       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.540       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4169       1.0000         .10000E-03   10000.    
    11 'norm      '    10.993       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.8291       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2767       1.0000         .10000E-03   10000.    
    20 'norm      '    3.5006       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1713       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.8271       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .75686       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88401       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=   4913.401     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2452 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.758        10.214       -.23638E-06    .96719E-06
   2  Prefactor     1.7750        2.1815       -.17598E-06   -.50958E-04
   3  Prefactor     11.531        7.0346       -.16279E-06    .13987E-04
   4  Prefactor     1.7117        1.7668        .36833E-06   -.12362E-02
   5  Prefactor     20.540        11.206       -.30955E-06   -.27823E-04
   6  Prefactor     .10000E-03    6.9170       -.49248E-06** at limit **
   7  Prefactor     .10000E-03    6.2966        .22468E-05** at limit **
   8  norm          .10000E-03    .46614       -.35671E-07** at limit **
   9  Prefactor     .10000E-03    1.8094       -.10990E-06** at limit **
  10  Prefactor     2.4178        4.1403       -.10385E-05   -.78454E-05
  11  norm          10.992        11.044       -.53637E-06    .17616E-04
  12  norm          .10000E-03    4.7338       -.29359E-06** at limit **
  13  Prefactor     8.8252        14.490       -.37937E-05    .15747E-04
  14  Prefactor     .10000E-03    9.9963       -.51131E-06** at limit **
  15  Prefactor     .10000E-03    19.678        .12577E-06** at limit **
  16  Prefactor     .10000E-03    5.3225       -.14903E-06** at limit **
  17  Prefactor     .10000E-03    10.398        .17834E-05** at limit **
  18  Prefactor     .10000E-03    7.2421       -.22178E-05** at limit **
  19  Prefactor     2.2769        1.7234       -.12898E-06   -.72090E-06
  20  norm          3.5008        1.7315       -.96927E-07    .93246E-05
  21  Prefactor     3.1643        25.156       -.15835E-04   -.72763E-05
  22  Prefactor     .10000E-03    1.2293        .54103E-07** at limit **
  23  Prefactor     4.8273        3.6073       -.13958E-05    .44411E-04
  24  Normalizat    .75682        .17247        .19751E-05    .92679E-04
  25  Prefactor     .88409        .17698        .13908E-05    .10584E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7576
  Prefactor  = 1.77497
  Prefactor  = 11.5312
  Prefactor  = 1.71166
  Prefactor  = 20.5396
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.41778
  norm       = 10.9923
  norm       = 0.0001
  Prefactor  = 8.82519
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.27694
  norm       = 3.50083
  Prefactor  = 3.16427
  Prefactor  = 0.0001
  Prefactor  = 4.8273
  Normalizat = 0.756816
  Prefactor  = 0.884091
 **********
 **   18 **HESSE 
 **********

 FCN=   4913.401     FROM HESSE     STATUS=OK           431 CALLS     2883 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.758        10.240        .97841E-04   -1.4889    
   2  Prefactor     1.7750        2.1584        .10855E-03   -1.5442    
   3  Prefactor     11.531        7.0358        .11797E-03   -1.5029    
   4  Prefactor     1.7117        6.0448        .15029E-02   -1.5446    
   5  Prefactor     20.540        11.536        .88377E-04   -1.4801    
   6  Prefactor     .10000E-03    6.9564        .18008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3156        .17162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .48395        .93394E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8968        .18398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4178        4.1147        .18031E-03   -1.5397    
  11  norm          10.992        11.046        .12084E-03   -1.5045    
  12  norm          .10000E-03    4.7698        .14894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.8252        14.497        .13490E-03   -1.5114    
  14  Prefactor     .10000E-03    10.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.3476        .15794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.2864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2769        1.7143        .76710E-04   -1.5406    
  20  norm          3.5008        1.7325        .62596E-04   -1.5334    
  21  Prefactor     3.1643        25.236        .22757E-03   -1.5352    
  22  Prefactor     .10000E-03    1.2356        .75867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.8273        3.6014        .10891E-03   -1.5269    
  24  Normalizat    .75682        .19942        .24103E-03   -1.0169    
  25  Prefactor     .88409        .20448        .23764E-03   -.96699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19826e-09
Minuit parameter uncertainties:
  1  10.2409
  2  2.15854
  3  7.03626
  4  6.04696
  5  11.5376
  6  2.03098e-05
  7  4.80252e-06
  8  2.359e-06
  9  1.32929e-05
  10  4.11518
  11  11.048
  12  1.00105e-05
  13  14.5027
  14  2.74397e-05
  15  7.14555e-06
  16  1.20952e-05
  17  1.6603e-05
  18  3.4187e-06
  19  1.71433
  20  1.73253
  21  17.8823
  22  4.17056e-06
  23  3.60154
  24  0.19961
  25  0.204656
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  8.825e+00  1.450e+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:  8.841e-01  2.047e-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:  7.568e-01  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.44
Ra Dec: 171.491 20.091
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/786071/likelihoodResults_601689601_601948801_4FGL_J1125.9+2005_daily_bin1398.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) = 4913.2550946
delta logL = 0.146186572106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4912.98571232
delta logL = 0.415568846816

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.5095       1.0000          .0000       10.000    
     3 'Normalizat'    .70193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93904       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=   4912.986     FROM MIGRAD    STATUS=CONVERGED    133 CALLS      457 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .35123E-02    .34467E-03** at limit **
   2  Index         7.5154        2.4703        .13848        .14877E-03
   3  Normalizat    .70189        .38191E-01    .42316E-01   -.31309E-03
   4  Prefactor     .93915        .40226E-01    .45501E-01   -.28005E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.5154
  Normalizat = 0.70189
  Prefactor  = 0.939154
 **********
 **   18 **HESSE 
 **********

 FCN=   4912.986     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      494 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .30236E-01    .16100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.5154        7.8868        .49846E-02    .52716    
   3  Normalizat    .70189        .94669E-01    .24950E-03   -1.0382    
   4  Prefactor     .93915        .99377E-01    .23151E-03   -.94786    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.47477e-09
Minuit parameter uncertainties:
  1  1.65291e-07
  2  5.34494
  3  0.0946909
  4  0.0993965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/786071': 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) = 4912.98552058
delta logL = 0.415760583815

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.653e-07  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  7.515e+00  5.345e+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:  9.392e-01  9.940e-02  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  7.019e-01  9.469e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.38
Ra Dec: 171.491 20.091
Photon Index (Free Index): 7.52 +/- 5.34
Photon Flux (Free Index): 5.01e-08 +/- 6.45e-07
Energy Flux (Free Index): 5.89e-06 +/- 7.54e-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/786071/cmap_HighResolution_601689601_601948801_4FGL_J1125.9+2005_daily_bin1398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.28e-03', comment='SUCCESS', energy_flux2='5.89e-06', dlogl='4.16e-01', photon_flux2='5.01e-08', job_status='DONE', time_completed='2021-09-03 20:55:15.019193', photon_index_error2='5.34', photon_index2='7.52', ts='0.44', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='7.54e-05', EG='0.76', time_epoch_completed='1630727715.02', return_code='0', job_id='786071', GAL2='0.94', EG2='0.70', return_code2='102', photon_flux_error2='6.45e-07', ts2='1.38', photon_index='2.24' WHERE bin_id='1398' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:55:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 786071: <4FGL_J1125.9+2005_daily_bin1398> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1398> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 20:41:24 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:41:27 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:41:27 2021
Terminated at Fri Sep  3 20:55:16 2021
Results reported at Fri Sep  3 20:55:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1398 171.491 20.0912 601689601 601948801 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 :                                   638.54 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            832 sec.

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

