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


Performing analysis on: 4FGL_J1124.9+4934_daily_bin967
RA = 171.243, Dec = 49.5674
tmin = 489974401, tmax = 490233601
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='763767', job_status='RUN', time_executed='2021-09-03 19:32:51.170567', time_epoch_executed='1630722771.17' WHERE source_name='4FGL J1124.9+4934' and cadence='daily' and bin_id='967'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763767

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763767/ft1_4FGL_J1124.9+4934_daily_bin967.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763767/ft2_4FGL_J1124.9+4934_daily_bin967.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763767/ft1_4FGL_J1124.9+4934_daily_bin967.fits outfile=/scratch/kocevski/763767/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin967.fits ra=171.243 dec=49.5674 rad=12.0 tmin=489974401.0 tmax=490233601.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 4.17
user 3.53
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/763767/ft2_4FGL_J1124.9+4934_daily_bin967.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/763767/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin967.fits evtable="EVENTS" outfile="/scratch/kocevski/763767/ft1_filtered_4FGL_J1124.9+4934_daily_bin967.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.59
user 0.36
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763767/ft1_filtered_4FGL_J1124.9+4934_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/763767/ft2_4FGL_J1124.9+4934_daily_bin967.fits sctable="SC_DATA" expcube=/scratch/kocevski/763767/ltcube_489974401_490233601_4FGL_J1124.9+4934_daily_bin967.fits outfile=/scratch/kocevski/763767/expmap_489974401_490233601_4FGL_J1124.9+4934_daily_bin967.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/763767/ltcube_489974401_490233601_4FGL_J1124.9+4934_daily_bin967.fits
.....................!
real 190.74
user 185.62
sys 4.29

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/763767/ft1_filtered_4FGL_J1124.9+4934_daily_bin967.fits scfile=/scratch/kocevski/763767/ft2_4FGL_J1124.9+4934_daily_bin967.fits outfile=/scratch/kocevski/763767/cmap_489974401_490233601_4FGL_J1124.9+4934_daily_bin967.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.54
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763767/ft1_filtered_4FGL_J1124.9+4934_daily_bin967.fits scfile=/scratch/kocevski/763767/ft2_4FGL_J1124.9+4934_daily_bin967.fits outfile=/scratch/kocevski/763767/cmap_HighResolution_489974401_490233601_4FGL_J1124.9+4934_daily_bin967.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.55
user 0.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8536       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3400       1.0000         .10000E-03   10000.    
     3 'Prefactor '    118.60       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11057E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4905       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.7424       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8553       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.662       1.0000         .10000E-03   10000.    
    14 'norm      '    3.9320       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5066       1.0000         .10000E-03   10000.    
    16 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .65140       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .89507       1.0000         .10000E-03   10000.    
    19 'Prefactor '    50.216       1.0000         .10000E-03   10000.    
    20 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.998       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3014       1.0000         .10000E-03   10000.    
    23 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.848       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .96443       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99409       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=   5994.839     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3140 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8528        2.0750       -.31835E-07    .71566E-05
   2  norm          1.3400        1.0405       -.10664E-07    .54337E-05
   3  Prefactor     118.58        86.330        .82734E-06    .45950E-04
   4  Prefactor     .10000E-03    29.278        .27663E-06** at limit **
   5  Prefactor     .10000E-03    31.637       -.17979E-06** at limit **
   6  norm          .10000E-03    .65134       -.58124E-07** at limit **
   7  Prefactor     .10000E-03    56.838       -.19680E-05** at limit **
   8  norm          1.4905        .46963       -.40237E-08    .13969E-03
   9  Prefactor     .10000E-03    23.094       -.32371E-06** at limit **
  10  Prefactor     .10000E-03    29.293        .24117E-06** at limit **
  11  norm          5.7530        42.108       -.99118E-06   -.29148E-05
  12  Prefactor     9.8590        6.3987        .12799E-06    .16731E-03
  13  Prefactor     22.697        26.451       -.10205E-05   -.15449E-04
  14  norm          3.9321        2.8357       -.26924E-07    .75383E-04
  15  Prefactor     7.4875        32.011        .17246E-05    .45056E-04
  16  norm          .10000E-03    .49435       -.73534E-07** at limit **
  17  norm          .65466        20.396        .85245E-05   -.81966E-04
  18  Prefactor     .88158        3.8807       -.12409E-06    .42804E-03
  19  Prefactor     50.247        45.407       -.21883E-05   -.40258E-04
  20  norm          .10000E-03    1.9721        .45466E-07** at limit **
  21  Prefactor     45.059        28.557        .12421E-06    .25517E-03
  22  norm          1.3022        2.6182        .10473E-06    .29702E-03
  23  norm          .10000E-03    16.427       -.31158E-06** at limit **
  24  Prefactor     33.850        26.620        .27347E-06    .12096E-03
  25  Normalizat    .96440        .17029       -.10396E-07    .31416E-03
  26  Prefactor     .99423        .20838        .92225E-06    .34351E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.8528
  norm       = 1.34001
  Prefactor  = 118.584
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.49049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.75299
  Prefactor  = 9.85904
  Prefactor  = 22.6975
  norm       = 3.93215
  Prefactor  = 7.48748
  norm       = 0.0001
  norm       = 0.654656
  Prefactor  = 0.88158
  Prefactor  = 50.247
  norm       = 0.0001
  Prefactor  = 45.0588
  norm       = 1.30222
  norm       = 0.0001
  Prefactor  = 33.8497
  Normalizat = 0.964402
  Prefactor  = 0.994234
 **********
 **   18 **HESSE 
 **********

 FCN=   5994.839     FROM HESSE     STATUS=OK           458 CALLS     3598 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8528        2.0684        .11472E-03   -1.5436    
   2  norm          1.3400        1.0478        .67810E-04   -1.5476    
   3  Prefactor     118.58        86.548        .18475E-03   -1.3526    
   4  Prefactor     .10000E-03    29.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .65952        .61030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    57.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4905        .47117        .28938E-04   -1.5464    
   9  Prefactor     .10000E-03    23.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.7530        42.183        .16761E-03   -1.5228    
  12  Prefactor     9.8590        6.4070        .12764E-03   -1.5080    
  13  Prefactor     22.697        26.529        .84141E-04   -1.4755    
  14  norm          3.9321        2.8264        .10562E-03   -1.5311    
  15  Prefactor     7.4875        30.510        .14638E-03   -1.5161    
  16  norm          .10000E-03    .73590        .10115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .65466        20.762        .39920E-02   -1.5546    
  18  Prefactor     .88158        4.0424        .25542E-03   -1.5520    
  19  Prefactor     50.247        44.999        .28296E-03   -1.4289    
  20  norm          .10000E-03    1.9788        .10616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     45.059        28.727        .59768E-04   -1.4364    
  22  norm          1.3022        2.5961        .16298E-03   -1.5480    
  23  norm          .10000E-03    17.023        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     33.850        26.590        .68878E-04   -1.4544    
  25  Normalizat    .96440        .19883        .22856E-03   -.94233    
  26  Prefactor     .99423        .24452        .28968E-03   -.92922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81907e-08
