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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1094
RA = 171.491, Dec = 20.0912
tmin = 522892801, tmax = 523152001
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='784524', job_status='RUN', time_executed='2021-09-03 20:39:14.543414', time_epoch_executed='1630726754.54' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1094'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784524

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784524/ft1_4FGL_J1125.9+2005_daily_bin1094.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784524/ft2_4FGL_J1125.9+2005_daily_bin1094.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784524/ft1_4FGL_J1125.9+2005_daily_bin1094.fits outfile=/scratch/kocevski/784524/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1094.fits ra=171.491 dec=20.0912 rad=12.0 tmin=522892801.0 tmax=523152001.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.78
user 3.55
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784524/ft1_filtered_4FGL_J1125.9+2005_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/784524/ft2_4FGL_J1125.9+2005_daily_bin1094.fits sctable="SC_DATA" expcube=/scratch/kocevski/784524/ltcube_522892801_523152001_4FGL_J1125.9+2005_daily_bin1094.fits outfile=/scratch/kocevski/784524/expmap_522892801_523152001_4FGL_J1125.9+2005_daily_bin1094.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/784524/ltcube_522892801_523152001_4FGL_J1125.9+2005_daily_bin1094.fits
.....................!
real 193.06
user 188.37
sys 4.05

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/784524/ft1_filtered_4FGL_J1125.9+2005_daily_bin1094.fits scfile=/scratch/kocevski/784524/ft2_4FGL_J1125.9+2005_daily_bin1094.fits outfile=/scratch/kocevski/784524/cmap_522892801_523152001_4FGL_J1125.9+2005_daily_bin1094.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.65
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784524/ft1_filtered_4FGL_J1125.9+2005_daily_bin1094.fits scfile=/scratch/kocevski/784524/ft2_4FGL_J1125.9+2005_daily_bin1094.fits outfile=/scratch/kocevski/784524/cmap_HighResolution_522892801_523152001_4FGL_J1125.9+2005_daily_bin1094.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.86
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8332       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28644E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2596       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    18.754       1.0000         .10000E-03   10000.    
    12 'norm      '    .21451       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6676       1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.173       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11787E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.9953       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.875       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.979       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.235       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.7668       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5944       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3595       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .53075       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=   5659.070     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     2961 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.350        .62511E-07** at limit **
   2  Prefactor     2.8335        2.3015       -.74606E-07   -.96471E-05
   3  Prefactor     .10000E-03    1.9851        .46695E-07** at limit **
   4  Prefactor     .10000E-03    6.0929       -.76634E-07** at limit **
   5  Prefactor     .10000E-03    5.3968        .70382E-07** at limit **
   6  Prefactor     5.2560        10.648        .43651E-05   -.31618E-03
   7  Prefactor     .10000E-03    3.4305        .55574E-07** at limit **
   8  norm          .10000E-03    .83299        .18736E-06** at limit **
   9  Prefactor     .10000E-03    .82735       -.83964E-07** at limit **
  10  Prefactor     .10000E-03    2.4987        .51965E-07** at limit **
  11  norm          18.742        12.286        .27286E-06    .37073E-04
  12  norm          .14046        6.0079        .20568E-06   -.65890E-04
  13  Prefactor     .10000E-03    3.0800        .36758E-07** at limit **
  14  Prefactor     3.6490        25.663        .23598E-05    .53490E-04
  15  Prefactor     36.150        35.487       -.32651E-05   -.37418E-03
  16  Prefactor     .10000E-03    16.473        .65458E-06** at limit **
  17  Prefactor     9.9655        25.192       -.14578E-05   -.10618E-03
  18  Prefactor     17.868        11.966        .21373E-07    .37339E-04
  19  Prefactor     .10000E-03    .77497       -.49520E-07** at limit **
  20  norm          11.978        3.1334        .53027E-07   -.14895E-04
  21  Prefactor     19.217        24.928       -.22302E-05   -.30741E-03
  22  Prefactor     4.7649        3.9081        .12534E-05   -.59551E-03
  23  Prefactor     2.5940        2.4525       -.24999E-07   -.45095E-04
  24  Normalizat    1.3604        .19856       -.52351E-06   -.84159E-04
  25  Prefactor     .53013        .18369       -.56211E-06   -.58914E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.83352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.25603
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.7425
  norm       = 0.140461
  Prefactor  = 0.0001
  Prefactor  = 3.649
  Prefactor  = 36.1503
  Prefactor  = 0.0001
  Prefactor  = 9.96551
  Prefactor  = 17.8685
  Prefactor  = 0.0001
  norm       = 11.9784
  Prefactor  = 19.2171
  Prefactor  = 4.76489
  Prefactor  = 2.59401
  Normalizat = 1.36037
  Prefactor  = 0.530126
 **********
 **   18 **HESSE 
 **********

 FCN=   5659.070     FROM HESSE     STATUS=OK           429 CALLS     3390 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.226        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8335        2.2849        .98474E-04   -1.5371    
   3  Prefactor     .10000E-03    1.9892        .10350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.604        .35300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.4182        .17058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2560        10.895        .87631E-03   -1.5249    
   7  Prefactor     .10000E-03    3.4318        .13607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.5499        .12933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .83108        .66829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5054        .11613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.742        12.240        .92485E-04   -1.4842    
  12  norm          .14046        139.71        .35093E-02   -1.5633    
  13  Prefactor     .10000E-03    3.0825        .12893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6490        25.682        .21091E-03   -1.5326    
  15  Prefactor     36.150        37.039        .66635E-04   -1.4505    
  16  Prefactor     .10000E-03    16.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.9655        25.399        .12674E-03   -1.5076    
  18  Prefactor     17.868        11.969        .94733E-04   -1.4862    
  19  Prefactor     .10000E-03    .78071        .64532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.978        3.1315        .63329E-04   -1.5016    
  21  Prefactor     19.217        25.584        .91324E-04   -1.4831    
  22  Prefactor     4.7649        3.9495        .64801E-03   -1.5271    
  23  Prefactor     2.5940        2.4424        .11032E-03   -1.5386    
  24  Normalizat    1.3604        .23127        .22087E-03   -.81782    
  25  Prefactor     .53013        .21293        .33231E-03   -1.1061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52513e-09
