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


Performing analysis on: 4FGL_J1124.9+4934_daily_bin24
RA = 171.243, Dec = 49.5674
tmin = 245548801, tmax = 245808001
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='751540', job_status='RUN', time_executed='2021-09-03 18:55:50.466104', time_epoch_executed='1630720550.47' WHERE source_name='4FGL J1124.9+4934' and cadence='daily' and bin_id='24'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/751540

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/751540/ft1_4FGL_J1124.9+4934_daily_bin24.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/751540/ft2_4FGL_J1124.9+4934_daily_bin24.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/751540/ft1_4FGL_J1124.9+4934_daily_bin24.fits outfile=/scratch/kocevski/751540/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin24.fits ra=171.243 dec=49.5674 rad=12.0 tmin=245548801.0 tmax=245808001.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.12
user 1.07
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/751540/ft1_filtered_4FGL_J1124.9+4934_daily_bin24.fits" evtable="EVENTS" scfile=/scratch/kocevski/751540/ft2_4FGL_J1124.9+4934_daily_bin24.fits sctable="SC_DATA" outfile=/scratch/kocevski/751540/ltcube_245548801_245808001_4FGL_J1124.9+4934_daily_bin24.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/751540/ft2_4FGL_J1124.9+4934_daily_bin24.fits
.....................!
real 16.13
user 15.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/751540/ft1_filtered_4FGL_J1124.9+4934_daily_bin24.fits evtable="EVENTS" scfile=/scratch/kocevski/751540/ft2_4FGL_J1124.9+4934_daily_bin24.fits sctable="SC_DATA" expcube=/scratch/kocevski/751540/ltcube_245548801_245808001_4FGL_J1124.9+4934_daily_bin24.fits outfile=/scratch/kocevski/751540/expmap_245548801_245808001_4FGL_J1124.9+4934_daily_bin24.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/751540/ltcube_245548801_245808001_4FGL_J1124.9+4934_daily_bin24.fits
.....................!
real 158.64
user 153.74
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/751540/ft1_filtered_4FGL_J1124.9+4934_daily_bin24.fits scfile=/scratch/kocevski/751540/ft2_4FGL_J1124.9+4934_daily_bin24.fits outfile=/scratch/kocevski/751540/cmap_245548801_245808001_4FGL_J1124.9+4934_daily_bin24.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.35
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7811       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .91862E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.8418       1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.597       1.0000         .10000E-03   10000.    
     8 'norm      '    2.2102       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.579       1.0000         .10000E-03   10000.    
    10 'Prefactor '    59.743       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.761       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4531       1.0000         .10000E-03   10000.    
    20 'norm      '    1.4322       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.157       1.0000         .10000E-03   10000.    
    22 'norm      '    1.4259       1.0000         .10000E-03   10000.    
    23 'norm      '    19.057       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2533       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .54297       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=   5810.045     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3157 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7810        3.3069        .32568E-07   -.12649E-04
   2  norm          .10000E-03    .63687        .21740E-07** at limit **
   3  Prefactor     .10000E-03    80.606        .51438E-06** at limit **
   4  Prefactor     .10000E-03    113.68        .27866E-06** at limit **
   5  Prefactor     .10000E-03    646.40       -.11552E-04** at limit **
   6  norm          3.8421        2.2430        .81525E-08   -.15793E-04
   7  Prefactor     44.615        59.189        .77920E-06    .91903E-05
   8  norm          2.2103        .53012       -.82807E-08    .49590E-04
   9  Prefactor     31.575        29.736        .20038E-06   -.14531E-04
  10  Prefactor     59.794        79.194        .73113E-06    .28069E-04
  11  norm          .10000E-03    23.751        .13831E-06** at limit **
  12  Prefactor     10.762        8.3695       -.20225E-07   -.37877E-04
  13  Prefactor     .10000E-03    73.998       -.50955E-06** at limit **
  14  norm          .10000E-03    1.2096        .55426E-09** at limit **
  15  Prefactor     .10000E-03    11.493       -.40783E-07** at limit **
  16  norm          .10000E-03    .38779       -.43966E-06** at limit **
  17  norm          .10000E-03    7.1235       -.24677E-06** at limit **
  18  Prefactor     .10000E-03    1.7885        .72841E-07** at limit **
  19  Prefactor     9.4422        62.366        .49400E-05    .65915E-04
  20  norm          1.4316        4.9081        .15570E-05    .18704E-04
  21  Prefactor     15.142        23.035        .43719E-06   -.13154E-04
  22  norm          1.4261        1.5333        .11275E-06   -.11504E-04
  23  norm          19.059        8.4468        .92314E-07   -.39229E-04
  24  Prefactor     .10000E-03    9.1264       -.98057E-07** at limit **
  25  Normalizat    1.2531        .18040       -.13833E-05    .15472E-03
  26  Prefactor     .54312        .20564        .62808E-06    .36806E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.78103
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 3.84212
  Prefactor  = 44.6152
  norm       = 2.21026
  Prefactor  = 31.5752
  Prefactor  = 59.7937
  norm       = 0.0001
  Prefactor  = 10.7615
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.44222
  norm       = 1.43159
  Prefactor  = 15.1419
  norm       = 1.42613
  norm       = 19.059
  Prefactor  = 0.0001
  Normalizat = 1.25314
  Prefactor  = 0.543124
 **********
 **   18 **HESSE 
 **********

 FCN=   5810.045     FROM HESSE     STATUS=OK           462 CALLS     3619 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7810        3.3070        .94139E-04   -1.5187    
   2  norm          .10000E-03    .95798        .11850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    80.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    113.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    657.86        .41634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.8421        2.2417        .83072E-04   -1.5316    
   7  Prefactor     44.615        59.291        .60035E-04   -1.4371    
   8  norm          2.2103        .53100        .26411E-04   -1.5411    
   9  Prefactor     31.575        29.736        .71303E-04   -1.4584    
  10  Prefactor     59.794        79.426        .25954E-03   -1.4160    
  11  norm          .10000E-03    23.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.762        8.3773        .12214E-03   -1.5052    
  13  Prefactor     .10000E-03    74.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.2569        .16369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .48499        .86690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.2195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.7536        .19137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.4422        66.592        .13034E-03   -1.5093    
  20  norm          1.4316        4.8849        .29970E-03   -1.5469    
  21  Prefactor     15.142        22.326        .10288E-03   -1.4930    
  22  norm          1.4261        1.5094        .94295E-04   -1.5469    
  23  norm          19.059        8.4472        .91747E-04   -1.4835    
  24  Prefactor     .10000E-03    9.1345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2531        .19695        .20339E-03   -.84976    
  26  Prefactor     .54312        .22661        .36121E-03   -1.1004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08151e-10
