/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 8 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 = 7403
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1124.9+4934_daily_bin436
RA = 171.243, Dec = 49.5674
tmin = 352339201, tmax = 352598401
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='758400', job_status='RUN', time_executed='2021-09-03 19:18:56.548550', time_epoch_executed='1630721936.55' WHERE source_name='4FGL J1124.9+4934' and cadence='daily' and bin_id='436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/758400

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/758400/ft1_4FGL_J1124.9+4934_daily_bin436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/758400/ft2_4FGL_J1124.9+4934_daily_bin436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/758400/ft1_4FGL_J1124.9+4934_daily_bin436.fits outfile=/scratch/kocevski/758400/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin436.fits ra=171.243 dec=49.5674 rad=12.0 tmin=352339201.0 tmax=352598401.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.50
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/758400/ft1_filtered_4FGL_J1124.9+4934_daily_bin436.fits" evtable="EVENTS" scfile=/scratch/kocevski/758400/ft2_4FGL_J1124.9+4934_daily_bin436.fits sctable="SC_DATA" outfile=/scratch/kocevski/758400/ltcube_352339201_352598401_4FGL_J1124.9+4934_daily_bin436.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/758400/ft2_4FGL_J1124.9+4934_daily_bin436.fits
.....................!
real 15.09
user 14.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/758400/ft1_filtered_4FGL_J1124.9+4934_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/758400/ft2_4FGL_J1124.9+4934_daily_bin436.fits sctable="SC_DATA" expcube=/scratch/kocevski/758400/ltcube_352339201_352598401_4FGL_J1124.9+4934_daily_bin436.fits outfile=/scratch/kocevski/758400/expmap_352339201_352598401_4FGL_J1124.9+4934_daily_bin436.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/758400/ltcube_352339201_352598401_4FGL_J1124.9+4934_daily_bin436.fits
.....................!
real 191.33
user 186.32
sys 4.39

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 222 point sources and 0 extended sources

Setting source of interest to:
4FGL J1124.9+4934 @ 171.243 49.5674

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/758400/ft1_filtered_4FGL_J1124.9+4934_daily_bin436.fits scfile=/scratch/kocevski/758400/ft2_4FGL_J1124.9+4934_daily_bin436.fits outfile=/scratch/kocevski/758400/cmap_352339201_352598401_4FGL_J1124.9+4934_daily_bin436.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.40
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6726       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9276       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10610E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11923E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    82.108       1.0000         .10000E-03   10000.    
     6 'norm      '    5.2882       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.919       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3117       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    38.771       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .96862E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15537E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0031       1.0000         .10000E-03   10000.    
    15 'Prefactor '    52.217       1.0000         .10000E-03   10000.    
    16 'norm      '    .25456       1.0000         .10000E-03   10000.    
    17 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1940       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.7306       1.0000         .10000E-03   10000.    
    20 'norm      '    9.1187       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.1605       1.0000         .10000E-03   10000.    
    23 'norm      '    6.3906       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1157       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .92079       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=   6743.876     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3124 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6726        3.1574        .15218E-07   -.25840E-04
   2  norm          1.9275        1.3399        .14805E-07    .15284E-05
   3  Prefactor     .10000E-03    22.577        .10308E-06** at limit **
   4  Prefactor     .10000E-03    113.21        .35368E-05** at limit **
   5  Prefactor     82.165        75.743        .45214E-05    .11578E-03
   6  norm          5.2884        2.4761       -.50803E-07   -.53135E-04
   7  Prefactor     43.924        48.344       -.12926E-06    .11685E-04
   8  norm          1.3117        .48457       -.28589E-07   -.58188E-03
   9  Prefactor     .10000E-03    9.8341        .55644E-06** at limit **
  10  Prefactor     .10000E-03    50.911       -.28161E-06** at limit **
  11  norm          38.783        37.971        .85711E-06    .33606E-04
  12  Prefactor     .10014E-03    7.0800        .79795E-06** at limit **
  13  Prefactor     .10068E-03    161.93       -.11383E-04** at limit **
  14  norm          .99922        1.4456       -.42717E-06   -.36785E-03
  15  Prefactor     52.265        45.105        .65054E-06   -.60837E-04
  16  norm          .25309        .90865       -.29096E-06   -.46215E-03
  17  norm          .10000E-03    6.4355       -.33626E-06** at limit **
  18  Prefactor     3.1933        3.3119       -.83848E-08   -.27969E-04
  19  Prefactor     7.7470        34.844       -.45937E-06   -.30389E-04
  20  norm          9.1191        6.2117       -.65742E-06   -.39669E-03
  21  Prefactor     .10000E-03    11.991       -.25501E-06** at limit **
  22  norm          8.1600        2.8811       -.17074E-07    .24851E-04
  23  norm          6.3900        5.4619        .15217E-07   -.20442E-04
  24  Prefactor     .10000E-03    9.4160       -.10585E-06** at limit **
  25  Normalizat    1.1158        .18271        .18997E-05   -.78488E-04
  26  Prefactor     .92076        .22536       -.37552E-05   -.87015E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.67263
  norm       = 1.92753
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 82.1649
  norm       = 5.28835
  Prefactor  = 43.9236
  norm       = 1.31168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 38.7834
  Prefactor  = 0.000100144
  Prefactor  = 0.00010068
  norm       = 0.999221
  Prefactor  = 52.2648
  norm       = 0.253091
  norm       = 0.0001
  Prefactor  = 3.19326
  Prefactor  = 7.74699
  norm       = 9.11911
  Prefactor  = 0.0001
  norm       = 8.16003
  norm       = 6.38999
  Prefactor  = 0.0001
  Normalizat = 1.11581
  Prefactor  = 0.920756
 **********
 **   18 **HESSE 
 **********

 FCN=   6743.876     FROM HESSE     STATUS=OK           466 CALLS     3590 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6726        3.1572        .91087E-04   -1.5154    
   2  norm          1.9275        1.3408        .76992E-04   -1.5430    
   3  Prefactor     .10000E-03    22.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    113.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     82.165        76.727        .22163E-03   -1.3893    
   6  norm          5.2884        2.4746        .85224E-04   -1.5248    
   7  Prefactor     43.924        48.452        .60495E-04   -1.4381    
   8  norm          1.3117        .48391        .33649E-04   -1.5479    
   9  Prefactor     .10000E-03    9.8753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    50.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          38.783        37.975        .64371E-04   -1.4462    
  12  Prefactor     .10014E-03    17.936        .25788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10068E-03    203.87        .52965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .99922        1.4496        .14647E-02   -1.5508    
  15  Prefactor     52.265        44.973        .55502E-04   -1.4261    
  16  norm          .25309        .90981        .13040E-03   -1.5607    
  17  norm          .10000E-03    6.4704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1933        3.2989        .14415E-03   -1.5351    
  19  Prefactor     7.7470        34.815        .14422E-03   -1.5151    
  20  norm          9.1191        6.1893        .66362E-03   -1.5104    
  21  Prefactor     .10000E-03    12.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.1600        2.8863        .78312E-04   -1.5137    
  23  norm          6.3900        5.4585        .15877E-03   -1.5202    
  24  Prefactor     .10000E-03    9.4402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1158        .20167        .23193E-03   -.89246    
  26  Prefactor     .92076        .24769        .32152E-03   -.95420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11781e-08
