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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin721
RA = 171.491, Dec = 20.0912
tmin = 426211201, tmax = 426470401
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='782817', job_status='RUN', time_executed='2021-09-03 20:31:34.365764', time_epoch_executed='1630726294.37' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782817

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782817/ft1_4FGL_J1125.9+2005_daily_bin721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782817/ft2_4FGL_J1125.9+2005_daily_bin721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782817/ft1_4FGL_J1125.9+2005_daily_bin721.fits outfile=/scratch/kocevski/782817/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin721.fits ra=171.491 dec=20.0912 rad=12.0 tmin=426211201.0 tmax=426470401.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.64
user 3.35
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/782817/ft2_4FGL_J1125.9+2005_daily_bin721.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/782817/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin721.fits evtable="EVENTS" outfile="/scratch/kocevski/782817/ft1_filtered_4FGL_J1125.9+2005_daily_bin721.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/782817/ft1_filtered_4FGL_J1125.9+2005_daily_bin721.fits" evtable="EVENTS" scfile=/scratch/kocevski/782817/ft2_4FGL_J1125.9+2005_daily_bin721.fits sctable="SC_DATA" outfile=/scratch/kocevski/782817/ltcube_426211201_426470401_4FGL_J1125.9+2005_daily_bin721.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/782817/ft2_4FGL_J1125.9+2005_daily_bin721.fits
.....................!
real 55.50
user 17.04
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782817/ft1_filtered_4FGL_J1125.9+2005_daily_bin721.fits evtable="EVENTS" scfile=/scratch/kocevski/782817/ft2_4FGL_J1125.9+2005_daily_bin721.fits sctable="SC_DATA" expcube=/scratch/kocevski/782817/ltcube_426211201_426470401_4FGL_J1125.9+2005_daily_bin721.fits outfile=/scratch/kocevski/782817/expmap_426211201_426470401_4FGL_J1125.9+2005_daily_bin721.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/782817/ltcube_426211201_426470401_4FGL_J1125.9+2005_daily_bin721.fits
.....................!
real 196.12
user 188.96
sys 6.07

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/782817/ft1_filtered_4FGL_J1125.9+2005_daily_bin721.fits scfile=/scratch/kocevski/782817/ft2_4FGL_J1125.9+2005_daily_bin721.fits outfile=/scratch/kocevski/782817/cmap_426211201_426470401_4FGL_J1125.9+2005_daily_bin721.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.64
user 0.40
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17858E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.394       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3300       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .45862       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4115       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    26.763       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.067       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4281       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4249       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11337E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9774       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6678       1.0000         .10000E-03   10000.    
    20 'norm      '    2.4015       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.0762       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9508       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3283       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .58624       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=   5759.788     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2962 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8100        .16081E-07** at limit **
   2  Prefactor     .10000E-03    .99820        .22235E-07** at limit **
   3  Prefactor     .10000E-03    3.8198        .18045E-06** at limit **
   4  Prefactor     18.393        11.158        .60829E-08   -.28467E-04
   5  Prefactor     9.3295        11.374       -.10822E-06   -.10426E-04
   6  Prefactor     .10000E-03    3.3866        .19890E-07** at limit **
   7  Prefactor     .10000E-03    7.9160        .17520E-07** at limit **
   8  norm          .45873        1.0439        .88035E-07    .24271E-04
   9  Prefactor     .10000E-03    .93530        .96632E-08** at limit **
  10  Prefactor     8.4112        6.3647        .47607E-06   -.18664E-04
  11  norm          .10000E-03    5.0905       -.36141E-07** at limit **
  12  norm          26.760        16.263        .11518E-05   -.15962E-04
  13  Prefactor     .10000E-03    4.3892        .96592E-08** at limit **
  14  Prefactor     25.074        22.538        .29740E-06   -.81546E-05
  15  Prefactor     2.4336        180.70        .15819E-04   -.15319E-05
  16  Prefactor     7.4183        14.251        .34011E-06   -.72183E-05
  17  Prefactor     .10000E-03    106.12       -.42202E-06** at limit **
  18  Prefactor     1.9779        1.7527       -.79256E-07   -.25320E-03
  19  Prefactor     3.6672        2.1953       -.39951E-07   -.66451E-04
  20  norm          2.4010        1.8580        .49614E-07   -.35333E-04
  21  Prefactor     .10000E-03    25.533       -.13704E-06** at limit **
  22  Prefactor     6.0755        6.1724        .16677E-05    .27159E-05
  23  Prefactor     1.9509        3.6174       -.53817E-06   -.11943E-03
  24  Normalizat    1.3283        .19553       -.12374E-05   -.32997E-04
  25  Prefactor     .58623        .17761       -.57039E-06   -.93106E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3925
  Prefactor  = 9.32947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.458731
  Prefactor  = 0.0001
  Prefactor  = 8.4112
  norm       = 0.0001
  norm       = 26.7595
  Prefactor  = 0.0001
  Prefactor  = 25.074
  Prefactor  = 2.43364
  Prefactor  = 7.41826
  Prefactor  = 0.0001
  Prefactor  = 1.97788
  Prefactor  = 3.66721
  norm       = 2.40101
  Prefactor  = 0.0001
  Prefactor  = 6.07546
  Prefactor  = 1.95092
  Normalizat = 1.32829
  Prefactor  = 0.586226
 **********
 **   18 **HESSE 
 **********

 FCN=   5759.788     FROM HESSE     STATUS=OK           435 CALLS     3397 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8162        .12424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.0180        .74026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.410        .28737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.393        11.173        .93387E-04   -1.4850    
   5  Prefactor     9.3295        11.355        .13121E-03   -1.5097    
   6  Prefactor     .10000E-03    3.3918        .13640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.9317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .45873        .94078        .11134E-02   -1.5573    
   9  Prefactor     .10000E-03    .94243        .71661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.4112        6.3613        .13822E-03   -1.5128    
  11  norm          .10000E-03    5.1027        .16719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          26.760        16.310        .77438E-04   -1.4673    
  13  Prefactor     .10000E-03    4.3973        .15526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.074        22.501        .80010E-04   -1.4706    
  15  Prefactor     2.4336        179.87        .26263E-03   -1.5396    
  16  Prefactor     7.4183        14.201        .14719E-03   -1.5163    
  17  Prefactor     .10000E-03    110.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.9779        19.042        .14739E-02   -1.5427    
  19  Prefactor     3.6672        2.1896        .82866E-04   -1.5325    
  20  norm          2.4010        1.8510        .87598E-04   -1.5398    
  21  Prefactor     .10000E-03    25.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.0755        6.2571        .16288E-03   -1.5215    
  23  Prefactor     1.9509        3.5905        .17901E-03   -1.5429    
  24  Normalizat    1.3283        .22809        .22656E-03   -.82726    
  25  Prefactor     .58623        .20578        .32067E-03   -1.0817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10092e-10
