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


Performing analysis on: 4FGL_J1124.9+4934_daily_bin1402
RA = 171.243, Dec = 49.5674
tmin = 602726401, tmax = 602985601
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='768336', job_status='RUN', time_executed='2021-09-03 19:48:51.895397', time_epoch_executed='1630723731.9' WHERE source_name='4FGL J1124.9+4934' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/768336

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/768336/ft1_4FGL_J1124.9+4934_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/768336/ft2_4FGL_J1124.9+4934_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/768336/ft1_4FGL_J1124.9+4934_daily_bin1402.fits outfile=/scratch/kocevski/768336/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin1402.fits ra=171.243 dec=49.5674 rad=12.0 tmin=602726401.0 tmax=602985601.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.15
user 2.89
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/768336/ft2_4FGL_J1124.9+4934_daily_bin1402.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/768336/ft2_4FGL_J1124.9+4934_daily_bin1402.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/768336/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin1402.fits evtable="EVENTS" outfile="/scratch/kocevski/768336/ft1_filtered_4FGL_J1124.9+4934_daily_bin1402.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.65
user 0.35
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/768336/ft1_filtered_4FGL_J1124.9+4934_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/768336/ft2_4FGL_J1124.9+4934_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/768336/ltcube_602726401_602985601_4FGL_J1124.9+4934_daily_bin1402.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/768336/ft2_4FGL_J1124.9+4934_daily_bin1402.fits
.....................!
real 19.45
user 18.95
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/768336/ft1_filtered_4FGL_J1124.9+4934_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/768336/ft2_4FGL_J1124.9+4934_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/768336/ltcube_602726401_602985601_4FGL_J1124.9+4934_daily_bin1402.fits outfile=/scratch/kocevski/768336/expmap_602726401_602985601_4FGL_J1124.9+4934_daily_bin1402.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/768336/ltcube_602726401_602985601_4FGL_J1124.9+4934_daily_bin1402.fits
.....................!
real 193.49
user 187.75
sys 4.68

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 222 point sources and 0 extended sources

