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


Performing analysis on: 4FGL_J1124.9+4934_daily_bin1063
RA = 171.243, Dec = 49.5674
tmin = 514857601, tmax = 515116801
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='765398', job_status='RUN', time_executed='2021-09-03 19:36:46.515979', time_epoch_executed='1630723006.52' WHERE source_name='4FGL J1124.9+4934' and cadence='daily' and bin_id='1063'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/765398

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/765398/ft1_4FGL_J1124.9+4934_daily_bin1063.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/765398/ft2_4FGL_J1124.9+4934_daily_bin1063.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/765398/ft1_4FGL_J1124.9+4934_daily_bin1063.fits outfile=/scratch/kocevski/765398/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin1063.fits ra=171.243 dec=49.5674 rad=12.0 tmin=514857601.0 tmax=515116801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.54
user 3.32
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/765398/ft2_4FGL_J1124.9+4934_daily_bin1063.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/765398/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin1063.fits evtable="EVENTS" outfile="/scratch/kocevski/765398/ft1_filtered_4FGL_J1124.9+4934_daily_bin1063.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.55
user 0.34
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/765398/ft1_filtered_4FGL_J1124.9+4934_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/765398/ft2_4FGL_J1124.9+4934_daily_bin1063.fits sctable="SC_DATA" expcube=/scratch/kocevski/765398/ltcube_514857601_515116801_4FGL_J1124.9+4934_daily_bin1063.fits outfile=/scratch/kocevski/765398/expmap_514857601_515116801_4FGL_J1124.9+4934_daily_bin1063.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/765398/ltcube_514857601_515116801_4FGL_J1124.9+4934_daily_bin1063.fits
.....................!
real 191.95
user 185.86
sys 5.58

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/765398/ft1_filtered_4FGL_J1124.9+4934_daily_bin1063.fits scfile=/scratch/kocevski/765398/ft2_4FGL_J1124.9+4934_daily_bin1063.fits outfile=/scratch/kocevski/765398/cmap_514857601_515116801_4FGL_J1124.9+4934_daily_bin1063.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/765398/ft1_filtered_4FGL_J1124.9+4934_daily_bin1063.fits scfile=/scratch/kocevski/765398/ft2_4FGL_J1124.9+4934_daily_bin1063.fits outfile=/scratch/kocevski/765398/cmap_HighResolution_514857601_515116801_4FGL_J1124.9+4934_daily_bin1063.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.61
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5976       1.0000         .10000E-03   10000.    
     2 'norm      '    4.2065       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7420       1.0000         .10000E-03   10000.    
     4 'Prefactor '    83.173       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3029       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3336       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.5527       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10800       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.721       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1693       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.132       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3584       1.0000         .10000E-03   10000.    
    17 'norm      '    8.8487       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7599       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5524       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.308       1.0000         .10000E-03   10000.    
    22 'norm      '    2.1642       1.0000         .10000E-03   10000.    
    23 'norm      '    1.7752       1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.051       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2169       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88364       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=   7276.214     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3083 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5976        2.5176        .59467E-07   -.11363E-03
   2  norm          4.2065        1.6236        .43861E-07   -.23014E-03
   3  Prefactor     4.7289        301.59        .17192E-04    .93654E-05
   4  Prefactor     83.191        80.711       -.39734E-05   -.10448E-03
   5  Prefactor     .10000E-03    50.946        .34756E-05** at limit **
   6  norm          1.3033        1.3704        .17784E-06    .12871E-04
   7  Prefactor     .10000E-03    21.115        .63161E-07** at limit **
   8  norm          1.3336        .42255        .17632E-07   -.59214E-03
   9  Prefactor     .10000E-03    14.828        .65509E-06** at limit **
  10  Prefactor     .10000E-03    87.027       -.58375E-05** at limit **
  11  norm          5.5468        42.224        .40402E-05    .16304E-04
  12  Prefactor     .70088E-01    2.9333        .11821E-05   -.29470E-03
  13  Prefactor     10.731        15.120        .83047E-06   -.13187E-03
  14  norm          3.1686        2.3449        .14837E-06   -.15997E-03
  15  Prefactor     24.124        24.867        .54966E-06   -.10195E-03
  16  norm          3.3589        1.2279       -.19357E-06   -.11835E-02
  17  norm          8.8477        7.5460       -.20871E-06   -.29938E-03
  18  Prefactor     1.7619        3.1652        .26456E-06   -.32575E-03
  19  Prefactor     3.5186        112.68        .23390E-04    .37223E-04
  20  norm          .10000E-03    1.6267        .13389E-06** at limit **
  21  Prefactor     11.295        22.586       -.12176E-05   -.12248E-03
  22  norm          2.1644        1.7636       -.83463E-07   -.61021E-03
  23  norm          1.7983        10.471        .28856E-04   -.12163E-03
  24  Prefactor     30.985        30.790       -.74975E-05    .28219E-03
  25  Normalizat    1.2168        .16247        .16376E-05   -.76918E-03
  26  Prefactor     .88384        .20138       -.75755E-05   -.73386E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.59759
  norm       = 4.20655
  Prefactor  = 4.72891
  Prefactor  = 83.1908
  Prefactor  = 0.000100001
  norm       = 1.3033
  Prefactor  = 0.0001
  norm       = 1.33359
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.54681
  Prefactor  = 0.0700882
  Prefactor  = 10.731
  norm       = 3.16861
  Prefactor  = 24.1239
  norm       = 3.35894
  norm       = 8.8477
  Prefactor  = 1.76195
  Prefactor  = 3.5186
  norm       = 0.0001
  Prefactor  = 11.2948
  norm       = 2.16438
  norm       = 1.79833
  Prefactor  = 30.9852
  Normalizat = 1.21679
  Prefactor  = 0.883841
 **********
 **   18 **HESSE 
 **********

 FCN=   7276.214     FROM HESSE     STATUS=OK           470 CALLS     3553 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5976        2.5191        .97541E-04   -1.5279    
   2  norm          4.2065        1.6242        .65724E-04   -1.5298    
   3  Prefactor     4.7289        305.08        .18477E-03   -1.5273    
   4  Prefactor     83.191        80.729        .22022E-03   -1.3881    
   5  Prefactor     .10000E-03    51.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3033        1.3508        .98971E-04   -1.5480    
   7  Prefactor     .10000E-03    21.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3336        .42430        .30358E-04   -1.5477    
   9  Prefactor     .10000E-03    14.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    87.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.5468        42.386        .17050E-03   -1.5237    
  12  Prefactor     .70088E-01    6.7145        .45601E-01   -1.5655    
  13  Prefactor     10.731        15.142        .12236E-03   -1.5053    
  14  norm          3.1686        2.3391        .10858E-03   -1.5352    
  15  Prefactor     24.124        24.896        .81542E-04   -1.4725    
  16  norm          3.3589        1.2284        .52156E-04   -1.5341    
  17  norm          8.8477        7.5440        .13474E-03   -1.5113    
  18  Prefactor     1.7619        3.0795        .17264E-03   -1.5442    
  19  Prefactor     3.5186        113.28        .21445E-03   -1.5333    
  20  norm          .10000E-03    1.6338        .10624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.295        22.209        .11913E-03   -1.5036    
  22  norm          2.1644        1.7588        .98009E-04   -1.5414    
  23  norm          1.7983        10.741        .15711E-02   -1.5440    
  24  Prefactor     30.985        31.234        .71904E-04   -1.4594    
  25  Normalizat    1.2168        .19591        .22246E-03   -.86085    
  26  Prefactor     .88384        .23967        .32769E-03   -.96708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03499e-09
