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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1090
RA = 171.491, Dec = 20.0912
tmin = 521856001, tmax = 522115201
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='784519', job_status='RUN', time_executed='2021-09-03 20:37:58.502518', time_epoch_executed='1630726678.5' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784519

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784519/ft1_4FGL_J1125.9+2005_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784519/ft2_4FGL_J1125.9+2005_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784519/ft1_4FGL_J1125.9+2005_daily_bin1090.fits outfile=/scratch/kocevski/784519/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1090.fits ra=171.491 dec=20.0912 rad=12.0 tmin=521856001.0 tmax=522115201.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.87
user 3.62
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784519/ft1_filtered_4FGL_J1125.9+2005_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/784519/ft2_4FGL_J1125.9+2005_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/784519/ltcube_521856001_522115201_4FGL_J1125.9+2005_daily_bin1090.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/784519/ft2_4FGL_J1125.9+2005_daily_bin1090.fits
.....................!
real 16.81
user 16.40
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784519/ft1_filtered_4FGL_J1125.9+2005_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/784519/ft2_4FGL_J1125.9+2005_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/784519/ltcube_521856001_522115201_4FGL_J1125.9+2005_daily_bin1090.fits outfile=/scratch/kocevski/784519/expmap_521856001_522115201_4FGL_J1125.9+2005_daily_bin1090.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/784519/ltcube_521856001_522115201_4FGL_J1125.9+2005_daily_bin1090.fits
.....................!
real 192.64
user 187.10
sys 4.91

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/784519/ft1_filtered_4FGL_J1125.9+2005_daily_bin1090.fits scfile=/scratch/kocevski/784519/ft2_4FGL_J1125.9+2005_daily_bin1090.fits outfile=/scratch/kocevski/784519/cmap_521856001_522115201_4FGL_J1125.9+2005_daily_bin1090.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784519/ft1_filtered_4FGL_J1125.9+2005_daily_bin1090.fits scfile=/scratch/kocevski/784519/ft2_4FGL_J1125.9+2005_daily_bin1090.fits outfile=/scratch/kocevski/784519/cmap_HighResolution_521856001_522115201_4FGL_J1125.9+2005_daily_bin1090.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/784519/ft1_filtered_4FGL_J1125.9+2005_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/784519/ft2_4FGL_J1125.9+2005_daily_bin1090.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/784519/Model_4FGL_J1125.9+2005_daily_bin1090.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/784519/ft1_filtered_4FGL_J1125.9+2005_daily_bin1090.fits.....................!
real 57.59
user 56.08
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.920       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.662       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32324E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2213       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.324       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10823E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4482       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .28317E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11967E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11953E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11121E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9138       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10679E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2943       1.0000         .10000E-03   10000.    
    20 'norm      '    44.659       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17291E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7350       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .61539       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.5329       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=   6266.804     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3011 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.918        8.9951        .10619E-06    .14021E-03
   2  Prefactor     .10000E-03    .65484        .83362E-08** at limit **
   3  Prefactor     10.662        8.8554        .73757E-06   -.26174E-04
   4  Prefactor     .10178E-03    8.5068       -.18037E-05** at limit **
   5  Prefactor     3.2172        10.852        .40691E-06    .98764E-04
   6  Prefactor     19.296        18.435        .16492E-05    .16225E-03
   7  Prefactor     .10000E-03    7.8570        .21111E-05** at limit **
   8  norm          2.4480        1.7910        .23983E-07   -.32210E-03
   9  Prefactor     .10000E-03    2.4992       -.36056E-06** at limit **
  10  Prefactor     .10007E-03    4.8073        .16358E-05** at limit **
  11  norm          .10000E-03    28.148       -.30005E-05** at limit **
  12  norm          .10000E-03    5.8070        .75827E-06** at limit **
  13  Prefactor     .10000E-03    5.9098       -.81313E-06** at limit **
  14  Prefactor     .10000E-03    7.9237       -.21601E-05** at limit **
  15  Prefactor     .10000E-03    28.973       -.34220E-05** at limit **
  16  Prefactor     .10024E-03    9.7154        .10506E-05** at limit **
  17  Prefactor     5.9389        28.373        .17483E-04   -.22195E-04
  18  Prefactor     .10000E-03    5.9174        .46436E-06** at limit **
  19  Prefactor     1.2929        1.8387       -.85691E-06   -.11919E-02
  20  norm          44.659        5.2000        .10738E-06   -.21200E-03
  21  Prefactor     .10000E-03    19.805       -.29989E-05** at limit **
  22  Prefactor     .10006E-03    1.7472        .18447E-06** at limit **
  23  Prefactor     1.7355        2.4008       -.90157E-07   -.52315E-03
  24  Normalizat    .61547        .20424       -.28048E-05    .24006E-04
  25  Prefactor     1.5325        .20453        .43677E-06   -.53267E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9183
  Prefactor  = 0.0001
  Prefactor  = 10.6617
  Prefactor  = 0.000101779
  Prefactor  = 3.21722
  Prefactor  = 19.2958
  Prefactor  = 0.0001
  norm       = 2.44797
  Prefactor  = 0.0001
  Prefactor  = 0.000100067
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100238
  Prefactor  = 5.93889
  Prefactor  = 0.000100002
  Prefactor  = 1.29291
  norm       = 44.6594
  Prefactor  = 0.0001
  Prefactor  = 0.000100056
  Prefactor  = 1.73551
  Normalizat = 0.615469
  Prefactor  = 1.53245
 **********
 **   18 **HESSE 
 **********

 FCN=   6266.804     FROM HESSE     STATUS=OK           449 CALLS     3460 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.918        8.9902        .11603E-03   -1.5017    
   2  Prefactor     .10000E-03    .65766        .62535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.662        8.8187        .12270E-03   -1.5055    
   4  Prefactor     .10178E-03    10.621        .59412E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2172        10.806        .22571E-03   -1.5349    
   6  Prefactor     19.296        16.706        .91113E-04   -1.4829    
   7  Prefactor     .10000E-03    7.8731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4480        1.7786        .85519E-04   -1.5395    
   9  Prefactor     .10000E-03    5.9952        .21312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10007E-03    21.861        .32995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    28.774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.8324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.9253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.9283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10024E-03    65.620        .47334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.9389        27.883        .16513E-03   -1.5221    
  18  Prefactor     .10000E-03    34.860        .36830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2929        1.8482        .12297E-03   -1.5481    
  20  norm          44.659        5.1868        .57792E-04   -1.4370    
  21  Prefactor     .10000E-03    19.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10006E-03    2.7115        .37931E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.7355        2.3813        .13931E-03   -1.5444    
  24  Normalizat    .61547        .22975        .34966E-03   -1.0733    
  25  Prefactor     1.5325        .23789        .25078E-03   -.76635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.79785e-09