Minuit parameter uncertainties:
  1  1.63042e-05
  2  2.28495
  3  5.86862e-07
  4  0.000175316
  5  3.11397e-06
  6  10.899
  7  2.71006e-06
  8  3.85686e-05
  9  5.04485e-06
  10  8.94636e-07
  11  12.2416
  12  8.8773
  13  1.87524e-06
  14  19.3727
  15  37.0621
  16  1.30467e-05
  17  25.4269
  18  11.9705
  19  2.04553e-06
  20  3.1315
  21  25.5982
  22  3.94968
  23  2.4425
  24  0.231443
  25  0.21325
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.875e-06  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:  5.301e-01  2.133e-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.360e+00  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/784524/likelihoodResults_522892801_523152001_4FGL_J1125.9+2005_daily_bin1094.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): 102
logL (Free Index) = 5659.07110959
delta logL = -0.00150047493753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5659.06960906
delta logL = 5.13709892402e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2238       1.0000          .0000       10.000    
     3 'Normalizat'    1.3604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53005       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=   5659.070     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      241 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10154E-03    46.957        .13065E-02** at limit **
   2  Index         2.1600        5.9916        .50000        .41819E-04
   3  Normalizat    1.3604        .17666E-01    .22087E-03    .18005E-04
   4  Prefactor     .53013        .17397E-01    .33231E-03   -.32534E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101538
  Index      = 2.15996
  Normalizat = 1.36037
  Prefactor  = 0.530125
 **********
 **   18 **HESSE 
 **********

 FCN=   5659.070     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10154E-03    186.44        .26130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1600        5.8101        .50000       -.60408    
   3  Normalizat    1.3604        .37187E-01    .44173E-04   -.81782    
   4  Prefactor     .53013        .36619E-01    .13292E-04   -1.1061    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.52478e-08
Minuit parameter uncertainties:
  1  0.0339711
  2  526.548
  3  0.0371873
  4  0.0366203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784524': 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) = 5659.06960844
delta logL = 6.72234818921e-07

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.015e-04  3.397e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.160e+00  5.265e+02  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:  5.301e-01  3.662e-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:  1.360e+00  3.719e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 171.491 20.091

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/784524/cmap_HighResolution_522892801_523152001_4FGL_J1125.9+2005_daily_bin1094.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', job_status='DONE', photon_flux_upper_limit='4.62e-08', time_completed='2021-09-03 20:51:29.167134', job_id='784524', GAL2='0.53', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1630727489.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='6.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1094' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:51:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 784524: <4FGL_J1125.9+2005_daily_bin1094> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1094> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:36:14 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:37:29 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:37:29 2021
Terminated at Fri Sep  3 20:51:29 2021
Results reported at Fri Sep  3 20:51:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1094 171.491 20.0912 522892801 523152001 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 :                                   718.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            915 sec.

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