Minuit parameter uncertainties:
  1  2.10582e-06
  2  2.22872e-06
  3  3.6626e-06
  4  11.1747
  5  11.3573
  6  1.83617e-06
  7  7.72836e-06
  8  0.940815
  9  8.52151e-07
  10  6.36184
  11  6.88772e-06
  12  16.3129
  13  1.78515e-06
  14  22.5086
  15  41.9752
  16  14.2079
  17  0.000152397
  18  12.2787
  19  2.18961
  20  1.85102
  21  3.11955e-05
  22  6.25774
  23  3.59087
  24  0.22826
  25  0.206041
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.785e-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.862e-01  2.060e-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.328e+00  2.283e-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: 5.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782817/likelihoodResults_426211201_426470401_4FGL_J1125.9+2005_daily_bin721.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) = 5759.78949226
delta logL = -0.00107552485042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5759.78841668
delta logL = 4.88134901389e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2305       1.0000          .0000       10.000    
     3 'Normalizat'    1.3283       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58623       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=   5759.788     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      241 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10201E-03    3.6727        .15606E-01** at limit **
   2  Index         2.0533        7.1587        .50000        .10539E-04
   3  Normalizat    1.3283        .40907E-02    .22656E-03   -.21327E-04
   4  Prefactor     .58623        .40152E-02    .32067E-03   -.95724E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102014
  Index      = 2.05335
  Normalizat = 1.32828
  Prefactor  = 0.586227
 **********
 **   18 **HESSE 
 **********

 FCN=   5759.788     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10201E-03    276.85        .16040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0533        8.9416        .50000       -.63023    
   3  Normalizat    1.3283        .38177E-01    .90623E-05   -.82726    
   4  Prefactor     .58623        .37458E-01    .12827E-04   -1.0817    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2404e-06
Minuit parameter uncertainties:
  1  0.0474491
  2  1514.59
  3  0.0381778
  4  0.0374593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782817': 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) = 5759.78841621
delta logL = 5.21888068761e-07

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.020e-04  4.745e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.053e+00  1.515e+03  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.862e-01  3.746e-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.328e+00  3.818e-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/782817/cmap_HighResolution_426211201_426470401_4FGL_J1125.9+2005_daily_bin721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.72e-08', time_completed='2021-09-03 20:44:25.185015', job_id='782817', GAL2='0.59', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630727065.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='5.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='721' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:44:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 782817: <4FGL_J1125.9+2005_daily_bin721> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin721> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 20:31:18 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:31:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 20:31:19 2021
Terminated at Fri Sep  3 20:44:26 2021
Results reported at Fri Sep  3 20:44:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin721 171.491 20.0912 426211201 426470401 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 :                                   725.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            788 sec.

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