Minuit parameter uncertainties:
  1  8.99123
  2  1.04205e-06
  3  8.81979
  4  0.00869633
  5  10.8123
  6  16.7103
  7  1.82339e-05
  8  1.77863
  9  9.23931e-05
  10  0.00242342
  11  0.000164059
  12  5.15484e-06
  13  1.09907e-06
  14  9.58694e-06
  15  4.46478e-05
  16  0.00790494
  17  25.7561
  18  0.000501836
  19  1.8483
  20  5.18687
  21  4.27552e-05
  22  0.000776822
  23  2.3814
  24  0.230105
  25  0.238062
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.099e-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:  1.532e+00  2.381e-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:  6.155e-01  2.301e-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: 6.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/784519/likelihoodResults_521856001_522115201_4FGL_J1125.9+2005_daily_bin1090.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) = 6266.80521905
delta logL = -0.000801563577625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6266.80441748
delta logL = 8.618371794e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2337       1.0000          .0000       10.000    
     3 'Normalizat'    .61547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5325       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=   6266.804     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      249 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10046E-03    84.146        .18142E-02** at limit **
   2  Index         2.1933        7.3851        .50000        .97274E-05
   3  Normalizat    .61547        .18258E-01    .34967E-03   -.31863E-05
   4  Prefactor     1.5325        .19834E-01    .25078E-03    .14053E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100455
  Index      = 2.19335
  Normalizat = 0.615468
  Prefactor  = 1.53245
 **********
 **   18 **HESSE 
 **********

 FCN=   6266.804     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10046E-03    377.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1933        6.0782        .50000       -.59599    
   3  Normalizat    .61547        .41329E-01    .13987E-04   -1.0733    
   4  Prefactor     1.5325        .44880E-01    .10031E-04   -.76635    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.76262e-08
Minuit parameter uncertainties:
  1  0.026387
  2  966.521
  3  0.0413312
  4  0.0448808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784519': 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) = 6266.8044174
delta logL = 8.60563886818e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.532e+00  4.488e-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:  6.155e-01  4.133e-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/784519/cmap_HighResolution_521856001_522115201_4FGL_J1125.9+2005_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-09-03 20:50:56.620782', job_id='784519', GAL2='1.53', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1630727456.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.53', dlogl='8.61e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1090' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:50:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 784519: <4FGL_J1125.9+2005_daily_bin1090> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1090> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:36:14 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:37:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 20:37:23 2021
Terminated at Fri Sep  3 20:50:57 2021
Results reported at Fri Sep  3 20:50:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1090 171.491 20.0912 521856001 522115201 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 :                                   773.06 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             291.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            883 sec.

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

