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


Performing analysis on: 4FGL_J1124.9+4934_daily_bin1141
RA = 171.243, Dec = 49.5674
tmin = 535075201, tmax = 535334401
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='765530', job_status='RUN', time_executed='2021-09-03 19:37:11.872113', time_epoch_executed='1630723031.87' WHERE source_name='4FGL J1124.9+4934' and cadence='daily' and bin_id='1141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/765530

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/765530/ft1_4FGL_J1124.9+4934_daily_bin1141.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/765530/ft2_4FGL_J1124.9+4934_daily_bin1141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/765530/ft1_4FGL_J1124.9+4934_daily_bin1141.fits outfile=/scratch/kocevski/765530/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin1141.fits ra=171.243 dec=49.5674 rad=12.0 tmin=535075201.0 tmax=535334401.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 4.98
user 4.74
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/765530/ft2_4FGL_J1124.9+4934_daily_bin1141.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/765530/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin1141.fits evtable="EVENTS" outfile="/scratch/kocevski/765530/ft1_filtered_4FGL_J1124.9+4934_daily_bin1141.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/765530/ft1_filtered_4FGL_J1124.9+4934_daily_bin1141.fits" evtable="EVENTS" scfile=/scratch/kocevski/765530/ft2_4FGL_J1124.9+4934_daily_bin1141.fits sctable="SC_DATA" outfile=/scratch/kocevski/765530/ltcube_535075201_535334401_4FGL_J1124.9+4934_daily_bin1141.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/765530/ft2_4FGL_J1124.9+4934_daily_bin1141.fits
.....................!
real 14.85
user 14.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/765530/ft1_filtered_4FGL_J1124.9+4934_daily_bin1141.fits evtable="EVENTS" scfile=/scratch/kocevski/765530/ft2_4FGL_J1124.9+4934_daily_bin1141.fits sctable="SC_DATA" expcube=/scratch/kocevski/765530/ltcube_535075201_535334401_4FGL_J1124.9+4934_daily_bin1141.fits outfile=/scratch/kocevski/765530/expmap_535075201_535334401_4FGL_J1124.9+4934_daily_bin1141.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/765530/ltcube_535075201_535334401_4FGL_J1124.9+4934_daily_bin1141.fits
.....................!
real 191.96
user 186.58
sys 4.61

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/765530/ft1_filtered_4FGL_J1124.9+4934_daily_bin1141.fits scfile=/scratch/kocevski/765530/ft2_4FGL_J1124.9+4934_daily_bin1141.fits outfile=/scratch/kocevski/765530/cmap_535075201_535334401_4FGL_J1124.9+4934_daily_bin1141.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/765530/ft1_filtered_4FGL_J1124.9+4934_daily_bin1141.fits scfile=/scratch/kocevski/765530/ft2_4FGL_J1124.9+4934_daily_bin1141.fits outfile=/scratch/kocevski/765530/cmap_HighResolution_535075201_535334401_4FGL_J1124.9+4934_daily_bin1141.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9594       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4296       1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.734       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    82.700       1.0000         .10000E-03   10000.    
     6 'norm      '    3.3847       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.781       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9036       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.550       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    29.758       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    73.038       1.0000         .10000E-03   10000.    
    14 'norm      '    .57234       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.377       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2730       1.0000         .10000E-03   10000.    
    17 'norm      '    20.535       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    48.562       1.0000         .10000E-03   10000.    
    20 'norm      '    .10867E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .15856E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.5761       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3372       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .56251       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=   7001.692     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3092 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9592        1.7574       -.15916E-06    .27600E-04
   2  norm          1.4295        1.1092       -.19676E-06   -.20382E-04
   3  Prefactor     56.730        69.532       -.47957E-05    .14266E-05
   4  Prefactor     .10000E-03    72.306        .20468E-04** at limit **
   5  Prefactor     82.683        72.627       -.17203E-04   -.15563E-04
   6  norm          3.3821        2.2872       -.10172E-05   -.45469E-03
   7  Prefactor     43.785        45.496        .26951E-05   -.82569E-05
   8  norm          1.9036        .45585        .40084E-08    .72878E-04
   9  Prefactor     11.575        26.149        .92845E-05   -.32339E-04
  10  Prefactor     .10000E-03    23.732       -.35883E-05** at limit **
  11  norm          29.764        29.445        .43115E-05    .46975E-05
  12  Prefactor     .10001E-03    6.6680        .16499E-05** at limit **
  13  Prefactor     73.065        31.367        .10277E-04    .78090E-04
  14  norm          .57325        1.5003       -.15533E-06   -.93763E-03
  15  Prefactor     27.348        36.926       -.33613E-04   -.19424E-03
  16  norm          1.2740        1.3140        .12032E-04    .15670E-03
  17  norm          20.533        13.330        .16050E-04   -.21384E-03
  18  Prefactor     .10000E-03    .90519       -.66774E-07** at limit **
  19  Prefactor     48.402        75.029       -.20159E-03    .26135E-03
  20  norm          .10000E-03    5.7835       -.53650E-05** at limit **
  21  Prefactor     .10000E-03    5.8560        .29087E-05** at limit **
  22  norm          .10002E-03    .80547       -.66173E-06** at limit **
  23  norm          4.5768        4.4106       -.80883E-06    .32327E-05
  24  Prefactor     .10000E-03    8.5372       -.25520E-05** at limit **
  25  Normalizat    1.3364        .15876        .19642E-05   -.90725E-04
  26  Prefactor     .56354        .18765        .62966E-05    .20526E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.9592
  norm       = 1.42954
  Prefactor  = 56.7305
  Prefactor  = 0.0001
  Prefactor  = 82.6825
  norm       = 3.38209
  Prefactor  = 43.7852
  norm       = 1.90362
  Prefactor  = 11.5752
  Prefactor  = 0.0001
  norm       = 29.7644
  Prefactor  = 0.000100005
  Prefactor  = 73.065
  norm       = 0.573252
  Prefactor  = 27.3479
  norm       = 1.27401
  norm       = 20.5326
  Prefactor  = 0.0001
  Prefactor  = 48.4017
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100023
  norm       = 4.57675
  Prefactor  = 0.0001
  Normalizat = 1.33642
  Prefactor  = 0.563543
 **********
 **   18 **HESSE 
 **********

 FCN=   7001.692     FROM HESSE     STATUS=OK           458 CALLS     3550 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9592        1.7578        .10236E-03   -1.5428    
   2  norm          1.4295        1.1090        .36136E-04   -1.5469    
   3  Prefactor     56.730        69.545        .53259E-04   -1.4200    
   4  Prefactor     .10000E-03    72.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     82.683        72.720        .44169E-04   -1.3887    
   6  norm          3.3821        2.2765        .95877E-04   -1.5340    
   7  Prefactor     43.785        45.586        .60590E-04   -1.4384    
   8  norm          1.9036        .45676        .26886E-04   -1.5432    
   9  Prefactor     11.575        26.162        .11788E-03   -1.5027    
  10  Prefactor     .10000E-03    23.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          29.764        29.446        .73446E-04   -1.4616    
  12  Prefactor     .10001E-03    6.8430        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     73.065        31.371        .46977E-04   -1.3996    
  14  norm          .57325        1.3064        .15840E-02   -1.5557    
  15  Prefactor     27.348        36.507        .76565E-04   -1.4662    
  16  norm          1.2740        1.2867        .73917E-04   -1.5482    
  17  norm          20.533        13.312        .88388E-04   -1.4801    
  18  Prefactor     .10000E-03    .92045        .77713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     48.402        75.077        .28771E-03   -1.4315    
  20  norm          .10000E-03    6.0522        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.8669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10002E-03    11.928        .14288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.5768        4.4081        .16728E-03   -1.5280    
  24  Prefactor     .10000E-03    8.5520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3364        .18125        .20439E-03   -.82486    
  26  Prefactor     .56354        .21252        .37108E-03   -1.0914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50835e-09
