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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1034
RA = 171.491, Dec = 20.0912
tmin = 507340801, tmax = 507600001
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='784439', job_status='RUN', time_executed='2021-09-03 20:38:51.861923', time_epoch_executed='1630726731.86' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1034'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784439

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784439/ft1_4FGL_J1125.9+2005_daily_bin1034.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784439/ft2_4FGL_J1125.9+2005_daily_bin1034.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784439/ft1_4FGL_J1125.9+2005_daily_bin1034.fits outfile=/scratch/kocevski/784439/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1034.fits ra=171.491 dec=20.0912 rad=12.0 tmin=507340801.0 tmax=507600001.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.61
user 3.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784439/ft1_filtered_4FGL_J1125.9+2005_daily_bin1034.fits" evtable="EVENTS" scfile=/scratch/kocevski/784439/ft2_4FGL_J1125.9+2005_daily_bin1034.fits sctable="SC_DATA" outfile=/scratch/kocevski/784439/ltcube_507340801_507600001_4FGL_J1125.9+2005_daily_bin1034.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/784439/ft2_4FGL_J1125.9+2005_daily_bin1034.fits
.....................!
real 16.10
user 15.67
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784439/ft1_filtered_4FGL_J1125.9+2005_daily_bin1034.fits evtable="EVENTS" scfile=/scratch/kocevski/784439/ft2_4FGL_J1125.9+2005_daily_bin1034.fits sctable="SC_DATA" expcube=/scratch/kocevski/784439/ltcube_507340801_507600001_4FGL_J1125.9+2005_daily_bin1034.fits outfile=/scratch/kocevski/784439/expmap_507340801_507600001_4FGL_J1125.9+2005_daily_bin1034.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/784439/ltcube_507340801_507600001_4FGL_J1125.9+2005_daily_bin1034.fits
.....................!
real 195.40
user 188.59
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/784439/ft1_filtered_4FGL_J1125.9+2005_daily_bin1034.fits scfile=/scratch/kocevski/784439/ft2_4FGL_J1125.9+2005_daily_bin1034.fits outfile=/scratch/kocevski/784439/cmap_507340801_507600001_4FGL_J1125.9+2005_daily_bin1034.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784439/ft1_filtered_4FGL_J1125.9+2005_daily_bin1034.fits scfile=/scratch/kocevski/784439/ft2_4FGL_J1125.9+2005_daily_bin1034.fits outfile=/scratch/kocevski/784439/cmap_HighResolution_507340801_507600001_4FGL_J1125.9+2005_daily_bin1034.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/784439/ft1_filtered_4FGL_J1125.9+2005_daily_bin1034.fits evtable="EVENTS" scfile=/scratch/kocevski/784439/ft2_4FGL_J1125.9+2005_daily_bin1034.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/784439/Model_4FGL_J1125.9+2005_daily_bin1034.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/784439/ft1_filtered_4FGL_J1125.9+2005_daily_bin1034.fits.....................!
real 54.10
user 52.12
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16486E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18498       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8683       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.235       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.315       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12493E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6061       1.0000         .10000E-03   10000.    
    11 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.244       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .33892E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1511       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.547       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2616       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1866       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0223       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99235       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=   5560.276     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2996 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3680        .35854E-05** at limit **
   2  Prefactor     .18675        1.8960        .89473E-06    .20286E-03
   3  Prefactor     5.8706        7.3000       -.14257E-05    .25673E-03
   4  Prefactor     .10000E-03    6.4035       -.60745E-08** at limit **
   5  Prefactor     18.238        9.7637        .60136E-07    .43420E-05
   6  Prefactor     16.312        13.027       -.79904E-08   -.15053E-04
   7  Prefactor     .10000E-03    22.964        .95864E-08** at limit **
   8  norm          .10000E-03    .51257        .74835E-07** at limit **
   9  Prefactor     .10000E-03    1.7594       -.25598E-07** at limit **
  10  Prefactor     1.6066        5.9905       -.27935E-06    .96620E-04
  11  norm          .10000E-03    11.072       -.39356E-06** at limit **
  12  norm          .10000E-03    4.1324        .71860E-07** at limit **
  13  Prefactor     .10000E-03    9.7479       -.97938E-07** at limit **
  14  Prefactor     .10000E-03    14.409        .22496E-06** at limit **
  15  Prefactor     .10000E-03    33.324       -.17503E-06** at limit **
  16  Prefactor     .10000E-03    6.8221        .19511E-06** at limit **
  17  Prefactor     29.225        20.804       -.14308E-05   -.33823E-03
  18  Prefactor     .10001E-03    51.028       -.13856E-04** at limit **
  19  Prefactor     .10000E-03    .94801       -.57023E-06** at limit **
  20  norm          1.1524        1.3909        .33281E-06    .10452E-02
  21  Prefactor     19.548        18.238       -.82426E-07    .53685E-05
  22  Prefactor     3.2609        4.5927       -.31989E-06   -.14232E-03
  23  Prefactor     4.1865        2.8843        .51006E-08   -.38103E-04
  24  Normalizat    1.0221        .18447       -.13624E-05   -.26929E-03
  25  Prefactor     .99256        .19218        .15646E-05   -.68315E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.186746
  Prefactor  = 5.8706
  Prefactor  = 0.0001
  Prefactor  = 18.2384
  Prefactor  = 16.3118
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.60656
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 29.2247
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 1.15236
  Prefactor  = 19.5478
  Prefactor  = 3.26087
  Prefactor  = 4.18652
  Normalizat = 1.02207
  Prefactor  = 0.992559
 **********
 **   18 **HESSE 
 **********

 FCN=   5560.276     FROM HESSE     STATUS=OK           433 CALLS     3429 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.743        .31478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18675        3.8939        .18559E-02   -1.5622    
   3  Prefactor     5.8706        7.4138        .82889E-03   -1.5223    
   4  Prefactor     .10000E-03    6.4709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.238        9.7289        .93793E-04   -1.4854    
   6  Prefactor     16.312        12.655        .99157E-04   -1.4900    
   7  Prefactor     .10000E-03    23.548        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .74640        .10334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4051        .18549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6066        5.9677        .33437E-03   -1.5454    
  11  norm          .10000E-03    11.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.1662        .14804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.8792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.8666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.225        21.009        .74087E-04   -1.4626    
  18  Prefactor     .10001E-03    57.751        .37086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5620        .12911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1524        1.3757        .93190E-04   -1.5493    
  21  Prefactor     19.548        18.231        .90591E-04   -1.4823    
  22  Prefactor     3.2609        4.5290        .17177E-03   -1.5347    
  23  Prefactor     4.1865        2.8722        .98614E-04   -1.5299    
  24  Normalizat    1.0221        .21486        .23477E-03   -.92295    
  25  Prefactor     .99256        .22121        .25813E-03   -.92978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4239e-09
