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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1598
RA = 171.491, Dec = 20.0912
tmin = 653529601, tmax = 653788801
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='726484', job_status='RUN', time_executed='2021-09-20 00:34:05.247451', time_epoch_executed='1632123245.25' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726484

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726484/ft1_4FGL_J1125.9+2005_daily_bin1598.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726484/ft2_4FGL_J1125.9+2005_daily_bin1598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726484/ft1_4FGL_J1125.9+2005_daily_bin1598.fits outfile=/scratch/kocevski/726484/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1598.fits ra=171.491 dec=20.0912 rad=12.0 tmin=653529601.0 tmax=653788801.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 5.07
user 4.79
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/726484/ft1_filtered_4FGL_J1125.9+2005_daily_bin1598.fits" evtable="EVENTS" scfile=/scratch/kocevski/726484/ft2_4FGL_J1125.9+2005_daily_bin1598.fits sctable="SC_DATA" outfile=/scratch/kocevski/726484/ltcube_653529601_653788801_4FGL_J1125.9+2005_daily_bin1598.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/726484/ft2_4FGL_J1125.9+2005_daily_bin1598.fits
.....................!
real 11.59
user 11.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726484/ft1_filtered_4FGL_J1125.9+2005_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/726484/ft2_4FGL_J1125.9+2005_daily_bin1598.fits sctable="SC_DATA" expcube=/scratch/kocevski/726484/ltcube_653529601_653788801_4FGL_J1125.9+2005_daily_bin1598.fits outfile=/scratch/kocevski/726484/expmap_653529601_653788801_4FGL_J1125.9+2005_daily_bin1598.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/726484/ltcube_653529601_653788801_4FGL_J1125.9+2005_daily_bin1598.fits
.....................!
real 192.94
user 187.36
sys 5.11

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/726484/ft1_filtered_4FGL_J1125.9+2005_daily_bin1598.fits scfile=/scratch/kocevski/726484/ft2_4FGL_J1125.9+2005_daily_bin1598.fits outfile=/scratch/kocevski/726484/cmap_653529601_653788801_4FGL_J1125.9+2005_daily_bin1598.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/726484/ft1_filtered_4FGL_J1125.9+2005_daily_bin1598.fits scfile=/scratch/kocevski/726484/ft2_4FGL_J1125.9+2005_daily_bin1598.fits outfile=/scratch/kocevski/726484/cmap_HighResolution_653529601_653788801_4FGL_J1125.9+2005_daily_bin1598.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/726484/ft1_filtered_4FGL_J1125.9+2005_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/726484/ft2_4FGL_J1125.9+2005_daily_bin1598.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/726484/Model_4FGL_J1125.9+2005_daily_bin1598.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/726484/ft1_filtered_4FGL_J1125.9+2005_daily_bin1598.fits.....................!
real 56.40
user 54.98
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    2.2704       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7135       1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.597       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7253       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3066       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.128       1.0000         .10000E-03   10000.    
    11 'norm      '    40.217       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.273       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.263       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15408E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.094       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35024       1.0000         .10000E-03   10000.    
    20 'norm      '    24.074       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.1892       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .73564E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .52463       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.5878       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=   6167.428     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2931 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7775        .90712E-02** at limit **
   2  Prefactor     .10000E-03    .62213        .90712E-02** at limit **
   3  Prefactor     2.2708        5.0180        .68140E-02    .66630E-03
   4  Prefactor     .10000E-03    3.3286        .90712E-02** at limit **
   5  Prefactor     8.7140        7.4040        .33948E-02   -.12076E-03
   6  Prefactor     47.598        18.425        .14530E-02   -.75780E-03
   7  Prefactor     .10000E-03    5.0047        .90712E-02** at limit **
   8  norm          1.7254        1.2387        .79930E-02    .15768E-03
   9  Prefactor     3.3065        3.6481        .55659E-02    .43706E-03
  10  Prefactor     13.128        8.6866        .27638E-02    .91376E-04
  11  norm          40.217        16.236        .15802E-02    .36228E-03
  12  norm          .10000E-03    6.2554        .90712E-02** at limit **
  13  Prefactor     .10000E-03    14.569        .90712E-02** at limit **
  14  Prefactor     10.264        13.328        .31254E-02    .69573E-03
  15  Prefactor     13.264        41.225        .27497E-02   -.45259E-03
  16  Prefactor     .10003E-03    25.050        .90712E-02** at limit **
  17  Prefactor     .10000E-03    6.1007        .90712E-02** at limit **
  18  Prefactor     22.096        17.031        .21304E-02   -.31378E-03
  19  Prefactor     .35329        1.6294        .31784E-01    .12072E-02
  20  norm          24.074        3.6780        .20410E-02    .64722E-04
  21  Prefactor     .10000E-03    7.1816        .90712E-02** at limit **
  22  Prefactor     3.1889        4.6956        .56725E-02    .49161E-03
  23  Prefactor     .10055E-03    1.3839        .60771E-01** at limit **
  24  Normalizat    .52460        .21236        .82632E-01    .57241E-04
  25  Prefactor     1.5878        .21803        .56525E-01    .20466E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.27082
  Prefactor  = 0.0001
  Prefactor  = 8.714
  Prefactor  = 47.598
  Prefactor  = 0.0001
  norm       = 1.72541
  Prefactor  = 3.30654
  Prefactor  = 13.1278
  norm       = 40.217
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.2637
  Prefactor  = 13.2636
  Prefactor  = 0.000100026
  Prefactor  = 0.000100001
  Prefactor  = 22.0957
  Prefactor  = 0.353286
  norm       = 24.0736
  Prefactor  = 0.000100001
  Prefactor  = 3.18894
  Prefactor  = 0.000100554
  Normalizat = 0.524597
  Prefactor  = 1.5878
 **********
 **   18 **HESSE 
 **********

 FCN=   6167.428     FROM HESSE     STATUS=OK           435 CALLS     3366 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7832        .12781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .62675        .60475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2708        4.9921        .25157E-03   -1.5407    
   4  Prefactor     .10000E-03    3.3464        .13986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.7140        7.4032        .13579E-03   -1.5117    
   6  Prefactor     47.598        18.352        .58121E-04   -1.4327    
   7  Prefactor     .10000E-03    5.0191        .17156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7254        1.2348        .71371E-04   -1.5445    
   9  Prefactor     3.3065        3.6198        .13861E-03   -1.5344    
  10  Prefactor     13.128        8.6824        .11055E-03   -1.4983    
  11  norm          40.217        16.212        .63207E-04   -1.4439    
  12  norm          .10000E-03    6.3058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.264        13.298        .12501E-03   -1.5067    
  15  Prefactor     13.264        41.140        .10999E-03   -1.4979    
  16  Prefactor     .10003E-03    25.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.1075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.096        16.982        .85214E-04   -1.4767    
  19  Prefactor     .35329        2.8990        .18207E-02   -1.5589    
  20  norm          24.074        3.6701        .56308E-04   -1.4726    
  21  Prefactor     .10000E-03    7.1919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.1889        4.6515        .18669E-03   -1.5351    
  23  Prefactor     .10055E-03    3.0385        .32324E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .52460        .23288        .36600E-03   -1.1129    
  25  Prefactor     1.5878        .24663        .24990E-03   -.75110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52102e-09
