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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin699
RA = 171.491, Dec = 20.0912
tmin = 420508801, tmax = 420768001
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='781850', job_status='RUN', time_executed='2021-09-03 20:28:08.172455', time_epoch_executed='1630726088.17' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781850

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781850/ft1_4FGL_J1125.9+2005_daily_bin699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781850/ft2_4FGL_J1125.9+2005_daily_bin699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781850/ft1_4FGL_J1125.9+2005_daily_bin699.fits outfile=/scratch/kocevski/781850/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin699.fits ra=171.491 dec=20.0912 rad=12.0 tmin=420508801.0 tmax=420768001.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.41
user 3.19
sys 0.17

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/781850/ft1_filtered_4FGL_J1125.9+2005_daily_bin699.fits" evtable="EVENTS" scfile=/scratch/kocevski/781850/ft2_4FGL_J1125.9+2005_daily_bin699.fits sctable="SC_DATA" outfile=/scratch/kocevski/781850/ltcube_420508801_420768001_4FGL_J1125.9+2005_daily_bin699.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/781850/ft2_4FGL_J1125.9+2005_daily_bin699.fits
.....................!
real 15.08
user 14.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781850/ft1_filtered_4FGL_J1125.9+2005_daily_bin699.fits evtable="EVENTS" scfile=/scratch/kocevski/781850/ft2_4FGL_J1125.9+2005_daily_bin699.fits sctable="SC_DATA" expcube=/scratch/kocevski/781850/ltcube_420508801_420768001_4FGL_J1125.9+2005_daily_bin699.fits outfile=/scratch/kocevski/781850/expmap_420508801_420768001_4FGL_J1125.9+2005_daily_bin699.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/781850/ltcube_420508801_420768001_4FGL_J1125.9+2005_daily_bin699.fits
.....................!
real 193.37
user 187.39
sys 5.35

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/781850/ft1_filtered_4FGL_J1125.9+2005_daily_bin699.fits scfile=/scratch/kocevski/781850/ft2_4FGL_J1125.9+2005_daily_bin699.fits outfile=/scratch/kocevski/781850/cmap_420508801_420768001_4FGL_J1125.9+2005_daily_bin699.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781850/ft1_filtered_4FGL_J1125.9+2005_daily_bin699.fits scfile=/scratch/kocevski/781850/ft2_4FGL_J1125.9+2005_daily_bin699.fits outfile=/scratch/kocevski/781850/cmap_HighResolution_420508801_420768001_4FGL_J1125.9+2005_daily_bin699.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=171.491 yref=20.0912 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.612       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14018E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .94096E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.040       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22155       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3534       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.8111       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0750       1.0000         .10000E-03   10000.    
    20 'norm      '    2.7808       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4684       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4702       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2712       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85094       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=   5647.176     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3415 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.992       -.11389E-05** at limit **
   2  Prefactor     .10000E-03    1.6763        .60951E-08** at limit **
   3  Prefactor     13.613        8.0576        .89008E-07    .25188E-04
   4  Prefactor     .10000E-03    7.8393        .41916E-07** at limit **
   5  Prefactor     .10003E-03    8.0886       -.48950E-07** at limit **
   6  Prefactor     10.018        13.812       -.36919E-06   -.14910E-04
   7  Prefactor     .10000E-03    4.8949       -.51585E-07** at limit **
   8  norm          .10000E-03    .51192        .32690E-08** at limit **
   9  Prefactor     .23023        1.8830       -.19349E-07   -.29121E-04
  10  Prefactor     .10000E-03    3.4407       -.66471E-07** at limit **
  11  norm          .10000E-03    2.8137        .55495E-07** at limit **
  12  norm          .10000E-03    8.9015        .30748E-07** at limit **
  13  Prefactor     4.3450        5.9827        .13675E-05   -.10287E-02
  14  Prefactor     .10000E-03    4.0233        .23756E-08** at limit **
  15  Prefactor     .10000E-03    18.431        .50778E-06** at limit **
  16  Prefactor     5.8076        6.6348        .37479E-06    .89632E-04
  17  Prefactor     .10000E-03    14.508       -.46130E-05** at limit **
  18  Prefactor     .10000E-03    3.6447        .76159E-07** at limit **
  19  Prefactor     1.0749        1.6983        .36304E-07   -.67921E-04
  20  norm          2.7805        1.5149       -.47224E-08    .11084E-03
  21  Prefactor     .10000E-03    13.887        .52654E-05** at limit **
  22  Prefactor     3.4664        4.0850        .59441E-07   -.11489E-03
  23  Prefactor     1.4689        2.4088        .43902E-07   -.19148E-03
  24  Normalizat    1.2716        .18253        .11131E-06    .10250E-03
  25  Prefactor     .85103        .18784       -.20560E-06    .69335E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6134
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 10.0185
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.230229
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.345
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.80761
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.07494
  norm       = 2.78046
  Prefactor  = 0.000100002
  Prefactor  = 3.46641
  Prefactor  = 1.46888
  Normalizat = 1.27158
  Prefactor  = 0.851028
 **********
 **   18 **HESSE 
 **********

 FCN=   5647.176     FROM HESSE     STATUS=OK           445 CALLS     3860 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.351        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.5933        .18620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.613        8.0629        .10856E-03   -1.4970    
   4  Prefactor     .10000E-03    11.838        .52881E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    15.735        .60608E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.018        13.276        .12646E-03   -1.5075    
   7  Prefactor     .10000E-03    4.9007        .16235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .52877        .10493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .23023        6.0953        .17582E-02   -1.5612    
  10  Prefactor     .10000E-03    3.4754        .13613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.8153        .12310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.0249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3450        8.8739        .96524E-03   -1.5291    
  14  Prefactor     .10000E-03    4.0285        .14720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.8076        6.6360        .16660E-03   -1.5226    
  17  Prefactor     .10000E-03    14.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6685        .14009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0749        1.6629        .11693E-03   -1.5501    
  20  norm          2.7805        1.5150        .66153E-04   -1.5374    
  21  Prefactor     .10000E-03    14.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.4664        4.0693        .15552E-03   -1.5336    
  23  Prefactor     1.4689        2.3831        .14283E-03   -1.5466    
  24  Normalizat    1.2716        .21743        .22116E-03   -.84419    
  25  Prefactor     .85103        .22342        .28229E-03   -.97874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11472e-08
