/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 15 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 = 7439
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1124.9+4934_daily_bin1027
RA = 171.243, Dec = 49.5674
tmin = 505526401, tmax = 505785601
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='763859', job_status='RUN', time_executed='2021-09-03 19:33:17.475965', time_epoch_executed='1630722797.48' WHERE source_name='4FGL J1124.9+4934' and cadence='daily' and bin_id='1027'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763859

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763859/ft1_4FGL_J1124.9+4934_daily_bin1027.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763859/ft2_4FGL_J1124.9+4934_daily_bin1027.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763859/ft1_4FGL_J1124.9+4934_daily_bin1027.fits outfile=/scratch/kocevski/763859/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin1027.fits ra=171.243 dec=49.5674 rad=12.0 tmin=505526401.0 tmax=505785601.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.60
user 3.31
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763859/ft1_filtered_4FGL_J1124.9+4934_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/763859/ft2_4FGL_J1124.9+4934_daily_bin1027.fits sctable="SC_DATA" expcube=/scratch/kocevski/763859/ltcube_505526401_505785601_4FGL_J1124.9+4934_daily_bin1027.fits outfile=/scratch/kocevski/763859/expmap_505526401_505785601_4FGL_J1124.9+4934_daily_bin1027.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/763859/ltcube_505526401_505785601_4FGL_J1124.9+4934_daily_bin1027.fits
.....................!
real 191.19
user 186.30
sys 4.39

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/763859/ft1_filtered_4FGL_J1124.9+4934_daily_bin1027.fits scfile=/scratch/kocevski/763859/ft2_4FGL_J1124.9+4934_daily_bin1027.fits outfile=/scratch/kocevski/763859/cmap_505526401_505785601_4FGL_J1124.9+4934_daily_bin1027.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763859/ft1_filtered_4FGL_J1124.9+4934_daily_bin1027.fits scfile=/scratch/kocevski/763859/ft2_4FGL_J1124.9+4934_daily_bin1027.fits outfile=/scratch/kocevski/763859/cmap_HighResolution_505526401_505785601_4FGL_J1124.9+4934_daily_bin1027.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/763859/ft1_filtered_4FGL_J1124.9+4934_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/763859/ft2_4FGL_J1124.9+4934_daily_bin1027.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763859/Model_4FGL_J1124.9+4934_daily_bin1027.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/763859/ft1_filtered_4FGL_J1124.9+4934_daily_bin1027.fits.....................!
real 53.14
user 51.73
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1674       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8718       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32322E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    100.22       1.0000         .10000E-03   10000.    
     6 'norm      '    3.5130       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.5754       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1883       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .62498       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4635       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.287       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6783       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9170       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.4159       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.691       1.0000         .10000E-03   10000.    
    22 'norm      '    6.4942       1.0000         .10000E-03   10000.    
    23 'norm      '    12.198       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .85019       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77487       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=   6135.397     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3094 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1672        2.8690       -.42817E-07    .97107E-04
   2  norm          1.8721        1.5590       -.15357E-06   -.37485E-03
   3  Prefactor     .10000E-03    224.63       -.25025E-04** at limit **
   4  Prefactor     .10000E-03    118.84        .22268E-04** at limit **
   5  Prefactor     100.22        83.621        .48878E-05    .26206E-05
   6  norm          3.5124        1.8976       -.48312E-07   -.14273E-03
   7  Prefactor     .10000E-03    65.079       -.14013E-05** at limit **
   8  norm          2.5755        .57127       -.24133E-07    .16034E-03
   9  Prefactor     .10000E-03    8.1594       -.48820E-06** at limit **
  10  Prefactor     .10000E-03    65.799       -.50403E-06** at limit **
  11  norm          1.0975        232.58       -.99003E-04    .10570E-04
  12  Prefactor     .63187        3.0828        .98914E-06   -.77438E-03
  13  Prefactor     .10000E-03    26.335       -.75208E-05** at limit **
  14  norm          2.4639        2.5864       -.31311E-07   -.43006E-03
  15  Prefactor     14.284        42.426       -.40343E-05   -.54312E-05
  16  norm          2.6791        1.3196        .90991E-07   -.25892E-03
  17  norm          .10000E-03    2.6512       -.13192E-06** at limit **
  18  Prefactor     1.9170        2.6562       -.11757E-06   -.41902E-03
  19  Prefactor     .10000E-03    21.705       -.51839E-06** at limit **
  20  norm          7.4174        5.6965       -.29944E-05   -.26684E-03
  21  Prefactor     27.701        21.983       -.12142E-05   -.19352E-04
  22  norm          6.4950        2.3650        .11386E-07   -.21900E-03
  23  norm          12.200        6.4177        .14075E-05   -.21139E-03
  24  Prefactor     .10000E-03    24.884        .71872E-05** at limit **
  25  Normalizat    .85005        .15200       -.61176E-06    .17442E-03
  26  Prefactor     .77475        .18326        .26855E-05    .47995E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.1672
  norm       = 1.87208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 100.223
  norm       = 3.51237
  Prefactor  = 0.0001
  norm       = 2.57546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.09754
  Prefactor  = 0.63187
  Prefactor  = 0.0001
  norm       = 2.46389
  Prefactor  = 14.284
  norm       = 2.67905
  norm       = 0.0001
  Prefactor  = 1.917
  Prefactor  = 0.0001
  norm       = 7.41743
  Prefactor  = 27.7012
  norm       = 6.49497
  norm       = 12.2001
  Prefactor  = 0.000100001
  Normalizat = 0.850054
  Prefactor  = 0.774753
 **********
 **   18 **HESSE 
 **********

 FCN=   6135.397     FROM HESSE     STATUS=OK           466 CALLS     3560 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1672        2.8709        .88017E-04   -1.5211    
   2  norm          1.8721        1.5490        .86131E-04   -1.5434    
   3  Prefactor     .10000E-03    226.36        .21358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    119.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     100.22        83.763        .40159E-04   -1.3702    
   6  norm          3.5124        1.8965        .76716E-04   -1.5333    
   7  Prefactor     .10000E-03    65.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.5755        .57220        .27048E-04   -1.5387    
   9  Prefactor     .10000E-03    8.1764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    65.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0975        243.48        .41820E-02   -1.5498    
  12  Prefactor     .63187        10.170        .25267E-02   -1.5549    
  13  Prefactor     .10000E-03    26.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4639        2.5669        .12170E-03   -1.5394    
  15  Prefactor     14.284        42.788        .10597E-03   -1.4952    
  16  norm          2.6791        1.3281        .52886E-04   -1.5381    
  17  norm          .10000E-03    2.6522        .12456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.9170        2.6080        .13086E-03   -1.5431    
  19  Prefactor     .10000E-03    21.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.4174        5.7110        .14728E-03   -1.5163    
  21  Prefactor     27.701        21.746        .76132E-04   -1.4655    
  22  norm          6.4950        2.3675        .69189E-04   -1.5198    
  23  norm          12.200        6.3970        .11470E-03   -1.5009    
  24  Prefactor     .10000E-03    25.592        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .85005        .17962        .22212E-03   -.98238    
  26  Prefactor     .77475        .21484        .29380E-03   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56764e-09