Minuit parameter uncertainties:
  1  2.06852
  2  1.04784
  3  86.6401
  4  1.15997e-05
  5  5.17286e-05
  6  2.9729e-06
  7  0.000424765
  8  0.471171
  9  6.1391e-05
  10  2.30023e-06
  11  31.1871
  12  6.40745
  13  26.5423
  14  2.82646
  15  30.2554
  16  1.53389e-05
  17  7.37574
  18  3.77578
  19  45.0294
  20  6.14128e-06
  21  28.7353
  22  2.59628
  23  5.17923e-05
  24  26.5995
  25  0.198984
  26  0.244798
Done.

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

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  5.753e+00  3.119e+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:  9.942e-01  2.448e-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.644e-01  1.990e-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: 2.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/763767/likelihoodResults_489974401_490233601_4FGL_J1124.9+4934_daily_bin967.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) = 5994.75231953
delta logL = 0.0862782964196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5994.75009523
delta logL = 0.0885025971374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0863       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3506       1.0000          .0000       5.0000    
     3 'Normalizat'    .96400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99035       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=   5994.750     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      227 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1304        762.78        .37673E-02   -.11589E-03
   2  alpha         2.3361        2.9320        .41245       -.65089E-05
   3  Normalizat    .96440        .44424E-01    .45714E-01    .33454E-03
   4  Prefactor     .98915        .50393E-01    .46146E-01    .48084E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.13039
  alpha      = 2.33611
  Normalizat = 0.964401
  Prefactor  = 0.989155
 **********
 **   18 **HESSE 
 **********

 FCN=   5994.750     FROM HESSE     STATUS=OK            29 CALLS      256 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1304        25.760        .15069E-03   -1.5174    
   2  alpha         2.3361        1.8189        .23375E-01   -.65604E-01
   3  Normalizat    .96440        .18711        .22858E-03   -.94233    
   4  Prefactor     .98915        .24136        .29031E-03   -.93092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93463e-10
Minuit parameter uncertainties:
  1  25.8001
  2  2.03817
  3  0.187237
  4  0.241627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763767': 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) = 5994.75002447
delta logL = 0.0885733585019

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  7.130e+00  2.580e+01  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  2.336e+00  2.038e+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:  9.892e-01  2.416e-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.644e-01  1.872e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/763767/cmap_HighResolution_489974401_490233601_4FGL_J1124.9+4934_daily_bin967.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-05', job_status='DONE', photon_flux_upper_limit='2.16e-08', time_completed='2021-09-03 19:46:48.755963', job_id='763767', GAL2='0.99', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630723608.76', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='8.86e-02', ts2='0.22', photon_index_error='0.00', photon_index='1.52' WHERE bin_id='967' AND source_name='4FGL J1124.9+4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 19:46:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 763767: <4FGL_J1124.9+4934_daily_bin967> in cluster <slac> Done

Job <4FGL_J1124.9+4934_daily_bin967> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 19:31:39 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 19:32:24 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:32:24 2021
Terminated at Fri Sep  3 19:46:49 2021
Results reported at Fri Sep  3 19:46:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_daily_bin967 171.243 49.5674 489974401 490233601 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 :                                   832.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             326.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            910 sec.

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

