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


Performing analysis on: 4FGL_J1124.9+4934_daily_bin1085
RA = 171.243, Dec = 49.5674
tmin = 520560001, tmax = 520819201
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='765431', job_status='RUN', time_executed='2021-09-03 19:36:57.068379', time_epoch_executed='1630723017.07' WHERE source_name='4FGL J1124.9+4934' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/765431

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/765431/ft1_4FGL_J1124.9+4934_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/765431/ft2_4FGL_J1124.9+4934_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/765431/ft1_4FGL_J1124.9+4934_daily_bin1085.fits outfile=/scratch/kocevski/765431/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin1085.fits ra=171.243 dec=49.5674 rad=12.0 tmin=520560001.0 tmax=520819201.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 9.33
user 4.99
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/765431/ft2_4FGL_J1124.9+4934_daily_bin1085.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/765431/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin1085.fits evtable="EVENTS" outfile="/scratch/kocevski/765431/ft1_filtered_4FGL_J1124.9+4934_daily_bin1085.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/765431/ft1_filtered_4FGL_J1124.9+4934_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/765431/ft2_4FGL_J1124.9+4934_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/765431/ltcube_520560001_520819201_4FGL_J1124.9+4934_daily_bin1085.fits outfile=/scratch/kocevski/765431/expmap_520560001_520819201_4FGL_J1124.9+4934_daily_bin1085.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/765431/ltcube_520560001_520819201_4FGL_J1124.9+4934_daily_bin1085.fits
.....................!
real 192.47
user 187.13
sys 4.69

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/765431/ft1_filtered_4FGL_J1124.9+4934_daily_bin1085.fits scfile=/scratch/kocevski/765431/ft2_4FGL_J1124.9+4934_daily_bin1085.fits outfile=/scratch/kocevski/765431/cmap_520560001_520819201_4FGL_J1124.9+4934_daily_bin1085.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/765431/ft1_filtered_4FGL_J1124.9+4934_daily_bin1085.fits scfile=/scratch/kocevski/765431/ft2_4FGL_J1124.9+4934_daily_bin1085.fits outfile=/scratch/kocevski/765431/cmap_HighResolution_520560001_520819201_4FGL_J1124.9+4934_daily_bin1085.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.57
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6774       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7972       1.0000         .10000E-03   10000.    
     3 'Prefactor '    108.44       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .77616E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    68.390       1.0000         .10000E-03   10000.    
     6 'norm      '    .53627       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32703E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0369       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .44011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .86715E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    36.511       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.227       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.532       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0325       1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.025       1.0000         .10000E-03   10000.    
    16 'norm      '    4.3174       1.0000         .10000E-03   10000.    
    17 'norm      '    .10611E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7667       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35804E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.767       1.0000         .10000E-03   10000.    
    22 'norm      '    7.5673       1.0000         .10000E-03   10000.    
    23 'norm      '    4.2171       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4102       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .29741       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=   4487.327     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     2699 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6793        3.8508        .98543E-07   -.57690E-04
   2  norm          1.7981        1.3472        .24203E-07   -.57960E-04
   3  Prefactor     106.73        71.631        .70367E-05    .39829E-03
   4  Prefactor     .10000E-03    65.603       -.67251E-08** at limit **
   5  Prefactor     64.265        84.087       -.26636E-05   -.11762E-03
   6  norm          .53469        1.6239        .56101E-06    .71905E-04
   7  Prefactor     .10000E-03    19.621        .70993E-07** at limit **
   8  norm          1.0371        .47609        .30285E-07   -.16341E-03
   9  Prefactor     .10000E-03    9.3826       -.56175E-07** at limit **
  10  Prefactor     .10000E-03    24.370        .25545E-07** at limit **
  11  norm          35.327        38.184        .14725E-06    .53818E-05
  12  Prefactor     12.150        9.1391        .10340E-05   -.29731E-03
  13  Prefactor     22.702        31.066        .11114E-06   -.13850E-04
  14  norm          2.0152        2.8266        .96392E-07   -.14078E-03
  15  Prefactor     43.626        62.159        .59975E-05    .16971E-03
  16  norm          4.3081        1.7326       -.18875E-06    .16224E-04
  17  norm          .10000E-03    3.8834        .33783E-07** at limit **
  18  Prefactor     3.7323        3.1639        .15590E-07   -.62541E-04
  19  Prefactor     .10000E-03    34.929        .95659E-07** at limit **
  20  norm          .10000E-03    2.8799       -.77535E-08** at limit **
  21  Prefactor     13.912        16.949       -.41507E-07   -.21839E-04
  22  norm          7.5361        3.3490       -.34753E-08   -.12301E-03
  23  norm          4.2587        8.7619        .67972E-05   -.55932E-03
  24  Prefactor     .10000E-03    52.731       -.33168E-05** at limit **
  25  Normalizat    1.4116        .21747       -.24831E-05    .60242E-04
  26  Prefactor     .29748        .25186        .13024E-05   -.72573E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.6793
  norm       = 1.7981
  Prefactor  = 106.728
  Prefactor  = 0.0001
  Prefactor  = 64.2653
  norm       = 0.534692
  Prefactor  = 0.0001
  norm       = 1.03706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 35.3269
  Prefactor  = 12.1499
  Prefactor  = 22.7023
  norm       = 2.01519
  Prefactor  = 43.6256
  norm       = 4.3081
  norm       = 0.0001
  Prefactor  = 3.73234
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.9123
  norm       = 7.53608
  norm       = 4.25873
  Prefactor  = 0.000100005
  Normalizat = 1.4116
  Prefactor  = 0.297483
 **********
 **   18 **HESSE 
 **********

 FCN=   4487.327     FROM HESSE     STATUS=OK           460 CALLS     3159 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6793        3.8501        .89923E-04   -1.5154    
   2  norm          1.7981        1.3498        .65410E-04   -1.5440    
   3  Prefactor     106.73        74.740        .19311E-03   -1.3638    
   4  Prefactor     .10000E-03    65.615        .20920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     64.265        84.885        .48536E-04   -1.4103    
   6  norm          .53469        1.4766        .14376E-02   -1.5562    
   7  Prefactor     .10000E-03    19.627        .19733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0371        .47461        .30334E-04   -1.5504    
   9  Prefactor     .10000E-03    9.3984        .20038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.370        .20853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          35.327        38.179        .66326E-04   -1.4519    
  12  Prefactor     12.150        9.1514        .57279E-03   -1.5011    
  13  Prefactor     22.702        31.121        .84384E-04   -1.4755    
  14  norm          2.0152        2.7991        .12631E-03   -1.5424    
  15  Prefactor     43.626        63.094        .61117E-04   -1.4386    
  16  norm          4.3081        1.7443        .49345E-04   -1.5293    
  17  norm          .10000E-03    3.8838        .12893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.7323        3.1596        .10449E-03   -1.5322    
  19  Prefactor     .10000E-03    34.953        .21313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.8875        .11101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.912        16.945        .10795E-03   -1.4962    
  22  norm          7.5361        3.3495        .78369E-04   -1.5159    
  23  norm          4.2587        9.0644        .98116E-03   -1.5295    
  24  Prefactor     .10000E-03    53.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4116        .22063        .19761E-03   -.80294    
  26  Prefactor     .29748        .24871        .48371E-03   -1.2241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15813e-09