Minuit parameter uncertainties:
  1  3.15726
  2  1.34078
  3  1.54697e-05
  4  0.000747211
  5  76.82
  6  2.47461
  7  48.4952
  8  0.483908
  9  4.69754e-05
  10  7.66826e-06
  11  37.9991
  12  0.00321954
  13  0.0236285
  14  1.44966
  15  45.0026
  16  0.909858
  17  1.23516e-05
  18  3.2991
  19  32.8772
  20  6.18975
  21  4.71358e-06
  22  2.88632
  23  5.45893
  24  4.71771e-06
  25  0.201807
  26  0.247993
Done.

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

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  3.878e+01  3.800e+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.208e-01  2.480e-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.116e+00  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.13
Ra Dec: 171.243 49.567
Photon Index (Fixed Index): 1.52 +/- 0.00
Photon Flux (Fixed Index): 6.67e-09 +/- 6.54e-09
Energy Flux (Fixed Index): 1.92e-05 +/- 1.88e-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) = 6743.6922029
delta logL = 0.184217171418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6743.66808456
delta logL = 0.208335505991

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.972       1.0000         .10000E-03   10000.    
     2 'alpha     '    .94113       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92514       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=   6743.668     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.950        37.282       -.14321E-04   -.34110E-03
   2  alpha         .94065        .83030       -.14033E-03    .38375E-04
   3  Normalizat    1.1154        .16466        .85094E-07    .64974E-03
   4  Prefactor     .92515        .21060        .10359E-05    .41730E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 29.9503
  alpha      = 0.940651
  Normalizat = 1.11537
  Prefactor  = 0.925151
 **********
 **   18 **HESSE 
 **********

 FCN=   6743.668     FROM HESSE     STATUS=OK            27 CALLS      232 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.950        36.247        .73184E-04   -1.4613    
   2  alpha         .94065        .80755        .29220E-01   -.67352    
   3  Normalizat    1.1154        .19149        .23195E-03   -.89260    
   4  Prefactor     .92515        .24448        .32081E-03   -.95268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20271e-10
Minuit parameter uncertainties:
  1  36.2735
  2  0.832507
  3  0.191613
  4  0.244771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/758400': 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) = 6743.66808435
delta logL = 0.208335716454

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  2.995e+01  3.627e+01  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  9.407e-01  8.325e-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:  9.252e-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:  1.115e+00  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.54
Ra Dec: 171.243 49.567
Photon Index (Free Index): 0.94 +/- 0.83
Photon Flux (Free Index): 3.82e-09 +/- 4.35e-09
Energy Flux (Free Index): 3.84e-05 +/- 5.60e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/758400/cmap_HighResolution_352339201_352598401_4FGL_J1124.9+4934_daily_bin436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.67e-09', energy_flux2='3.84e-05', photon_flux_error='6.54e-09', dlogl='2.08e-01', energy_flux='1.92e-05', photon_flux2='3.82e-09', job_status='DONE', time_completed='2021-09-03 19:32:10.783997', photon_index_error2='0.83', photon_index2='0.94', ts='6.13', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='5.60e-05', EG='1.12', time_epoch_completed='1630722730.78', return_code='0', job_id='758400', GAL2='0.93', EG2='1.12', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='4.35e-09', ts2='6.54', photon_index='1.52' WHERE bin_id='436' AND source_name='4FGL J1124.9+4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 19:32:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 758400: <4FGL_J1124.9+4934_daily_bin436> in cluster <slac> Done

Job <4FGL_J1124.9+4934_daily_bin436> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 19:16:28 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 19:18:39 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:18:39 2021
Terminated at Fri Sep  3 19:32:11 2021
Results reported at Fri Sep  3 19:32:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_daily_bin436 171.243 49.5674 352339201 352598401 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 :                                   791.03 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             298.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            943 sec.

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

