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


Performing analysis on: 4FGL_J1124.9+4934_daily_bin1327
RA = 171.243, Dec = 49.5674
tmin = 583286401, tmax = 583545601
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='766951', job_status='RUN', time_executed='2021-09-03 19:43:51.030994', time_epoch_executed='1630723431.03' WHERE source_name='4FGL J1124.9+4934' and cadence='daily' and bin_id='1327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766951

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766951/ft1_4FGL_J1124.9+4934_daily_bin1327.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766951/ft2_4FGL_J1124.9+4934_daily_bin1327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766951/ft1_4FGL_J1124.9+4934_daily_bin1327.fits outfile=/scratch/kocevski/766951/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin1327.fits ra=171.243 dec=49.5674 rad=12.0 tmin=583286401.0 tmax=583545601.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 2.92
user 2.69
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766951/ft1_filtered_4FGL_J1124.9+4934_daily_bin1327.fits evtable="EVENTS" scfile=/scratch/kocevski/766951/ft2_4FGL_J1124.9+4934_daily_bin1327.fits sctable="SC_DATA" expcube=/scratch/kocevski/766951/ltcube_583286401_583545601_4FGL_J1124.9+4934_daily_bin1327.fits outfile=/scratch/kocevski/766951/expmap_583286401_583545601_4FGL_J1124.9+4934_daily_bin1327.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/766951/ltcube_583286401_583545601_4FGL_J1124.9+4934_daily_bin1327.fits
.....................!
real 157.33
user 151.78
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/766951/ft1_filtered_4FGL_J1124.9+4934_daily_bin1327.fits scfile=/scratch/kocevski/766951/ft2_4FGL_J1124.9+4934_daily_bin1327.fits outfile=/scratch/kocevski/766951/cmap_583286401_583545601_4FGL_J1124.9+4934_daily_bin1327.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.50
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/766951/ft1_filtered_4FGL_J1124.9+4934_daily_bin1327.fits scfile=/scratch/kocevski/766951/ft2_4FGL_J1124.9+4934_daily_bin1327.fits outfile=/scratch/kocevski/766951/cmap_HighResolution_583286401_583545601_4FGL_J1124.9+4934_daily_bin1327.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.50
user 0.31
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5505       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8895       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.500       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.8749       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8443       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5973       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .92696       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.878       1.0000         .10000E-03   10000.    
    14 'norm      '    3.7181       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.871       1.0000         .10000E-03   10000.    
    16 'norm      '    5.1663       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21202E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.4883       1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.275       1.0000         .10000E-03   10000.    
    22 'norm      '    .11792E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.7640       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .92993       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77907       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=   6349.781     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     3141 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5504        2.4878        .23413E-07    .12199E-03
   2  norm          1.8895        1.1497        .44856E-08    .53718E-04
   3  Prefactor     11.531        136.37       -.20842E-05    .31740E-04
   4  Prefactor     .10000E-03    34.848        .61231E-06** at limit **
   5  Prefactor     .10001E-03    113.98       -.11993E-07** at limit **
   6  norm          3.8749        1.9773        .51382E-08   -.13464E-03
   7  Prefactor     4.8422        111.89        .43016E-05    .42960E-04
   8  norm          1.5973        .43759       -.24307E-08   -.72044E-04
   9  Prefactor     .10000E-03    5.0771       -.11500E-07** at limit **
  10  Prefactor     .10000E-03    30.522       -.40913E-06** at limit **
  11  norm          .10001E-03    58.325       -.19016E-06** at limit **
  12  Prefactor     .92262        4.4402       -.56290E-05   -.47949E-03
  13  Prefactor     34.877        25.852       -.50202E-06    .77327E-04
  14  norm          3.7180        2.7362        .13437E-07   -.31949E-04
  15  Prefactor     33.871        50.408        .11460E-06   -.40733E-04
  16  norm          5.1663        1.5791       -.54963E-07   -.11228E-02
  17  norm          .10000E-03    4.2718       -.63804E-07** at limit **
  18  Prefactor     .10000E-03    1.5981       -.29337E-06** at limit **
  19  Prefactor     .10000E-03    43.145        .31231E-06** at limit **
  20  norm          1.4885        4.3604        .81635E-05   -.37285E-03
  21  Prefactor     38.297        22.906        .95653E-06    .55558E-03
  22  norm          .10000E-03    .87093        .14149E-05** at limit **
  23  norm          8.7644        5.9736       -.30588E-08    .26201E-03
  24  Prefactor     .10000E-03    16.103        .84920E-06** at limit **
  25  Normalizat    .92995        .15278       -.16600E-05    .34615E-03
  26  Prefactor     .77909        .18107        .20901E-05    .41625E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.55039
  norm       = 1.88946
  Prefactor  = 11.5306
  Prefactor  = 0.000100001
  Prefactor  = 0.000100011
  norm       = 3.87485
  Prefactor  = 4.84224
  norm       = 1.59725
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100014
  Prefactor  = 0.92262
  Prefactor  = 34.8767
  norm       = 3.718
  Prefactor  = 33.8713
  norm       = 5.16629
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.48851
  Prefactor  = 38.2974
  norm       = 0.000100002
  norm       = 8.76435
  Prefactor  = 0.000100001
  Normalizat = 0.929948
  Prefactor  = 0.779089
 **********
 **   18 **HESSE 
 **********

 FCN=   6349.781     FROM HESSE     STATUS=OK           458 CALLS     3599 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5504        2.4868        .90461E-04   -1.5281    
   2  norm          1.8895        1.1526        .64896E-04   -1.5433    
   3  Prefactor     11.531        136.76        .11813E-03   -1.5029    
   4  Prefactor     .10000E-03    34.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    114.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.8749        1.9747        .77291E-04   -1.5314    
   7  Prefactor     4.8422        112.04        .18277E-03   -1.5268    
   8  norm          1.5973        .43897        .26853E-04   -1.5455    
   9  Prefactor     .10000E-03    5.0803        .17535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    58.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .92262        10.744        .26991E-02   -1.5516    
  13  Prefactor     34.877        25.865        .67856E-04   -1.4526    
  14  norm          3.7180        2.7271        .10715E-03   -1.5322    
  15  Prefactor     33.871        50.624        .68855E-04   -1.4543    
  16  norm          5.1663        1.5871        .48093E-04   -1.5253    
  17  norm          .10000E-03    4.2814        .16084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.1163        .18040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    43.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.4885        4.6049        .14195E-02   -1.5464    
  21  Prefactor     38.297        21.576        .64785E-04   -1.4469    
  22  norm          .10000E-03    5.1278        .13481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.7644        5.9702        .13540E-03   -1.5116    
  24  Prefactor     .10000E-03    16.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .92995        .18104        .21547E-03   -.95416    
  26  Prefactor     .77909        .21432        .29786E-03   -1.0050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67758e-09