Minuit parameter uncertainties:
  1  6.46933e-05
  2  8.07443e-06
  3  8.0635
  4  7.51512e-05
  5  0.00148318
  6  13.2799
  7  2.57593e-06
  8  3.9425e-07
  9  2.36899
  10  3.28626e-06
  11  1.08169e-06
  12  1.14912e-06
  13  8.87657
  14  1.76184e-06
  15  3.31058e-05
  16  6.63682
  17  0.000302176
  18  1.696e-06
  19  1.663
  20  1.51504
  21  0.000333618
  22  4.06967
  23  2.38328
  24  0.217584
  25  0.223658
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  4.345e+00  8.877e+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

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.510e-01  2.237e-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.272e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/781850/likelihoodResults_420508801_420768001_4FGL_J1125.9+2005_daily_bin699.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) = 5647.14439473
delta logL = 0.0313630631827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5647.13633144
delta logL = 0.0394263558037

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2725       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6075       1.0000          .0000       10.000    
     3 'Normalizat'    1.2626       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85672       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5647.136     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      267 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2768        10.218        .11192E-02    .39399E-03
   2  Index         2.6082        1.6422        .80975E-02    .18121E-03
   3  Normalizat    1.2633        .21113        .22179E-03   -.12456E-04
   4  Prefactor     .85620        .22332        .28153E-03    .17768E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.27684
  Index      = 2.60818
  Normalizat = 1.26325
  Prefactor  = 0.856203
 **********
 **   18 **HESSE 
 **********

 FCN=   5647.136     FROM HESSE     STATUS=OK            27 CALLS      294 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2768        8.4273        .22385E-03   -1.5346    
   2  Index         2.6082        1.3645        .16195E-02   -.49879    
   3  Normalizat    1.2633        .21097        .88715E-05   -.84670    
   4  Prefactor     .85620        .22313        .11261E-04   -.97689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13845e-12
Minuit parameter uncertainties:
  1  8.4303
  2  1.3875
  3  0.211116
  4  0.223366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781850': 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) = 5647.13632512
delta logL = 0.0394326722735

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  3.277e+00  8.430e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.608e+00  1.387e+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:  8.562e-01  2.234e-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.263e+00  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
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/781850/cmap_HighResolution_420508801_420768001_4FGL_J1125.9+2005_daily_bin699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.15e-03', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2021-09-03 20:41:09.978787', job_id='781850', GAL2='0.86', fit_tolerance='1e-08', EG2='1.26', EG='1.27', time_epoch_completed='1630726869.98', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.94e-02', ts2='0.41', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='699' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:41:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 781850: <4FGL_J1125.9+2005_daily_bin699> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin699> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 20:26:42 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:27:53 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:27:53 2021
Terminated at Fri Sep  3 20:41:10 2021
Results reported at Fri Sep  3 20:41:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin699 171.491 20.0912 420508801 420768001 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 :                                   771.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            868 sec.

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