Minuit parameter uncertainties:
  1  1.75786
  2  1.10902
  3  69.6446
  4  0.000102084
  5  72.7983
  6  2.27651
  7  45.6227
  8  0.456765
  9  26.188
  10  2.23075e-05
  11  29.4609
  12  0.000385631
  13  31.3777
  14  1.30643
  15  36.5368
  16  1.28677
  17  13.3138
  18  6.90462e-06
  19  75.2238
  20  0.000143226
  21  1.24992e-05
  22  0.00104591
  23  4.40843
  24  9.03898e-06
  25  0.181334
  26  0.212822
Done.

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

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  2.976e+01  2.946e+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:  5.635e-01  2.128e-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.336e+00  1.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.91
Ra Dec: 171.243 49.567
Photon Index (Fixed Index): 1.52 +/- 0.00
Photon Flux (Fixed Index): 5.12e-09 +/- 5.07e-09
Energy Flux (Fixed Index): 1.47e-05 +/- 1.46e-05

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) = 7001.47439356
delta logL = 0.217242247252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7001.46010813
delta logL = 0.231527680236

Fit tolerance = 1e-08

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

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

 FCN=   7001.460     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      236 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.551        29.274        .80857E-04   -.11583E-03
   2  alpha         .93599        .81485        .29389E-02    .77792E-05
   3  Normalizat    1.3360        .16995        .20440E-03   -.26088E-03
   4  Prefactor     .56658        .20919        .37014E-03   -.15511E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 24.5512
  alpha      = 0.935986
  Normalizat = 1.33603
  Prefactor  = 0.56658
 **********
 **   18 **HESSE 
 **********

 FCN=   7001.460     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.551        29.345        .16171E-04   -1.4717    
   2  alpha         .93599        .81670        .11756E-03   -.67591    
   3  Normalizat    1.3360        .17004        .40880E-04   -.82497    
   4  Prefactor     .56658        .20930        .14806E-04   -1.0901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25324e-11
