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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1121
RA = 171.491, Dec = 20.0912
tmin = 529891201, tmax = 530150401
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='784562', job_status='RUN', time_executed='2021-09-03 20:41:47.103972', time_epoch_executed='1630726907.1' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784562

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784562/ft1_4FGL_J1125.9+2005_daily_bin1121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784562/ft2_4FGL_J1125.9+2005_daily_bin1121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784562/ft1_4FGL_J1125.9+2005_daily_bin1121.fits outfile=/scratch/kocevski/784562/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1121.fits ra=171.491 dec=20.0912 rad=12.0 tmin=529891201.0 tmax=530150401.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 2.95
user 2.72
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784562/ft1_filtered_4FGL_J1125.9+2005_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/784562/ft2_4FGL_J1125.9+2005_daily_bin1121.fits sctable="SC_DATA" expcube=/scratch/kocevski/784562/ltcube_529891201_530150401_4FGL_J1125.9+2005_daily_bin1121.fits outfile=/scratch/kocevski/784562/expmap_529891201_530150401_4FGL_J1125.9+2005_daily_bin1121.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/784562/ltcube_529891201_530150401_4FGL_J1125.9+2005_daily_bin1121.fits
.....................!
real 158.13
user 153.02
sys 4.29

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/784562/ft1_filtered_4FGL_J1125.9+2005_daily_bin1121.fits scfile=/scratch/kocevski/784562/ft2_4FGL_J1125.9+2005_daily_bin1121.fits outfile=/scratch/kocevski/784562/cmap_529891201_530150401_4FGL_J1125.9+2005_daily_bin1121.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.47
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784562/ft1_filtered_4FGL_J1125.9+2005_daily_bin1121.fits scfile=/scratch/kocevski/784562/ft2_4FGL_J1125.9+2005_daily_bin1121.fits outfile=/scratch/kocevski/784562/cmap_HighResolution_529891201_530150401_4FGL_J1125.9+2005_daily_bin1121.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.48
user 0.32
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9950       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0526       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.176       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6558       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.470       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.378       1.0000         .10000E-03   10000.    
     8 'norm      '    .41600       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.585       1.0000         .10000E-03   10000.    
    11 'norm      '    7.6355       1.0000         .10000E-03   10000.    
    12 'norm      '    .10557E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    83.082       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2762       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    31.753       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9062       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.4517       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .51838       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4615       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=   5675.250     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2931 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9906        9.9610       -.56237E-06    .22829E-04
   2  Prefactor     1.0562        2.1254       -.25815E-06   -.47462E-03
   3  Prefactor     10.175        8.7228        .43405E-06    .63480E-04
   4  Prefactor     2.6579        10.518        .81946E-05   -.66834E-04
   5  Prefactor     13.467        12.495       -.14076E-05    .18910E-04
   6  Prefactor     .10000E-03    4.0895       -.13575E-06** at limit **
   7  Prefactor     12.380        18.811       -.22555E-05    .15629E-04
   8  norm          .41836        1.3563        .22314E-07   -.10556E-03
   9  Prefactor     .10000E-03    1.7370       -.33280E-06** at limit **
  10  Prefactor     10.586        7.0087        .26824E-07    .37772E-04
  11  norm          7.6352        10.706        .26089E-06    .99127E-04
  12  norm          .10000E-03    19.376       -.10279E-05** at limit **
  13  Prefactor     .10000E-03    4.1091        .26321E-07** at limit **
  14  Prefactor     .10000E-03    7.1736       -.29051E-07** at limit **
  15  Prefactor     83.097        44.679       -.47985E-06    .11823E-03
  16  Prefactor     2.2761        9.8271       -.28750E-06   -.11285E-03
  17  Prefactor     .10000E-03    4.9508       -.63260E-07** at limit **
  18  Prefactor     .10000E-03    8.7797       -.78046E-07** at limit **
  19  Prefactor     .10000E-03    .64687       -.13179E-06** at limit **
  20  norm          31.754        4.1894        .97085E-08   -.65128E-04
  21  Prefactor     4.9039        15.321        .29369E-06    .94856E-05
  22  Prefactor     1.4524        3.0261        .24994E-06    .83425E-04
  23  Prefactor     .10000E-03    1.7023        .16907E-05** at limit **
  24  Normalizat    .51802        .20405       -.27429E-05    .16168E-03
  25  Prefactor     1.4617        .21137        .18635E-05    .35793E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.99062
  Prefactor  = 1.05617
  Prefactor  = 10.1755
  Prefactor  = 2.65785
  Prefactor  = 13.4666
  Prefactor  = 0.0001
  Prefactor  = 12.3796
  norm       = 0.418361
  Prefactor  = 0.0001
  Prefactor  = 10.5855
  norm       = 7.63519
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 83.0975
  Prefactor  = 2.27614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.7536
  Prefactor  = 4.90387
  Prefactor  = 1.45242
  Prefactor  = 0.0001
  Normalizat = 0.518024
  Prefactor  = 1.46167
 **********
 **   18 **HESSE 
 **********

 FCN=   5675.250     FROM HESSE     STATUS=OK           433 CALLS     3364 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9906        9.8058        .12675E-03   -1.5076    
   2  Prefactor     1.0562        1.7766        .14468E-02   -1.5502    
   3  Prefactor     10.175        8.6335        .62806E-03   -1.5070    
   4  Prefactor     2.6579        11.262        .12507E-02   -1.5382    
   5  Prefactor     13.467        12.517        .10914E-03   -1.4974    
   6  Prefactor     .10000E-03    4.0995        .14881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.380        18.889        .11386E-03   -1.5004    
   8  norm          .41836        1.6208        .14211E-02   -1.5579    
   9  Prefactor     .10000E-03    1.7989        .19428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.586        7.0061        .12315E-03   -1.5057    
  11  norm          7.6352        10.656        .14513E-03   -1.5155    
  12  norm          .10000E-03    20.107        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.1162        .14912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.1902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     83.097        44.703        .44068E-04   -1.3882    
  16  Prefactor     2.2761        9.8323        .27217E-03   -1.5406    
  17  Prefactor     .10000E-03    4.9548        .16371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.8554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .66438        .11843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          31.754        4.1862        .54069E-04   -1.4580    
  21  Prefactor     4.9039        15.323        .18159E-03   -1.5265    
  22  Prefactor     1.4524        2.9671        .17943E-03   -1.5467    
  23  Prefactor     .10000E-03    6.0280        .16709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .51802        .22695        .34047E-03   -1.1159    
  25  Prefactor     1.4617        .24359        .23912E-03   -.78619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4071e-08