Minuit parameter uncertainties:
  1  2.87101
  2  1.54908
  3  4.72869e-05
  4  0.000104336
  5  83.862
  6  1.89654
  7  2.93173e-05
  8  0.572198
  9  2.38941e-06
  10  4.33978e-05
  11  32.8287
  12  5.07048
  13  0.000122117
  14  2.56702
  15  42.8801
  16  1.32816
  17  3.02968e-07
  18  2.6082
  19  1.27208e-06
  20  5.71138
  21  21.752
  22  2.36752
  23  6.39732
  24  0.000348666
  25  0.179745
  26  0.215067
Done.

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

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.098e+00  3.283e+01  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:  7.748e-01  2.151e-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:  8.501e-01  1.797e-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: 2.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.13e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/763859/likelihoodResults_505526401_505785601_4FGL_J1124.9+4934_daily_bin1027.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) = 6135.30551153
delta logL = 0.0913384178011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6135.23376669
delta logL = 0.163083249515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6232       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6081       1.0000          .0000       5.0000    
     3 'Normalizat'    .84882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76497       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6135.234     FROM MIGRAD    STATUS=FAILED        97 CALLS      280 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6350        33.304        .15593E-03   -.51256E-04
   2  alpha         2.6081        1.9020        .17679E-01    .19633E-03
   3  Normalizat    .84892        .16677        .22233E-03   -.18562E-03
   4  Prefactor     .76491        .21135        .29555E-03    .17906E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6135.234     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      352 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6350        33.304        .47238E-03   -1.5193    
   2  alpha         2.6081        1.9020        .29492E-02    .43273E-01
   3  Normalizat    .84892        .16677        .25081E-03   -.98279    
   4  Prefactor     .76491        .21135        .33690E-03   -1.0103    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6135.234     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      380 TOTAL
                     EDM=   .36E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6350        21.651        .62371E-05   -.14582E-06
   2  alpha         2.6081        1.4732        .35358E-02   -.97745E-06
   3  Normalizat    .84892        .16568        .88931E-05   -.51135E-06
   4  Prefactor     .76491        .21050        .11822E-04    .19233E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 6.63499
  alpha      = 2.60815
  Normalizat = 0.848923
  Prefactor  = 0.764908
 **********
 **   18 **HESSE 
 **********

 FCN=   6135.234     FROM HESSE     STATUS=OK            23 CALLS      403 TOTAL
                     EDM=   .60E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6350        20.701        .62371E-05   -1.5193    
   2  alpha         2.6081        1.4162        .14143E-03    .43273E-01
   3  Normalizat    .84892        .16574        .17786E-05   -.98279    
   4  Prefactor     .76491        .21065        .23644E-05   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02088e-13
Minuit parameter uncertainties:
  1  20.7229
  2  1.50582
  3  0.165838
  4  0.210867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763859': 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) = 6135.23376581
delta logL = 0.163084138169

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  6.635e+00  2.072e+01  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  2.608e+00  1.506e+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:  7.649e-01  2.109e-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:  8.489e-01  1.658e-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/763859/cmap_HighResolution_505526401_505785601_4FGL_J1124.9+4934_daily_bin1027.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-05', job_status='DONE', photon_flux_upper_limit='2.13e-08', time_completed='2021-09-03 19:47:45.453447', job_id='763859', GAL2='0.76', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630723665.45', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.63e-01', ts2='0.33', photon_index_error='0.00', photon_index='1.52' WHERE bin_id='1027' AND source_name='4FGL J1124.9+4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 19:47:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 763859: <4FGL_J1124.9+4934_daily_bin1027> in cluster <slac> Done

Job <4FGL_J1124.9+4934_daily_bin1027> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 19:31:45 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 19:32:43 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:32:43 2021
Terminated at Fri Sep  3 19:47:46 2021
Results reported at Fri Sep  3 19:47:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_daily_bin1027 171.243 49.5674 505526401 505785601 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 :                                   862.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            961 sec.

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