Minuit parameter uncertainties:
  1  29.362
  2  0.842671
  3  0.170109
  4  0.209585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/765530': 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) = 7001.46010582
delta logL = 0.231529982407

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  2.455e+01  2.936e+01  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  9.360e-01  8.427e-01  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:  5.666e-01  2.096e-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.336e+00  1.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.37
Ra Dec: 171.243 49.567
Photon Index (Free Index): 0.94 +/- 0.84
Photon Flux (Free Index): 3.13e-09 +/- 3.52e-09
Energy Flux (Free Index): 3.18e-05 +/- 4.76e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/765530/cmap_HighResolution_535075201_535334401_4FGL_J1124.9+4934_daily_bin1141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.12e-09', energy_flux2='3.18e-05', photon_flux_error='5.07e-09', dlogl='2.32e-01', energy_flux='1.47e-05', photon_flux2='3.13e-09', job_status='DONE', time_completed='2021-09-03 19:51:02.188273', photon_index_error2='0.84', photon_index2='0.94', ts='6.91', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='4.76e-05', EG='1.34', time_epoch_completed='1630723862.19', return_code='0', job_id='765530', GAL2='0.57', EG2='1.34', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='3.52e-09', ts2='7.37', photon_index='1.52' WHERE bin_id='1141' AND source_name='4FGL J1124.9+4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 19:51:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 765530: <4FGL_J1124.9+4934_daily_bin1141> in cluster <slac> Done

Job <4FGL_J1124.9+4934_daily_bin1141> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep  3 19:36:39 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 19:36:57 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:36:57 2021
Terminated at Fri Sep  3 19:51:03 2021
Results reported at Fri Sep  3 19:51:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_daily_bin1141 171.243 49.5674 535075201 535334401 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 :                                   823.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            864 sec.

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

