/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 153 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 = 7393
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1124.9+4934_daily_bin75
RA = 171.243, Dec = 49.5674
tmin = 258768001, tmax = 259027201
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='752927', job_status='RUN', time_executed='2021-09-03 18:59:00.825990', time_epoch_executed='1630720740.83' WHERE source_name='4FGL J1124.9+4934' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/752927

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/752927/ft1_4FGL_J1124.9+4934_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/752927/ft2_4FGL_J1124.9+4934_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/752927/ft1_4FGL_J1124.9+4934_daily_bin75.fits outfile=/scratch/kocevski/752927/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin75.fits ra=171.243 dec=49.5674 rad=12.0 tmin=258768001.0 tmax=259027201.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 1.14
user 0.97
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/752927/ft2_4FGL_J1124.9+4934_daily_bin75.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/752927/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/752927/ft1_filtered_4FGL_J1124.9+4934_daily_bin75.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/752927/ft1_filtered_4FGL_J1124.9+4934_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/752927/ft2_4FGL_J1124.9+4934_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/752927/ltcube_258768001_259027201_4FGL_J1124.9+4934_daily_bin75.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/752927/ft2_4FGL_J1124.9+4934_daily_bin75.fits
.....................!
real 12.01
user 11.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/752927/ft1_filtered_4FGL_J1124.9+4934_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/752927/ft2_4FGL_J1124.9+4934_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/752927/ltcube_258768001_259027201_4FGL_J1124.9+4934_daily_bin75.fits outfile=/scratch/kocevski/752927/expmap_258768001_259027201_4FGL_J1124.9+4934_daily_bin75.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/752927/ltcube_258768001_259027201_4FGL_J1124.9+4934_daily_bin75.fits
.....................!
real 191.47
user 186.05
sys 4.82

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/752927/ft1_filtered_4FGL_J1124.9+4934_daily_bin75.fits scfile=/scratch/kocevski/752927/ft2_4FGL_J1124.9+4934_daily_bin75.fits outfile=/scratch/kocevski/752927/cmap_258768001_259027201_4FGL_J1124.9+4934_daily_bin75.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/752927/ft1_filtered_4FGL_J1124.9+4934_daily_bin75.fits scfile=/scratch/kocevski/752927/ft2_4FGL_J1124.9+4934_daily_bin75.fits outfile=/scratch/kocevski/752927/cmap_HighResolution_258768001_259027201_4FGL_J1124.9+4934_daily_bin75.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.56
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/752927/ft1_filtered_4FGL_J1124.9+4934_daily_bin75.fits', '/scratch/kocevski/752927/ft2_4FGL_J1124.9+4934_daily_bin75.fits', expMap='/scratch/kocevski/752927/expmap_258768001_259027201_4FGL_J1124.9+4934_daily_bin75.fits', expCube='/scratch/kocevski/752927/ltcube_258768001_259027201_4FGL_J1124.9+4934_daily_bin75.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/752927/Model_4FGL_J1124.9+4934_daily_bin75.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/752927/ft1_filtered_4FGL_J1124.9+4934_daily_bin75.fits
Spacecraft file(s): /scratch/kocevski/752927/ft2_4FGL_J1124.9+4934_daily_bin75.fits
Exposure map: /scratch/kocevski/752927/expmap_258768001_259027201_4FGL_J1124.9+4934_daily_bin75.fits
Exposure cube: /scratch/kocevski/752927/ltcube_258768001_259027201_4FGL_J1124.9+4934_daily_bin75.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/752927/Model_4FGL_J1124.9+4934_daily_bin75.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) = 3285.17532206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9323       1.0000         .10000E-03   10000.    
     2 'norm      '    3.8170       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13355E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13134E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.6860       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11180E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .66054       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12691E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1151       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3951       1.0000         .10000E-03   10000.    
    14 'norm      '    .10312E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.315       1.0000         .10000E-03   10000.    
    16 'norm      '    .28012       1.0000         .10000E-03   10000.    
    17 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13252E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    230.99       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.3885       1.0000         .10000E-03   10000.    
    23 'norm      '    1.1517       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .75303       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.5382       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=   3285.151     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3112 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9319        3.9271        .38473E-07    .69398E-05
   2  norm          3.8154        3.0865        .32894E-06   -.15947E-03
   3  Prefactor     .10000E-03    33.393        .65697E-06** at limit **
   4  Prefactor     .10000E-03    74.120        .32055E-05** at limit **
   5  Prefactor     .10000E-03    756.23       -.14781E-04** at limit **
   6  norm          9.6861        4.4918       -.56442E-07    .33148E-05
   7  Prefactor     .10000E-03    23.298        .38005E-07** at limit **
   8  norm          .66059        .56105        .26437E-07    .37025E-04
   9  Prefactor     .10000E-03    26.597       -.83721E-06** at limit **
  10  Prefactor     .10000E-03    66.461       -.33289E-05** at limit **
  11  norm          .10000E-03    36.843       -.78243E-07** at limit **
  12  Prefactor     1.1093        25.869        .43539E-05   -.19761E-04
  13  Prefactor     6.3996        117.27       -.82947E-05   -.84762E-05
  14  norm          .10000E-03    2.3884        .66506E-07** at limit **
  15  Prefactor     16.288        30.840        .16865E-05    .12454E-04
  16  norm          .28014        1.1434        .11313E-05   -.12983E-03
  17  norm          .10000E-03    30.785        .73446E-06** at limit **
  18  Prefactor     .10000E-03    3.0439        .31854E-06** at limit **
  19  Prefactor     230.99        111.09       -.14354E-05   -.58452E-04
  20  norm          .10000E-03    4.9748       -.52853E-07** at limit **
  21  Prefactor     .10000E-03    21.355        .32058E-06** at limit **
  22  norm          3.3886        2.7510        .23537E-07   -.41786E-04
  23  norm          1.1512        9.1379        .19965E-05   -.57927E-04
  24  Prefactor     .10000E-03    27.529       -.67986E-06** at limit **
  25  Normalizat    .75309        .24378       -.96120E-06   -.85837E-04
  26  Prefactor     1.5384        .31045       -.14689E-05   -.42864E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.9319
  norm       = 3.81545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.68611
  Prefactor  = 0.0001
  norm       = 0.660594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.10934
  Prefactor  = 6.39962
  norm       = 0.0001
  Prefactor  = 16.2876
  norm       = 0.28014
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 230.986
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.38859
  norm       = 1.15119
  Prefactor  = 0.0001
  Normalizat = 0.75309
  Prefactor  = 1.53837
 **********
 **   18 **HESSE 
 **********

 FCN=   3285.151     FROM HESSE     STATUS=OK           456 CALLS     3568 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9319        3.9316        .11046E-03   -1.5311    
   2  norm          3.8154        3.0822        .43907E-03   -1.5317    
   3  Prefactor     .10000E-03    33.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    74.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    765.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.6861        4.4912        .80091E-04   -1.5085    
   7  Prefactor     .10000E-03    23.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .66059        .55401        .38195E-04   -1.5545    
   9  Prefactor     .10000E-03    26.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    66.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    36.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1093        26.139        .44611E-03   -1.5497    
  13  Prefactor     6.3996        112.72        .15872E-03   -1.5202    
  14  norm          .10000E-03    10.019        .17243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.288        30.815        .99157E-04   -1.4901    
  16  norm          .28014        1.0967        .11126E-03   -1.5602    
  17  norm          .10000E-03    31.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.171        .19123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     230.99        109.17        .26628E-04   -1.2656    
  20  norm          .10000E-03    4.9934        .12480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.3886        2.7531        .82354E-04   -1.5340    
  23  norm          1.1512        9.1285        .33338E-03   -1.5493    
  24  Prefactor     .10000E-03    27.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .75309        .29391        .27942E-03   -1.0183    
  26  Prefactor     1.5384        .37531        .26676E-03   -.76471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25122e-11
