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


Performing analysis on: 4FGL_J1124.9+4934_daily_bin889
RA = 171.243, Dec = 49.5674
tmin = 469756801, tmax = 470016001
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='763635', job_status='RUN', time_executed='2021-09-03 19:32:14.812499', time_epoch_executed='1630722734.81' WHERE source_name='4FGL J1124.9+4934' and cadence='daily' and bin_id='889'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763635

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763635/ft1_4FGL_J1124.9+4934_daily_bin889.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763635/ft2_4FGL_J1124.9+4934_daily_bin889.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763635/ft1_4FGL_J1124.9+4934_daily_bin889.fits outfile=/scratch/kocevski/763635/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin889.fits ra=171.243 dec=49.5674 rad=12.0 tmin=469756801.0 tmax=470016001.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.26
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763635/ft1_filtered_4FGL_J1124.9+4934_daily_bin889.fits evtable="EVENTS" scfile=/scratch/kocevski/763635/ft2_4FGL_J1124.9+4934_daily_bin889.fits sctable="SC_DATA" expcube=/scratch/kocevski/763635/ltcube_469756801_470016001_4FGL_J1124.9+4934_daily_bin889.fits outfile=/scratch/kocevski/763635/expmap_469756801_470016001_4FGL_J1124.9+4934_daily_bin889.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/763635/ltcube_469756801_470016001_4FGL_J1124.9+4934_daily_bin889.fits
.....................!
real 198.55
user 187.73
sys 5.34

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/763635/ft1_filtered_4FGL_J1124.9+4934_daily_bin889.fits scfile=/scratch/kocevski/763635/ft2_4FGL_J1124.9+4934_daily_bin889.fits outfile=/scratch/kocevski/763635/cmap_469756801_470016001_4FGL_J1124.9+4934_daily_bin889.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763635/ft1_filtered_4FGL_J1124.9+4934_daily_bin889.fits scfile=/scratch/kocevski/763635/ft2_4FGL_J1124.9+4934_daily_bin889.fits outfile=/scratch/kocevski/763635/cmap_HighResolution_469756801_470016001_4FGL_J1124.9+4934_daily_bin889.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2092       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5374       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.844       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.600       1.0000         .10000E-03   10000.    
     6 'norm      '    2.7340       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.642       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4424       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15586E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.7617       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.565       1.0000         .10000E-03   10000.    
    16 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7557       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4180       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.842       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5920       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.4167       1.0000         .10000E-03   10000.    
    23 'norm      '    11.807       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.4958       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2639       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .57533       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=   5975.249     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3129 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2091        1.2881        .96333E-10    .25870E-04
   2  norm          1.5374        1.1714       -.85815E-08    .70996E-05
   3  Prefactor     15.855        82.508        .13245E-05   -.48766E-05
   4  Prefactor     .10000E-03    37.935       -.29856E-07** at limit **
   5  Prefactor     52.272        91.637       -.12638E-04   -.74855E-04
   6  norm          2.7342        1.8763       -.13852E-07   -.66400E-04
   7  Prefactor     43.646        52.570        .27517E-06   -.22461E-04
   8  norm          1.4426        .42475        .28974E-07    .24347E-03
   9  Prefactor     .10000E-03    6.3632        .21948E-07** at limit **
  10  Prefactor     .10000E-03    17.483       -.94637E-07** at limit **
  11  norm          .10000E-03    17.406        .21140E-06** at limit **
  12  Prefactor     .10000E-03    1.5747        .16852E-07** at limit **
  13  Prefactor     .10000E-03    208.92        .40313E-04** at limit **
  14  norm          1.7614        2.7132        .65157E-07    .32472E-05
  15  Prefactor     12.573        31.394       -.35279E-06   -.18202E-04
  16  norm          .10000E-03    .32860        .40764E-07** at limit **
  17  norm          2.7552        5.4706       -.58960E-06   -.15726E-03
  18  Prefactor     2.4184        3.3714       -.59829E-07   -.78499E-04
  19  Prefactor     19.844        27.471       -.25546E-06   -.13054E-04
  20  norm          1.5922        3.0095       -.88680E-08   -.27275E-04
  21  Prefactor     .10000E-03    13.175       -.18671E-06** at limit **
  22  norm          1.4163        1.8300       -.19229E-07   -.39383E-04
  23  norm          11.807        9.1314        .26831E-07   -.35272E-04
  24  Prefactor     9.4982        29.643       -.43317E-07   -.18722E-04
  25  Normalizat    1.2636        .17517       -.91897E-06    .17906E-03
  26  Prefactor     .57584        .20862        .25700E-05   -.13429E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.20908
  norm       = 1.53741
  Prefactor  = 15.8552
  Prefactor  = 0.0001
  Prefactor  = 52.2725
  norm       = 2.73424
  Prefactor  = 43.6461
  norm       = 1.44257
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 1.76145
  Prefactor  = 12.5733
  norm       = 0.0001
  norm       = 2.75517
  Prefactor  = 2.41843
  Prefactor  = 19.8442
  norm       = 1.59222
  Prefactor  = 0.0001
  norm       = 1.41632
  norm       = 11.8068
  Prefactor  = 9.49816
  Normalizat = 1.26361
  Prefactor  = 0.575838
 **********
 **   18 **HESSE 
 **********

 FCN=   5975.249     FROM HESSE     STATUS=OK           476 CALLS     3605 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2091        1.2977        .88335E-04   -1.5488    
   2  norm          1.5374        1.1642        .71070E-04   -1.5460    
   3  Prefactor     15.855        82.629        .10062E-03   -1.4911    
   4  Prefactor     .10000E-03    37.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     52.272        93.378        .27650E-03   -1.4261    
   6  norm          2.7342        1.8735        .84925E-04   -1.5377    
   7  Prefactor     43.646        52.693        .60686E-04   -1.4386    
   8  norm          1.4426        .42625        .26524E-04   -1.5468    
   9  Prefactor     .10000E-03    6.3752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    17.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.5814        .94715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.779        .92654E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.7614        2.6869        .14758E-03   -1.5443    
  15  Prefactor     12.573        30.820        .11300E-03   -1.4999    
  16  norm          .10000E-03    .40248        .84126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7552        5.4838        .12260E-02   -1.5376    
  18  Prefactor     2.4184        3.3629        .15770E-03   -1.5397    
  19  Prefactor     19.844        27.294        .89915E-04   -1.4817    
  20  norm          1.5922        2.9690        .17884E-03   -1.5456    
  21  Prefactor     .10000E-03    13.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4163        1.8073        .11355E-03   -1.5470    
  23  norm          11.807        9.1033        .11658E-03   -1.5021    
  24  Prefactor     9.4982        29.606        .13005E-03   -1.5091    
  25  Normalizat    1.2636        .19175        .19701E-03   -.84659    
  26  Prefactor     .57584        .22393        .34980E-03   -1.0861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10148e-10
