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


Performing analysis on: 4FGL_J1124.9+4934_daily_bin1
RA = 171.243, Dec = 49.5674
tmin = 239587201, tmax = 239846401
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='751513', job_status='RUN', time_executed='2021-09-03 18:52:37.093172', time_epoch_executed='1630720357.09' WHERE source_name='4FGL J1124.9+4934' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/751513

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/751513/ft1_4FGL_J1124.9+4934_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/751513/ft2_4FGL_J1124.9+4934_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/751513/ft1_4FGL_J1124.9+4934_daily_bin1.fits outfile=/scratch/kocevski/751513/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin1.fits ra=171.243 dec=49.5674 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.33
user 1.14
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/751513/ft1_filtered_4FGL_J1124.9+4934_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/751513/ft2_4FGL_J1124.9+4934_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/751513/ltcube_239587201_239846401_4FGL_J1124.9+4934_daily_bin1.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/751513/ft2_4FGL_J1124.9+4934_daily_bin1.fits
.....................!
real 17.45
user 16.96
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/751513/ft1_filtered_4FGL_J1124.9+4934_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/751513/ft2_4FGL_J1124.9+4934_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/751513/ltcube_239587201_239846401_4FGL_J1124.9+4934_daily_bin1.fits outfile=/scratch/kocevski/751513/expmap_239587201_239846401_4FGL_J1124.9+4934_daily_bin1.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/751513/ltcube_239587201_239846401_4FGL_J1124.9+4934_daily_bin1.fits
.....................!
real 198.58
user 189.47
sys 7.18

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/751513/ft1_filtered_4FGL_J1124.9+4934_daily_bin1.fits scfile=/scratch/kocevski/751513/ft2_4FGL_J1124.9+4934_daily_bin1.fits outfile=/scratch/kocevski/751513/cmap_239587201_239846401_4FGL_J1124.9+4934_daily_bin1.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/751513/ft1_filtered_4FGL_J1124.9+4934_daily_bin1.fits scfile=/scratch/kocevski/751513/ft2_4FGL_J1124.9+4934_daily_bin1.fits outfile=/scratch/kocevski/751513/cmap_HighResolution_239587201_239846401_4FGL_J1124.9+4934_daily_bin1.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=171.243 yref=49.5674 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.018       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8660       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.0557       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6894       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    36.366       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11408E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8503       1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.8439       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.1765       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.0138       1.0000         .10000E-03   10000.    
    23 'norm      '    .89866       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.699       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0118       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .44846       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=   3672.924     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     2689 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.018        4.1776       -.36080E-08    .32169E-04
   2  norm          1.8660        1.6229        .28289E-07    .12975E-03
   3  Prefactor     .10000E-03    33.128       -.11953E-07** at limit **
   4  Prefactor     .10000E-03    37.482        .13352E-05** at limit **
   5  Prefactor     .10001E-03    73.174       -.21165E-05** at limit **
   6  norm          2.0556        2.0590        .11883E-06    .30655E-03
   7  Prefactor     .10000E-03    31.232       -.54101E-06** at limit **
   8  norm          1.6893        .51891        .41576E-08    .56056E-03
   9  Prefactor     .10000E-03    20.780        .22189E-06** at limit **
  10  Prefactor     .10000E-03    31.154       -.62835E-06** at limit **
  11  norm          36.361        36.482       -.25565E-06   -.64914E-04
  12  Prefactor     .10000E-03    3.4383        .54152E-07** at limit **
  13  Prefactor     .10001E-03    58.828        .32106E-05** at limit **
  14  norm          .10000E-03    2.6504       -.20301E-05** at limit **
  15  Prefactor     6.8320        50.410        .61122E-05    .17844E-03
  16  norm          .10000E-03    .46856       -.82922E-06** at limit **
  17  norm          7.8435        7.7429       -.14049E-06   -.17614E-06
  18  Prefactor     .10000E-03    6.1310        .18044E-06** at limit **
  19  Prefactor     .10000E-03    20.997       -.19957E-06** at limit **
  20  norm          4.1765        6.9243        .76707E-06    .29457E-03
  21  Prefactor     .10000E-03    14.266        .52563E-07** at limit **
  22  norm          5.0139        3.4329       -.83974E-07   -.38595E-03
  23  norm          .90264        22.587        .78194E-05   -.63761E-03
  24  Prefactor     14.697        30.416       -.40221E-05   -.25251E-03
  25  Normalizat    1.0119        .17153        .67653E-06    .22317E-03
  26  Prefactor     .44838        .21272       -.11226E-05    .14227E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.0178
  norm       = 1.86596
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100011
  norm       = 2.05564
  Prefactor  = 0.000100001
  norm       = 1.68934
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 36.3609
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 6.83201
  norm       = 0.0001
  norm       = 7.8435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.17655
  Prefactor  = 0.0001
  norm       = 5.01385
  norm       = 0.902639
  Prefactor  = 14.6968
  Normalizat = 1.01189
  Prefactor  = 0.448383
 **********
 **   18 **HESSE 
 **********

 FCN=   3672.924     FROM HESSE     STATUS=OK           454 CALLS     3143 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.018        4.1776        .74196E-04   -1.5044    
   2  norm          1.8660        1.6115        .69859E-04   -1.5435    
   3  Prefactor     .10000E-03    33.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    37.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    73.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.0556        2.0429        .84154E-04   -1.5421    
   7  Prefactor     .10000E-03    31.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6893        .52014        .23527E-04   -1.5448    
   9  Prefactor     .10000E-03    20.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    31.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          36.361        36.494        .66458E-04   -1.4501    
  12  Prefactor     .10000E-03    3.4917        .10971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    60.951        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.4867        .17545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8320        54.163        .15329E-03   -1.5185    
  16  norm          .10000E-03    .52578        .84129E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.8435        7.7438        .14317E-03   -1.5148    
  18  Prefactor     .10000E-03    6.3697        .29202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.1765        6.9256        .19721E-03   -1.5299    
  21  Prefactor     .10000E-03    14.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.0139        3.4366        .87066E-04   -1.5260    
  23  norm          .90264        35.675        .28635E-02   -1.5518    
  24  Prefactor     14.697        32.277        .10447E-03   -1.4941    
  25  Normalizat    1.0119        .19792        .18389E-03   -.92633    
  26  Prefactor     .44838        .24230        .33037E-03   -1.1441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66777e-09