Minuit parameter uncertainties:
  1  2.51914
  2  1.62426
  3  76.3746
  4  80.836
  5  0.00054256
  6  1.35081
  7  7.3262e-05
  8  0.424304
  9  0.000151243
  10  0.000368087
  11  30.6965
  12  1.3712
  13  15.1469
  14  2.33921
  15  24.9067
  16  1.22839
  17  7.5448
  18  3.07975
  19  40.0113
  20  1.05709e-05
  21  22.2249
  22  1.75888
  23  8.79195
  24  31.2502
  25  0.196031
  26  0.239956
Done.

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

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  5.547e+00  3.070e+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:  8.838e-01  2.400e-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.217e+00  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/765398/likelihoodResults_514857601_515116801_4FGL_J1124.9+4934_daily_bin1063.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) = 7276.13788873
delta logL = 0.0761722009092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7276.13431613
delta logL = 0.0797447970626

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3064       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1530       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87816       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=   7276.134     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      245 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2972        25.006        .14839E-03    .65197E-03
   2  alpha         2.1517        1.5142        .27520E-01    .12580E-03
   3  Normalizat    1.2186        .18419        .22232E-03   -.11637E-02
   4  Prefactor     .87809        .23659        .32864E-03   -.10742E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 7.29719
  alpha      = 2.15167
  Normalizat = 1.2186
  Prefactor  = 0.878094
 **********
 **   18 **HESSE 
 **********

 FCN=   7276.134     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2972        22.429        .29677E-04   -1.5168    
   2  alpha         2.1517        1.3792        .11008E-02   -.13979    
   3  Normalizat    1.2186        .18425        .44465E-04   -.86030    
   4  Prefactor     .87809        .23671        .65728E-04   -.96911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15549e-09
Minuit parameter uncertainties:
  1  22.4546
  2  1.46283
  3  0.184346
  4  0.236982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/765398': 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) = 7276.13431486
delta logL = 0.0797460620688

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  7.297e+00  2.245e+01  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  2.152e+00  1.463e+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:  8.781e-01  2.370e-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.219e+00  1.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 171.243 49.567

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/765398/cmap_HighResolution_514857601_515116801_4FGL_J1124.9+4934_daily_bin1063.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-05', job_status='DONE', photon_flux_upper_limit='1.96e-08', time_completed='2021-09-03 19:52:44.643043', job_id='765398', GAL2='0.88', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630723964.64', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='7.97e-02', ts2='0.20', photon_index_error='0.00', photon_index='1.52' WHERE bin_id='1063' AND source_name='4FGL J1124.9+4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 19:52:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 765398: <4FGL_J1124.9+4934_daily_bin1063> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_daily_bin1063 171.243 49.5674 514857601 515116801 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 :                                   955.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             363.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            975 sec.

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