Minuit parameter uncertainties:
  1  1.69774e-06
  2  5.13131e-07
  3  4.99305
  4  8.02823e-06
  5  7.40397
  6  18.3543
  7  3.04819e-05
  8  1.23484
  9  3.62
  10  8.68319
  11  16.2136
  12  3.92008e-05
  13  0.000283782
  14  13.3014
  15  41.2278
  16  0.00162931
  17  0.000143269
  18  16.986
  19  2.02387
  20  3.67017
  21  0.000125731
  22  4.65198
  23  0.00259411
  24  0.233311
  25  0.246814
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.838e-04  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.588e+00  2.468e-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:  5.246e-01  2.333e-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: 8.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/726484/likelihoodResults_653529601_653788801_4FGL_J1125.9+2005_daily_bin1598.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) = 6167.42800367
delta logL = -0.000323546555592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6167.42768129
delta logL = -1.16217870527e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2909       1.0000          .0000       10.000    
     3 'Normalizat'    .52425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5882       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=   6167.428     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      220 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    582.50        .90712E-02** at limit **
   2  Index         2.3485        6.4515        .50000       -.33539E-04
   3  Normalizat    .52460        .27697E-01    .82632E-01    .51691E-04
   4  Prefactor     1.5878        .31285E-01    .56525E-01    .61597E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.34847
  Normalizat = 0.524597
  Prefactor  = 1.5878
 **********
 **   18 **HESSE 
 **********

 FCN=   6167.428     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      253 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1373.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3485        5.9936        .50000       -.55896    
   3  Normalizat    .52460        .45064E-01    .36600E-03   -1.1129    
   4  Prefactor     1.5878        .51063E-01    .24990E-03   -.75110    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.22032e-07
Minuit parameter uncertainties:
  1  0.00680574
  2  37.0175
  3  0.0450667
  4  0.0510643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726484': 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) = 6167.42767935
delta logL = 7.70273800299e-07

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  6.806e-03  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.348e+00  3.702e+01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.588e+00  5.106e-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:  5.246e-01  4.507e-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/726484/cmap_HighResolution_653529601_653788801_4FGL_J1125.9+2005_daily_bin1598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', job_status='DONE', photon_flux_upper_limit='8.08e-08', time_completed='2021-09-20 00:46:45.142007', job_id='726484', GAL2='1.59', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1632124005.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.59', dlogl='7.70e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1598' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 00:46:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 726484: <4FGL_J1125.9+2005_daily_bin1598> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1598> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 20 00:30:16 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 00:30:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 00:30:19 2021
Terminated at Mon Sep 20 00:46:45 2021
Results reported at Mon Sep 20 00:46:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1598 171.491 20.0912 653529601 653788801 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 :                                   761.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            989 sec.

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