Minuit parameter uncertainties:
  1  9.80733
  2  1.77668
  3  8.63454
  4  10.9454
  5  12.5195
  6  1.76566e-05
  7  18.898
  8  1.62093
  9  3.39367e-05
  10  7.00663
  11  10.6582
  12  0.000350891
  13  1.07501e-06
  14  4.27271e-05
  15  44.7206
  16  9.46383
  17  1.94181e-05
  18  2.92799e-06
  19  8.39638e-06
  20  4.18619
  21  15.3349
  22  2.96736
  23  1.29017e-05
  24  0.227352
  25  0.243784
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.075e-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.462e+00  2.438e-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.180e-01  2.274e-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.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/784562/likelihoodResults_529891201_530150401_4FGL_J1125.9+2005_daily_bin1121.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) = 5675.25135369
delta logL = -0.00114475881219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5675.25020883
delta logL = 9.96069502435e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2242       1.0000          .0000       10.000    
     3 'Normalizat'    .51799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4617       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=   5675.250     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10141E-03    55.902        .15098E-02** at limit **
   2  Index         2.1612        5.9658        .50000        .29628E-04
   3  Normalizat    .51803        .16467E-01    .34047E-03    .77802E-05
   4  Prefactor     1.4617        .18658E-01    .23912E-03   -.88908E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101409
  Index      = 2.16124
  Normalizat = 0.518026
  Prefactor  = 1.46167
 **********
 **   18 **HESSE 
 **********

 FCN=   5675.250     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10141E-03    229.97        .30195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1612        6.0686        .50000       -.60377    
   3  Normalizat    .51803        .35165E-01    .13619E-04   -1.1159    
   4  Prefactor     1.4617        .39839E-01    .95647E-05   -.78619    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.2343e-08
Minuit parameter uncertainties:
  1  0.0361397
  2  598.392
  3  0.0351665
  4  0.0398402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784562': 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) = 5675.25020845
delta logL = 4.7722733143e-07

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.014e-04  3.614e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.161e+00  5.984e+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.462e+00  3.984e-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.180e-01  3.517e-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/784562/cmap_HighResolution_529891201_530150401_4FGL_J1125.9+2005_daily_bin1121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.16e-03', job_status='DONE', photon_flux_upper_limit='5.44e-08', time_completed='2021-09-03 20:52:48.746061', job_id='784562', GAL2='1.46', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1630727568.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.46', dlogl='4.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1121' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:52:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 784562: <4FGL_J1125.9+2005_daily_bin1121> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1121> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:36:16 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:37:58 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:58 2021
Terminated at Fri Sep  3 20:52:49 2021
Results reported at Fri Sep  3 20:52:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1121 171.491 20.0912 529891201 530150401 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 :                                   603.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             217.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            993 sec.

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