Minuit parameter uncertainties:
  1  4.1777
  2  1.61154
  3  2.11396e-05
  4  0.000815867
  5  0.00183015
  6  2.04299
  7  0.000323948
  8  0.520143
  9  6.41207e-05
  10  0.000356001
  11  36.5163
  12  2.2961e-06
  13  0.00180932
  14  4.92409e-05
  15  38.5207
  16  3.08938e-05
  17  7.74476
  18  9.74012e-06
  19  2.87394e-05
  20  6.92696
  21  8.73362e-06
  22  3.43676
  23  11.356
  24  32.3154
  25  0.198061
  26  0.242854
Done.

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

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  3.636e+01  3.652e+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:  4.484e-01  2.429e-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.012e+00  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.18
Ra Dec: 171.243 49.567
Photon Index (Fixed Index): 1.52 +/- 0.00
Photon Flux (Fixed Index): 6.25e-09 +/- 6.28e-09
Energy Flux (Fixed Index): 1.80e-05 +/- 1.81e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3672.18119883
delta logL = 0.743179267327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3672.13484701
delta logL = 0.789531088471

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.744       1.0000         .10000E-03   10000.    
     2 'alpha     '    .55719       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44930       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=   3672.135     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      199 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.744        25.743        .20132E-02    .53650E-03
   2  alpha         .55880        .62334        .47545       -.18823E-07
   3  Normalizat    1.0129        .16795        .44712E-01    .18214E-05
   4  Prefactor     .44930        .20786        .74511E-01    .23601E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 24.7444
  alpha      = 0.558801
  Normalizat = 1.01293
  Prefactor  = 0.449303
 **********
 **   18 **HESSE 
 **********

 FCN=   3672.135     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.744        33.132        .80528E-04   -1.4713    
   2  alpha         .55880        .71886        .23193E-01   -.88906    
   3  Normalizat    1.0129        .19259        .18376E-03   -.92598    
   4  Prefactor     .44930        .23772        .32998E-03   -1.1436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30072e-09
Minuit parameter uncertainties:
  1  33.1568
  2  0.746481
  3  0.192727
  4  0.238242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/751513': 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) = 3672.13484283
delta logL = 0.789535263357

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  2.474e+01  3.316e+01  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  5.588e-01  7.465e-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:  4.493e-01  2.382e-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.013e+00  1.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.75
Ra Dec: 171.243 49.567
Photon Index (Free Index): 0.56 +/- 0.75
Photon Flux (Free Index): 3.99e-09 +/- 4.02e-09
Energy Flux (Free Index): 7.57e-05 +/- 1.04e-04

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/751513/cmap_HighResolution_239587201_239846401_4FGL_J1124.9+4934_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.25e-09', energy_flux2='7.57e-05', photon_flux_error='6.28e-09', dlogl='7.90e-01', energy_flux='1.80e-05', photon_flux2='3.99e-09', job_status='DONE', time_completed='2021-09-03 19:01:48.106623', photon_index_error2='0.75', photon_index2='0.56', ts='8.18', fit_tolerance='1e-08', GAL='0.45', photon_index_error='0.00', energy_flux_error2='1.04e-04', EG='1.01', time_epoch_completed='1630720908.11', return_code='0', job_id='751513', GAL2='0.45', EG2='1.01', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='4.02e-09', ts2='9.75', photon_index='1.52' WHERE bin_id='1' AND source_name='4FGL J1124.9+4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 19:01:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 751513: <4FGL_J1124.9+4934_daily_bin1> in cluster <slac> Done

Job <4FGL_J1124.9+4934_daily_bin1> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 18:50:57 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 18:51:04 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:04 2021
Terminated at Fri Sep  3 19:01:48 2021
Results reported at Fri Sep  3 19:01:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_daily_bin1 171.243 49.5674 239587201 239846401 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 :                                   548.37 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             295.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            651 sec.

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