Minuit parameter uncertainties:
  1  1.29768
  2  1.16419
  3  72.5484
  4  2.37134e-06
  5  93.6409
  6  1.87354
  7  52.7495
  8  0.42625
  9  3.30651e-06
  10  1.33639e-06
  11  2.5743e-06
  12  5.07517e-07
  13  0.000513012
  14  2.68708
  15  30.859
  16  3.89639e-06
  17  5.48481
  18  3.36318
  19  27.3114
  20  2.9693
  21  6.46065e-06
  22  1.80737
  23  9.1044
  24  29.6517
  25  0.191857
  26  0.224276
Done.

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

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.000e-04  2.574e-06  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.758e-01  2.243e-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.264e+00  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/763635/likelihoodResults_469756801_470016001_4FGL_J1124.9+4934_daily_bin889.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5975.24909034
delta logL = -0.000270833454124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5975.24882188
delta logL = -2.37291715166e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10437E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4951       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57587       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=   5975.249     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      287 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    99.226        .18142E-01** at limit **
   2  alpha         1.5896        4.1550        .50000        .62914E-07
   3  Normalizat    1.2636        .92801E-02    .19700E-03    .13422E-03
   4  Prefactor     .57584        .11570E-01    .34980E-03    .76409E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100009
  alpha      = 1.58959
  Normalizat = 1.26361
  Prefactor  = 0.575843
 **********
 **   18 **HESSE 
 **********

 FCN=   5975.249     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      316 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    599.46        .31499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5896        3.2948        .50000       -.37273    
   3  Normalizat    1.2636        .23733E-01    .39401E-04   -.84659    
   4  Prefactor     .57584        .29588E-01    .13992E-04   -1.0861    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.52452e-09
Minuit parameter uncertainties:
  1  0.00462503
  2  2416.63
  3  0.0237328
  4  0.0295883
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763635': 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): 102
logL (Free Index) = 5975.2488195
delta logL = 6.21730578132e-09

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.000e-04  4.625e-03  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  1.590e+00  2.417e+03  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.758e-01  2.959e-02  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.264e+00  2.373e-02  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/763635/cmap_HighResolution_469756801_470016001_4FGL_J1124.9+4934_daily_bin889.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.29e-05', job_status='DONE', photon_flux_upper_limit='1.49e-08', time_completed='2021-09-03 19:46:43.402538', job_id='763635', GAL2='0.58', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630723603.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='6.22e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.52' WHERE bin_id='889' AND source_name='4FGL J1124.9+4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 19:46:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 763635: <4FGL_J1124.9+4934_daily_bin889> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_daily_bin889 171.243 49.5674 469756801 470016001 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 :                                   858.50 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             326.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            915 sec.

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

