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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1581
RA = 171.491, Dec = 20.0912
tmin = 649123201, tmax = 649382401
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='786360', job_status='RUN', time_executed='2021-09-03 20:42:12.121494', time_epoch_executed='1630726932.12' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/786360

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/786360/ft1_4FGL_J1125.9+2005_daily_bin1581.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/786360/ft2_4FGL_J1125.9+2005_daily_bin1581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/786360/ft1_4FGL_J1125.9+2005_daily_bin1581.fits outfile=/scratch/kocevski/786360/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1581.fits ra=171.491 dec=20.0912 rad=12.0 tmin=649123201.0 tmax=649382401.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.08
user 2.81
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/786360/ft1_filtered_4FGL_J1125.9+2005_daily_bin1581.fits evtable="EVENTS" scfile=/scratch/kocevski/786360/ft2_4FGL_J1125.9+2005_daily_bin1581.fits sctable="SC_DATA" expcube=/scratch/kocevski/786360/ltcube_649123201_649382401_4FGL_J1125.9+2005_daily_bin1581.fits outfile=/scratch/kocevski/786360/expmap_649123201_649382401_4FGL_J1125.9+2005_daily_bin1581.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/786360/ltcube_649123201_649382401_4FGL_J1125.9+2005_daily_bin1581.fits
.....................!
real 198.97
user 186.33
sys 5.75

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/786360/ft1_filtered_4FGL_J1125.9+2005_daily_bin1581.fits scfile=/scratch/kocevski/786360/ft2_4FGL_J1125.9+2005_daily_bin1581.fits outfile=/scratch/kocevski/786360/cmap_649123201_649382401_4FGL_J1125.9+2005_daily_bin1581.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/786360/ft1_filtered_4FGL_J1125.9+2005_daily_bin1581.fits scfile=/scratch/kocevski/786360/ft2_4FGL_J1125.9+2005_daily_bin1581.fits outfile=/scratch/kocevski/786360/cmap_HighResolution_649123201_649382401_4FGL_J1125.9+2005_daily_bin1581.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .60370       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14236E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .73742       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .86790E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.898       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0890       1.0000         .10000E-03   10000.    
    12 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8218       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    66.983       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.7950       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.635       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.7635       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2407       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93752       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=   6053.550     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2942 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6491        .67404E-07** at limit **
   2  Prefactor     .10000E-03    1.1318        .48978E-07** at limit **
   3  Prefactor     .60716        7.3607       -.60361E-06   -.84441E-04
   4  Prefactor     .10000E-03    6.1940        .15696E-06** at limit **
   5  Prefactor     .10000E-03    4.3214        .83417E-07** at limit **
   6  Prefactor     .10000E-03    10.546        .15558E-05** at limit **
   7  Prefactor     .10000E-03    12.987       -.19621E-06** at limit **
   8  norm          .73764        1.3616       -.72829E-07   -.21460E-03
   9  Prefactor     .10000E-03    1.7039       -.15543E-06** at limit **
  10  Prefactor     17.898        12.031        .60288E-06    .17963E-03
  11  norm          2.0889        13.808        .11745E-04   -.28690E-04
  12  norm          .10000E-03    5.5026        .35897E-07** at limit **
  13  Prefactor     1.8349        44.131       -.18225E-05   -.42754E-04
  14  Prefactor     .10000E-03    8.1886       -.12039E-06** at limit **
  15  Prefactor     66.966        42.767       -.26472E-06   -.32289E-03
  16  Prefactor     .10000E-03    11.381        .43115E-06** at limit **
  17  Prefactor     .10000E-03    5.8669        .12922E-06** at limit **
  18  Prefactor     .10000E-03    4.3177       -.82863E-07** at limit **
  19  Prefactor     .10000E-03    .48534        .34504E-07** at limit **
  20  norm          9.7953        2.3148        .12636E-08   -.21973E-03
  21  Prefactor     16.637        20.505        .14286E-06    .17040E-04
  22  Prefactor     4.7632        4.3098        .28024E-06   -.10139E-03
  23  Prefactor     .10000E-03    1.3562       -.30118E-06** at limit **
  24  Normalizat    1.2402        .19953        .33689E-06    .15747E-04
  25  Prefactor     .93789        .19142       -.17737E-05   -.71558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.607164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.737637
  Prefactor  = 0.0001
  Prefactor  = 17.8979
  norm       = 2.08893
  norm       = 0.0001
  Prefactor  = 1.83488
  Prefactor  = 0.0001
  Prefactor  = 66.966
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.79534
  Prefactor  = 16.6368
  Prefactor  = 4.76318
  Prefactor  = 0.0001
  Normalizat = 1.24024
  Prefactor  = 0.937888
 **********
 **   18 **HESSE 
 **********

 FCN=   6053.550     FROM HESSE     STATUS=OK           431 CALLS     3373 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6648        .18061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.1457        .80826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .60716        25.933        .39835E-02   -1.5552    
   4  Prefactor     .10000E-03    6.2412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3275        .15797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    45.698        .46877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .73764        1.2442        .11670E-02   -1.5536    
   9  Prefactor     .10000E-03    15.988        .18858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.898        11.806        .94671E-04   -1.4862    
  11  norm          2.0889        13.959        .14282E-02   -1.5419    
  12  norm          .10000E-03    5.5190        .17823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8349        42.722        .30935E-03   -1.5437    
  14  Prefactor     .10000E-03    8.2175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     66.966        43.104        .49040E-04   -1.4069    
  16  Prefactor     .10000E-03    11.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.8784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3335        .15787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .49211        .52913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.7953        2.3162        .55665E-04   -1.5082    
  21  Prefactor     16.637        20.516        .98198E-04   -1.4892    
  22  Prefactor     4.7632        4.2754        .14363E-03   -1.5271    
  23  Prefactor     .10000E-03    2.1874        .17395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2402        .23107        .24748E-03   -.85368    
  25  Prefactor     .93789        .22287        .28674E-03   -.94829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88907e-08