Setting source of interest to:
4FGL J1124.9+4934 @ 171.243 49.5674

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/768336/ft1_filtered_4FGL_J1124.9+4934_daily_bin1402.fits scfile=/scratch/kocevski/768336/ft2_4FGL_J1124.9+4934_daily_bin1402.fits outfile=/scratch/kocevski/768336/cmap_602726401_602985601_4FGL_J1124.9+4934_daily_bin1402.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.243 yref=49.5674 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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/768336/ft1_filtered_4FGL_J1124.9+4934_daily_bin1402.fits scfile=/scratch/kocevski/768336/ft2_4FGL_J1124.9+4934_daily_bin1402.fits outfile=/scratch/kocevski/768336/cmap_HighResolution_602726401_602985601_4FGL_J1124.9+4934_daily_bin1402.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.243 yref=49.5674 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.61
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/768336/ft1_filtered_4FGL_J1124.9+4934_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/768336/ft2_4FGL_J1124.9+4934_daily_bin1402.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/768336/Model_4FGL_J1124.9+4934_daily_bin1402.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/768336/ft1_filtered_4FGL_J1124.9+4934_daily_bin1402.fits.....................!
real 20.00
user 18.62
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/768336/ft1_filtered_4FGL_J1124.9+4934_daily_bin1402.fits', '/scratch/kocevski/768336/ft2_4FGL_J1124.9+4934_daily_bin1402.fits', expMap='/scratch/kocevski/768336/expmap_602726401_602985601_4FGL_J1124.9+4934_daily_bin1402.fits', expCube='/scratch/kocevski/768336/ltcube_602726401_602985601_4FGL_J1124.9+4934_daily_bin1402.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/768336/Model_4FGL_J1124.9+4934_daily_bin1402.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1124.9+4934'

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  6.417e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  1.519e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
354         beta:  1.498e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
355           Eb:  2.941e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/768336/ft1_filtered_4FGL_J1124.9+4934_daily_bin1402.fits
Spacecraft file(s): /scratch/kocevski/768336/ft2_4FGL_J1124.9+4934_daily_bin1402.fits
Exposure map: /scratch/kocevski/768336/expmap_602726401_602985601_4FGL_J1124.9+4934_daily_bin1402.fits
Exposure cube: /scratch/kocevski/768336/ltcube_602726401_602985601_4FGL_J1124.9+4934_daily_bin1402.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/768336/Model_4FGL_J1124.9+4934_daily_bin1402.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) = 950.877497024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     4 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2976.6       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24460E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5881       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .75059E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    573.09       1.0000         .10000E-03   10000.    
    11 'norm      '    .10712E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11948E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.143       1.0000         .10000E-03   10000.    
    15 'Prefactor '    112.41       1.0000         .10000E-03   10000.    
    16 'norm      '    .10375E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10327E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.824       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10958E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.3455       1.0000         .10000E-03   10000.    
    21 'Prefactor '    117.64       1.0000         .10000E-03   10000.    
    22 'norm      '    .10284E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10285E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    97.913       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0456       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   950.3171     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     4157 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        6910.2        .29191E-05** at limit **
   2  norm         10000.0        663.62        .77272E-07** at limit **
   3  Prefactor    10000.0        7603.0       -.28455E-05** at limit **
   4  Prefactor    10000.0        9647.9        .27186E-05** at limit **
   5  Prefactor     .10000E-03    1227.7       -.34462E-06** at limit **
   6  norm          2975.5        2167.2       -.11689E-04    .23681E-04
   7  Prefactor     .10001E-03    6396.7       -.42707E-06** at limit **
   8  norm          1.5894        3.3781       -.15473E-06    .80694E-04
   9  Prefactor     .10004E-03    9026.5       -.15476E-04** at limit **
  10  Prefactor     578.82        1730.8       -.59076E-05    .94717E-05
  11  norm          .10000E-03    310.80        .16459E-05** at limit **
  12  Prefactor     .10000E-03    23.786       -.20949E-06** at limit **
  13  Prefactor     .10000E-03    47.179       -.17705E-06** at limit **
  14  norm          11.137        12.826        .10057E-05    .33505E-03
  15  Prefactor     112.24        150.00        .16413E-04    .19073E-03
  16  norm          .10013E-03    4.5116       -.40804E-05** at limit **
  17  norm          .10000E-03    82.250       -.37825E-05** at limit **
  18  Prefactor     10.832        12.027       -.32587E-07    .10985E-03
  19  Prefactor     .10000E-03    164.50       -.21110E-05** at limit **
  20  norm          1.3440        4.9254       -.11657E-06    .38652E-04
  21  Prefactor     117.68        91.190       -.18145E-07    .85666E-04
  22  norm          .10000E-03    1.2936       -.45638E-06** at limit **
  23  norm          .10000E-03    9.1005        .57443E-09** at limit **
  24  Prefactor     97.868        46.773       -.48242E-06    .97283E-04
  25  Normalizat    .10000E-01    .92138E-01   -.59868E-05** at limit **
  26  Prefactor     1.0457        .30815        .49699E-05    .23383E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100002
  norm       = 2975.46
  Prefactor  = 0.00010001
  norm       = 1.58936
  Prefactor  = 0.000100035
  Prefactor  = 578.822
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.1367
  Prefactor  = 112.244
  norm       = 0.000100133
  norm       = 0.000100001
  Prefactor  = 10.8323
  Prefactor  = 0.0001
  norm       = 1.34395
  Prefactor  = 117.681
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 97.8679
  Normalizat = 0.01
  Prefactor  = 1.04574
 **********
 **   18 **HESSE 
 **********

 FCN=   950.3171     FROM HESSE     STATUS=OK           440 CALLS     4597 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        6909.3        .18259E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        663.61        .20766E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        7605.1        .21449E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        9647.8        .18194E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1227.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2975.5        2159.0        .43742E-04   -.41688    
   7  Prefactor     .10001E-03    6396.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5894        3.3361        .80037E-04   -1.5456    
   9  Prefactor     .10004E-03    9025.8        .18783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     578.82        1724.6        .86047E-04   -1.0849    
  11  norm          .10000E-03    310.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.787        .14691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    47.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.137        12.848        .10962E-03   -1.5040    
  15  Prefactor     112.24        152.51        .18971E-03   -1.3585    
  16  norm          .10013E-03    16.172        .10956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    84.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.832        12.030        .90320E-04   -1.5050    
  19  Prefactor     .10000E-03    164.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.3440        4.8608        .12597E-03   -1.5476    
  21  Prefactor     117.68        91.284        .37098E-04   -1.3534    
  22  norm          .10000E-03    1.2995        .34163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    9.1400        .90744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     97.868        46.904        .40624E-04   -1.3726    
  25  Normalizat    .10000E-01    .96313E-01    .57288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.0457        .31231        .25256E-03   -.91220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.93358e-09