Minuit parameter uncertainties:
  1  3.8502
  2  1.34983
  3  74.8061
  4  7.05504e-06
  5  85.0457
  6  1.47665
  7  3.28848e-06
  8  0.474608
  9  3.58485e-06
  10  9.80372e-07
  11  38.2056
  12  9.15248
  13  31.1432
  14  2.79925
  15  63.1907
  16  1.74429
  17  1.00963e-06
  18  3.15977
  19  2.17765e-06
  20  1.60612e-06
  21  16.9512
  22  3.34954
  23  9.0673
  24  0.00100324
  25  0.220779
  26  0.249603
Done.

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

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  3.533e+01  3.821e+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:  2.975e-01  2.496e-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.412e+00  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.24
Ra Dec: 171.243 49.567
Photon Index (Fixed Index): 1.52 +/- 0.00
Photon Flux (Fixed Index): 6.08e-09 +/- 6.57e-09
Energy Flux (Fixed Index): 1.75e-05 +/- 1.89e-05

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

Saving results to:
/scratch/kocevski/765431/likelihoodResults_520560001_520819201_4FGL_J1124.9+4934_daily_bin1085.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) = 4487.32503991
delta logL = 0.00183459305663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4487.32476497
delta logL = 0.00210953444093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.362       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5718       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4115       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .29747       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=   4487.325     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      261 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.376        40.981        .68362E-04    .34657E-04
   2  alpha         1.5716        .80585        .16797E-01    .62650E-04
   3  Normalizat    1.4115        .20686        .19762E-03   -.58806E-04
   4  Prefactor     .29743        .24653        .48375E-03    .33371E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 34.3759
  alpha      = 1.57158
  Normalizat = 1.4115
  Prefactor  = 0.297426
 **********
 **   18 **HESSE 
 **********

 FCN=   4487.325     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.376        40.475        .13672E-04   -1.4535    
   2  alpha         1.5716        .79650        .33594E-02   -.38048    
   3  Normalizat    1.4115        .20679        .39524E-04   -.80296    
   4  Prefactor     .29743        .24646        .19350E-04   -1.2241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64642e-11
Minuit parameter uncertainties:
  1  40.5071
  2  0.813021
  3  0.206916
  4  0.247331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/765431': 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) = 4487.32476484
delta logL = 0.00210966031318

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  3.438e+01  4.051e+01  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  1.572e+00  8.130e-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:  2.974e-01  2.473e-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.412e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.24
Ra Dec: 171.243 49.567
Photon Index (Free Index): 1.57 +/- 0.81
Photon Flux (Free Index): 6.30e-09 +/- 7.63e-09
Energy Flux (Free Index): 1.61e-05 +/- 2.72e-05

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/765431/cmap_HighResolution_520560001_520819201_4FGL_J1124.9+4934_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.68e-05', comment='SUCCESS', photon_flux='6.08e-09', energy_flux2='1.61e-05', photon_flux_error='6.57e-09', dlogl='2.11e-03', energy_flux='1.75e-05', photon_flux2='6.30e-09', job_status='DONE', time_completed='2021-09-03 19:48:53.374067', photon_index_error2='0.81', photon_index2='1.57', ts='3.24', fit_tolerance='1e-08', GAL='0.30', photon_index_error='0.00', photon_flux_upper_limit='3.01e-08', energy_flux_error2='2.72e-05', EG='1.41', time_epoch_completed='1630723733.37', return_code='0', job_id='765431', GAL2='0.30', EG2='1.41', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='7.63e-09', ts2='3.24', photon_index='1.52' WHERE bin_id='1085' AND source_name='4FGL J1124.9+4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 19:48:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 765431: <4FGL_J1124.9+4934_daily_bin1085> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_daily_bin1085 171.243 49.5674 520560001 520819201 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 :                                   706.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            740 sec.

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