Minuit parameter uncertainties:
  1  3.3071
  2  3.68149e-06
  3  0.000100815
  4  9.71912e-05
  5  0.00249482
  6  2.2418
  7  59.3694
  8  0.531005
  9  29.7496
  10  79.5669
  11  8.10402e-07
  12  8.37817
  13  0.000131654
  14  2.64583e-06
  15  9.21156e-06
  16  6.38826e-06
  17  1.75428e-06
  18  7.28924e-06
  19  50.2303
  20  4.8863
  21  22.3386
  22  1.50945
  23  8.44772
  24  2.42157e-06
  25  0.197062
  26  0.226986
Done.

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

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.000e-04  8.104e-07  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  1.519e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
354         beta:  1.498e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
355           Eb:  2.941e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  5.431e-01  2.270e-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.253e+00  1.971e-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.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/751540/likelihoodResults_245548801_245808001_4FGL_J1124.9+4934_daily_bin24.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) = 5810.0449614
delta logL = -0.000200034995032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5810.04476188
delta logL = -5.12792212248e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12353E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5079       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2531       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54313       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5810.045     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      192 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    24.280        .90712E-02** at limit **
   2  alpha         1.5209        3.2459        .46260       -.23781E-05
   3  Normalizat    1.2531        .16446        .33702E-01    .15155E-04
   4  Prefactor     .54312        .20039        .81544E-01    .36994E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.52095
  Normalizat = 1.25314
  Prefactor  = 0.543125
 **********
 **   18 **HESSE 
 **********

 FCN=   5810.045     FROM HESSE     STATUS=OK            31 CALLS      223 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    23.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5209        3.2430        .50000       -.40239    
   3  Normalizat    1.2531        .18149        .20339E-03   -.84976    
   4  Prefactor     .54312        .22050        .36121E-03   -1.1004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.72065e-12
Minuit parameter uncertainties:
  1  5.98089e-05
  2  2.30237
  3  0.181583
  4  0.220845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/751540': 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) = 5810.04476136
delta logL = 1.84263626579e-09

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.000e-04  5.981e-05  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  1.521e+00  2.302e+00  0.000e+00  5.000e+00 ( 1.000e+00)
354         beta:  1.498e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
355           Eb:  2.941e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  5.431e-01  2.208e-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.253e+00  1.816e-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/751540/cmap_HighResolution_245548801_245808001_4FGL_J1124.9+4934_daily_bin24.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-05', job_status='DONE', photon_flux_upper_limit='2.03e-08', time_completed='2021-09-03 19:07:10.009561', job_id='751540', GAL2='0.54', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630721230.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='1.84e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.52' WHERE bin_id='24' AND source_name='4FGL J1124.9+4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 19:07:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 751540: <4FGL_J1124.9+4934_daily_bin24> in cluster <slac> Done

Job <4FGL_J1124.9+4934_daily_bin24> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 18:50:59 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 18:51:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 18:51:58 2021
Terminated at Fri Sep  3 19:07:10 2021
Results reported at Fri Sep  3 19:07:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_daily_bin24 171.243 49.5674 245548801 245808001 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 :                                   677.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             231.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            971 sec.

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