Minuit parameter uncertainties:
  1  0.0190837
  2  0.000286737
  3  0.00746819
  4  0.0383043
  5  0.00356228
  6  2248.55
  7  0.0109125
  8  3.33651
  9  0.0417058
  10  1940.34
  11  0.000286378
  12  2.67063e-05
  13  3.00195e-05
  14  12.8515
  15  153.049
  16  0.00293708
  17  0.000553736
  18  12.0328
  19  0.000236019
  20  4.86223
  21  91.3933
  22  1.20031e-05
  23  1.70211e-05
  24  46.9214
  25  1.00391e-06
  26  0.312855
Done.

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

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.000e-04  2.864e-04  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  1.519e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
354         beta:  1.498e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
355           Eb:  2.941e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  1.046e+00  3.129e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.000e-02  1.004e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.243 49.567
Photon Flux Upper Limit: 2.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.81e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/768336/likelihoodResults_602726401_602985601_4FGL_J1124.9+4934_daily_bin1402.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): 0
logL (Free Index) = 950.31707784
delta logL = -1.52903138542e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 950.317077728
delta logL = -1.51777153405e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96268E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5192       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0457       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   950.3171     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      201 TOTAL
                     EDM=   .75E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    278.89        .90721E-02** at limit **
   2  alpha         1.5319        3.2477        .46114       -.17850E-06
   3  Normalizat    .10000E-01    .91102E-01    .13375    ** at limit **
   4  Prefactor     1.0457        .26143        .40166E-01   -.62705E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.53189
  Normalizat = 0.01
  Prefactor  = 1.04574
 **********
 **   18 **HESSE 
 **********

 FCN=   950.3171     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .73E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    277.82        .18144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5319        3.2473        .50000       -.39764    
   3  Normalizat    .10000E-01    .92737E-01    .57290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0457        .25539        .25256E-03   -.91220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.29049e-14
Minuit parameter uncertainties:
  1  0.000118486
  2  2.30522
  3  2.09231e-10
  4  0.255686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/768336': 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) = 950.317062549
delta logL = 1.17131548905e-09

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.000e-04  1.185e-04  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  1.532e+00  2.305e+00  0.000e+00  5.000e+00 ( 1.000e+00)
354         beta:  1.498e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
355           Eb:  2.941e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  1.046e+00  2.557e-01  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.000e-02  2.092e-10  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 171.243 49.567

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/768336/cmap_HighResolution_602726401_602985601_4FGL_J1124.9+4934_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.81e-04', job_status='DONE', photon_flux_upper_limit='2.71e-07', time_completed='2021-09-03 19:56:26.036310', job_id='768336', GAL2='1.05', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630724186.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.17e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.52' WHERE bin_id='1402' AND source_name='4FGL J1124.9+4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 19:56:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 768336: <4FGL_J1124.9+4934_daily_bin1402> in cluster <slac> Done

Job <4FGL_J1124.9+4934_daily_bin1402> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep  3 19:46:11 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 19:46:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 19:46:34 2021
Terminated at Fri Sep  3 19:56:26 2021
Results reported at Fri Sep  3 19:56:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_daily_bin1402 171.243 49.5674 602726401 602985601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1124.9+4934 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   436.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             250.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   592 sec.
    Turnaround time :                            615 sec.

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