Minuit parameter uncertainties:
  1  4.43554e-05
  2  1.70515
  3  7.41498
  4  5.73352e-05
  5  9.72972
  6  12.657
  7  0.000279009
  8  1.31146e-05
  9  4.17973e-06
  10  5.96987
  11  0.000190598
  12  1.19161e-05
  13  5.58952e-05
  14  8.87566e-05
  15  0.000474921
  16  7.94867e-05
  17  21.0143
  18  0.00133847
  19  3.5427e-05
  20  1.37575
  21  18.236
  22  4.52951
  23  2.87226
  24  0.215044
  25  0.221412
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  5.590e-05  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.926e-01  2.214e-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.022e+00  2.150e-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.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/784439/likelihoodResults_507340801_507600001_4FGL_J1125.9+2005_daily_bin1034.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) = 5560.27638919
delta logL = -0.000482453927361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5560.27590694
delta logL = -2.01954208023e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2576       1.0000          .0000       10.000    
     3 'Normalizat'    1.0220       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99270       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=   5560.276     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    228.75        .90712E-02** at limit **
   2  Index         2.2734        8.2805        .50000       -.13566E-04
   3  Normalizat    1.0221        .21509E-01    .43080E-01    .33749E-04
   4  Prefactor     .99256        .23452E-01    .46176E-01    .28500E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.27341
  Normalizat = 1.02207
  Prefactor  = 0.992556
 **********
 **   18 **HESSE 
 **********

 FCN=   5560.276     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2734        5.9934        .50000       -.57677    
   3  Normalizat    1.0221        .19970        .23477E-03   -.92295    
   4  Prefactor     .99256        .21774        .25813E-03   -.92978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77184e-10
Minuit parameter uncertainties:
  1  4.78723e-05
  2  5.59188
  3  0.19985
  4  0.217931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784439': 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): 0
logL (Free Index) = 5560.27590664
delta logL = 1.02681042335e-07

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  4.787e-05  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.273e+00  5.592e+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:  9.926e-01  2.179e-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.022e+00  1.999e-01  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/784439/cmap_HighResolution_507340801_507600001_4FGL_J1125.9+2005_daily_bin1034.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.36e-08', time_completed='2021-09-03 20:51:14.375805', job_id='784439', GAL2='0.99', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630727474.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1034' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:51:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 784439: <4FGL_J1125.9+2005_daily_bin1034> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1034> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:36:09 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:36:45 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:36:45 2021
Terminated at Fri Sep  3 20:51:15 2021
Results reported at Fri Sep  3 20:51:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1034 171.491 20.0912 507340801 507600001 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 :                                   729.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            906 sec.

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