Minuit parameter uncertainties:
  1  2.4869
  2  1.15261
  3  79.6484
  4  0.000400813
  5  0.00225383
  6  1.97472
  7  46.682
  8  0.438975
  9  2.93819e-05
  10  0.000335623
  11  0.00184385
  12  6.29807
  13  25.8735
  14  2.72715
  15  50.6885
  16  1.58716
  17  1.19833e-05
  18  5.20184e-05
  19  0.00053847
  20  4.60604
  21  21.5802
  22  0.000210495
  23  5.97063
  24  0.000241386
  25  0.181163
  26  0.214551
Done.

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

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.000e-04  1.844e-03  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.791e-01  2.146e-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:  9.299e-01  1.812e-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: 1.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/766951/likelihoodResults_583286401_583545601_4FGL_J1124.9+4934_daily_bin1327.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) = 6349.7805982
delta logL = -8.07753513072e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6349.78051842
delta logL = -9.99977601168e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1454       1.0000          .0000       5.0000    
     3 'Normalizat'    .92995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77909       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=   6349.774     FROM MIGRAD    STATUS=FAILED       182 CALLS      378 TOTAL
                     EDM=   .12E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3821        581.62        .18142E-01    .23067E-01
   2  alpha         2.4152        2.5923        .50000        .24639E-04
   3  Normalizat    .93050        .17992E-01    .21547E-03    .46905E-04
   4  Prefactor     .77679        .22838E-01    .29786E-03    .69847E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6349.774     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      460 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3821        581.62        .67566E-03    .23067E-01
   2  alpha         2.4152        2.5923        .82619E-02    .24639E-04
   3  Normalizat    .93050        .17992E-01    .47259E-04    .46905E-04
   4  Prefactor     .77679        .22838E-01    .29026E-04    .69847E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6349.774     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      509 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3821        6589.1         .0000        .92252E-03
   2  alpha         2.4152        3.7071         .0000        .39901E-05
   3  Normalizat    .93050        .18852         .0000        .46958E-04
   4  Prefactor     .77679        .26636         .0000        .68702E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.38206
  alpha      = 2.41523
  Normalizat = 0.930497
  Prefactor  = 0.776793
 **********
 **   18 **HESSE 
 **********

 FCN=   6349.774     FROM HESSE     STATUS=OK            27 CALLS      536 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3821        36.431        .72569E-03   -1.5473    
   2  alpha         2.4152        3.6959        .19203E-02   -.33914E-01
   3  Normalizat    .93050        .16578        .17238E-05   -.95397    
   4  Prefactor     .77679        .21295        .23829E-05   -1.0059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30197e-11
Minuit parameter uncertainties:
  1  14.2006
  2  3.49816
  3  0.165873
  4  0.213177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766951': 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) = 6349.7735733
delta logL = 0.00694411857967

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.382e+00  1.420e+01  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  2.415e+00  3.498e+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.768e-01  2.132e-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:  9.305e-01  1.659e-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/766951/cmap_HighResolution_583286401_583545601_4FGL_J1124.9+4934_daily_bin1327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-05', job_status='DONE', photon_flux_upper_limit='1.82e-08', time_completed='2021-09-03 19:56:24.795573', job_id='766951', GAL2='0.78', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630724184.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='6.94e-03', ts2='0.01', photon_index_error='0.00', photon_index='1.52' WHERE bin_id='1327' AND source_name='4FGL J1124.9+4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 19:56:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 766951: <4FGL_J1124.9+4934_daily_bin1327> in cluster <slac> Done

Job <4FGL_J1124.9+4934_daily_bin1327> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 19:41:12 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 19:41:44 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:41:44 2021
Terminated at Fri Sep  3 19:56:25 2021
Results reported at Fri Sep  3 19:56:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_daily_bin1327 171.243 49.5674 583286401 583545601 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 :                                   735.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            913 sec.

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