Minuit parameter uncertainties:
  1  3.80364e-06
  2  2.06515e-06
  3  7.93911
  4  1.06857e-05
  5  6.07693e-07
  6  0.000376404
  7  0.000240862
  8  1.24424
  9  7.01387e-05
  10  11.8072
  11  10.8033
  12  4.3252e-05
  13  17.7214
  14  5.74749e-05
  15  43.1238
  16  0.000203205
  17  1.54108e-05
  18  2.46711e-06
  19  8.66875e-07
  20  2.31627
  21  20.5249
  22  4.27563
  23  1.8014e-05
  24  0.231257
  25  0.223088
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  9.379e-01  2.231e-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.240e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/786360/likelihoodResults_649123201_649382401_4FGL_J1125.9+2005_daily_bin1581.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) = 6050.1291882
delta logL = 3.42100428891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6049.96426704
delta logL = 3.5859254483

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60669E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.3515       1.0000          .0000       10.000    
     3 'Normalizat'    1.0451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0692       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=   6049.964     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      268 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60545E-01    .38947        .18773E-02    .62518E-03
   2  Index         5.3525        1.9097        .62917E-01    .15887E-03
   3  Normalizat    1.0453        .66538E-01    .59965E-01    .21913E-04
   4  Prefactor     1.0690        .68455E-01    .61239E-01    .17879E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0605454
  Index      = 5.35254
  Normalizat = 1.04534
  Prefactor  = 1.06905
 **********
 **   18 **HESSE 
 **********

 FCN=   6049.964     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      301 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60545E-01    .63160        .83787E-05   -1.5659    
   2  Index         5.3525        2.5481        .26364E-02    .70566E-01
   3  Normalizat    1.0453        .20540        .26519E-03   -.91527    
   4  Prefactor     1.0690        .20705        .27083E-03   -.90462    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.90448e-07
Minuit parameter uncertainties:
  1  0.390786
  2  2.67449
  3  0.205553
  4  0.2072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/786360': 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) = 6049.96426541
delta logL = 3.585927082

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  6.055e-02  3.908e-01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  5.353e+00  2.674e+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:  1.069e+00  2.072e-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.045e+00  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.82
Ra Dec: 171.491 20.091
Photon Index (Free Index): 5.35 +/- 2.67
Photon Flux (Free Index): 1.60e-07 +/- 7.38e-08
Energy Flux (Free Index): 2.07e-05 +/- 1.09e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/786360/cmap_HighResolution_649123201_649382401_4FGL_J1125.9+2005_daily_bin1581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.02e-03', comment='SUCCESS', energy_flux2='2.07e-05', dlogl='3.59e+00', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-09-03 20:54:58.788982', photon_index_error2='2.67', photon_index2='5.35', ts='0.01', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.09e-05', EG='1.24', time_epoch_completed='1630727698.79', return_code='0', job_id='786360', GAL2='1.07', EG2='1.05', return_code2='102', photon_flux_error2='7.38e-08', ts2='7.82', photon_index='2.24' WHERE bin_id='1581' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:54:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 786360: <4FGL_J1125.9+2005_daily_bin1581> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1581> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 20:41:46 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:41:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 20:41:59 2021
Terminated at Fri Sep  3 20:54:59 2021
Results reported at Fri Sep  3 20:54:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1581 171.491 20.0912 649123201 649382401 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 :                                   747.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             363.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            793 sec.

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