Minuit parameter uncertainties:
  1  3.9319
  2  3.0823
  3  3.77004e-05
  4  0.000259617
  5  0.000805281
  6  4.49135
  7  7.35963e-06
  8  0.554016
  9  1.86071e-05
  10  0.000231641
  11  4.63254e-07
  12  10.7746
  13  53.8344
  14  3.79867e-05
  15  30.8449
  16  1.09681
  17  3.31652e-05
  18  3.06721e-05
  19  109.27
  20  1.58414e-05
  21  1.34096e-05
  22  2.75324
  23  6.4845
  24  5.27964e-05
  25  0.294528
  26  0.375995
Done.

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

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.000e-04  4.633e-07  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.538e+00  3.760e-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:  7.531e-01  2.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.243 49.567
Photon Flux Upper Limit: 3.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/752927/likelihoodResults_258768001_259027201_4FGL_J1124.9+4934_daily_bin75.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) = 3285.15088681
delta logL = -0.000121117757317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3285.15076571
delta logL = -1.97283043235e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5145       1.0000          .0000       5.0000    
     3 'Normalizat'    .75313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5383       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=   3285.151     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      201 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    36.790        .90712E-02** at limit **
   2  alpha         1.5223        3.2446        .46175       -.92801E-06
   3  Normalizat    .75309        .23289        .63164E-01    .11478E-04
   4  Prefactor     1.5384        .30609        .60326E-01    .46538E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.52234
  Normalizat = 0.753092
  Prefactor  = 1.53837
 **********
 **   18 **HESSE 
 **********

 FCN=   3285.151     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .88E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    36.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5223        3.2434        .50000       -.40179    
   3  Normalizat    .75309        .28079        .27942E-03   -1.0183    
   4  Prefactor     1.5384        .36944        .26676E-03   -.76471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.81457e-13
Minuit parameter uncertainties:
  1  8.36941e-06
  2  2.30178
  3  0.281326
  4  0.370092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/752927': 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) = 3285.15076569
delta logL = 1.28784449771e-09

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.000e-04  8.369e-06  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  1.522e+00  2.302e+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.538e+00  3.701e-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:  7.531e-01  2.813e-01  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/752927/cmap_HighResolution_258768001_259027201_4FGL_J1124.9+4934_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.77e-05', job_status='DONE', photon_flux_upper_limit='3.39e-08', time_completed='2021-09-03 19:08:49.686635', job_id='752927', GAL2='1.54', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630721329.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.54', dlogl='1.29e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.52' WHERE bin_id='75' AND source_name='4FGL J1124.9+4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 19:08:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 752927: <4FGL_J1124.9+4934_daily_bin75> in cluster <slac> Done

Job <4FGL_J1124.9+4934_daily_bin75> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 18:56:16 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 18:56:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 18:56:18 2021
Terminated at Fri Sep  3 19:08:50 2021
Results reported at Fri Sep  3 19:08:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_daily_bin75 171.243 49.5674 258768001 259027201 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 :                                   589.62 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             241.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            754 sec.

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

