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


Performing analysis on: 4FGL_J1124.9+4934_daily_bin4
RA = 171.243, Dec = 49.5674
tmin = 240364801, tmax = 240624001
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='751516', job_status='RUN', time_executed='2021-09-03 18:53:19.004390', time_epoch_executed='1630720399.0' WHERE source_name='4FGL J1124.9+4934' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/751516

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/751516/ft1_4FGL_J1124.9+4934_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/751516/ft2_4FGL_J1124.9+4934_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/751516/ft1_4FGL_J1124.9+4934_daily_bin4.fits outfile=/scratch/kocevski/751516/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin4.fits ra=171.243 dec=49.5674 rad=12.0 tmin=240364801.0 tmax=240624001.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.44
user 1.27
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/751516/ft1_filtered_4FGL_J1124.9+4934_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/751516/ft2_4FGL_J1124.9+4934_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/751516/ltcube_240364801_240624001_4FGL_J1124.9+4934_daily_bin4.fits outfile=/scratch/kocevski/751516/expmap_240364801_240624001_4FGL_J1124.9+4934_daily_bin4.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/751516/ltcube_240364801_240624001_4FGL_J1124.9+4934_daily_bin4.fits
.....................!
real 192.89
user 188.11
sys 4.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/751516/ft1_filtered_4FGL_J1124.9+4934_daily_bin4.fits scfile=/scratch/kocevski/751516/ft2_4FGL_J1124.9+4934_daily_bin4.fits outfile=/scratch/kocevski/751516/cmap_240364801_240624001_4FGL_J1124.9+4934_daily_bin4.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/751516/ft1_filtered_4FGL_J1124.9+4934_daily_bin4.fits scfile=/scratch/kocevski/751516/ft2_4FGL_J1124.9+4934_daily_bin4.fits outfile=/scratch/kocevski/751516/cmap_HighResolution_240364801_240624001_4FGL_J1124.9+4934_daily_bin4.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.416       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3013       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7443       1.0000         .10000E-03   10000.    
     6 'norm      '    4.5511       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2637       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    32.784       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.608       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11848       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.751       1.0000         .10000E-03   10000.    
    16 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.0682       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2446       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.5165       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.6815       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12070E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0384       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77619       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=   4082.559     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     2696 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.416        5.1146       -.10478E-06   -.61883E-04
   2  norm          1.3015        2.9477        .35557E-06    .10021E-03
   3  Prefactor     .10000E-03    24.933        .61586E-06** at limit **
   4  Prefactor     .10000E-03    83.526       -.32985E-05** at limit **
   5  Prefactor     3.7433        435.33       -.10650E-05    .15138E-05
   6  norm          4.5515        3.5893       -.44402E-07   -.82345E-05
   7  Prefactor     .10000E-03    43.194       -.14040E-05** at limit **
   8  norm          2.2636        .62035        .15438E-07   -.10948E-03
   9  Prefactor     .10000E-03    57.913        .37442E-05** at limit **
  10  Prefactor     .10000E-03    41.395       -.23557E-05** at limit **
  11  norm          32.784        38.204       -.27808E-07    .38318E-05
  12  Prefactor     16.608        11.740       -.26000E-06    .11054E-04
  13  Prefactor     .10000E-03    11.048        .62030E-07** at limit **
  14  norm          .11993        2.8283        .16344E-05   -.16168E-02
  15  Prefactor     19.691        50.447       -.13211E-05   -.14992E-03
  16  norm          .10000E-03    .41198       -.12526E-05** at limit **
  17  norm          6.0684        6.5172       -.14646E-05   -.26626E-03
  18  Prefactor     2.2448        3.2491        .62819E-09    .40497E-04
  19  Prefactor     .10000E-03    14.556       -.32551E-06** at limit **
  20  norm          7.5164        7.2141       -.78364E-07    .16167E-04
  21  Prefactor     .10000E-03    7.8148       -.18366E-07** at limit **
  22  norm          .10000E-03    1.5221        .15014E-06** at limit **
  23  norm          6.6842        9.0516        .20478E-06    .29869E-04
  24  Prefactor     .10000E-03    56.832        .32006E-05** at limit **
  25  Normalizat    1.0385        .19951        .22607E-05    .66681E-04
  26  Prefactor     .77606        .23813       -.71947E-06    .98584E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.4156
  norm       = 1.30151
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 3.74334
  norm       = 4.55145
  Prefactor  = 0.000100001
  norm       = 2.26361
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 32.7841
  Prefactor  = 16.6079
  Prefactor  = 0.0001
  norm       = 0.119926
  Prefactor  = 19.6913
  norm       = 0.0001
  norm       = 6.06837
  Prefactor  = 2.24484
  Prefactor  = 0.0001
  norm       = 7.51638
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.68418
  Prefactor  = 0.000100001
  Normalizat = 1.03849
  Prefactor  = 0.776061
 **********
 **   18 **HESSE 
 **********

 FCN=   4082.559     FROM HESSE     STATUS=OK           460 CALLS     3156 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.416        5.1163        .86815E-04   -1.4975    
   2  norm          1.3015        2.9214        .15558E-03   -1.5480    
   3  Prefactor     .10000E-03    24.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    83.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.7433        436.58        .20866E-03   -1.5321    
   6  norm          4.5515        3.5770        .10215E-03   -1.5281    
   7  Prefactor     .10000E-03    43.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2636        .62138        .25551E-04   -1.5407    
   9  Prefactor     .10000E-03    58.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    41.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          32.784        38.204        .69983E-04   -1.4562    
  12  Prefactor     16.608        11.778        .98280E-04   -1.4893    
  13  Prefactor     .10000E-03    11.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .11993        18.774        .16662E-02   -1.5639    
  15  Prefactor     19.691        51.642        .90123E-04   -1.4820    
  16  norm          .10000E-03    .42308        .80015E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.0684        6.5389        .81494E-03   -1.5215    
  18  Prefactor     2.2448        3.2298        .13238E-03   -1.5408    
  19  Prefactor     .10000E-03    14.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.5164        7.2115        .14628E-03   -1.5160    
  21  Prefactor     .10000E-03    7.8176        .17444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.5585        .15364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.6842        9.0282        .15524E-03   -1.5191    
  24  Prefactor     .10000E-03    57.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0385        .23080        .21965E-03   -.91752    
  26  Prefactor     .77606        .27533        .30945E-03   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78914e-08
Minuit parameter uncertainties:
  1  5.11642
  2  2.92173
  3  8.67853e-05
  4  0.00093925
  5  81.4668
  6  3.57716
  7  0.000321327
  8  0.62138
  9  0.000730253
  10  0.000475835
  11  38.2326
  12  11.7792
  13  1.19842e-06
  14  3.00067
  15  51.7592
  16  1.2599e-05
  17  6.53964
  18  3.23005
  19  2.60128e-05
  20  7.21235
  21  8.23811e-06
  22  4.05122e-06
  23  9.03004
  24  0.000524707
  25  0.231025
  26  0.275813
Done.

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

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  3.278e+01  3.823e+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:  7.761e-01  2.758e-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.038e+00  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 171.243 49.567
Photon Index (Fixed Index): 1.52 +/- 0.00
Photon Flux (Fixed Index): 5.64e-09 +/- 6.58e-09
Energy Flux (Fixed Index): 1.62e-05 +/- 1.89e-05

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

Saving results to:
/scratch/kocevski/751516/likelihoodResults_240364801_240624001_4FGL_J1124.9+4934_daily_bin4.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) = 4082.21093305
delta logL = 0.34789850191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4082.21026051
delta logL = 0.348571043368

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.461       1.0000         .10000E-03   10000.    
     2 'alpha     '    .84596       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0389       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77675       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=   4082.210     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      213 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.461        35.946        .17859E-02   -.44736E-03
   2  alpha         .84574        .70594        .50000       -.57973E-05
   3  Normalizat    1.0388        .18956        .41370E-01    .44528E-05
   4  Prefactor     .77675        .23518        .69884E-01    .13517E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 31.461
  alpha      = 0.845736
  Normalizat = 1.03883
  Prefactor  = 0.776746
 **********
 **   18 **HESSE 
 **********

 FCN=   4082.210     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.461        39.079        .71435E-04   -1.4586    
   2  alpha         .84574        .75981        .23318E-02   -.72309    
   3  Normalizat    1.0388        .22078        .21957E-03   -.91741    
   4  Prefactor     .77675        .27347        .30923E-03   -1.0059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.73613e-10
Minuit parameter uncertainties:
  1  39.1103
  2  0.782323
  3  0.220977
  4  0.273949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/751516': 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) = 4082.21026032
delta logL = 0.348571233397

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  3.146e+01  3.911e+01  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  8.457e-01  7.823e-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:  7.767e-01  2.739e-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.039e+00  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.87
Ra Dec: 171.243 49.567
Photon Index (Free Index): 0.85 +/- 0.78
Photon Flux (Free Index): 4.12e-09 +/- 4.68e-09
Energy Flux (Free Index): 4.94e-05 +/- 7.85e-05

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/751516/cmap_HighResolution_240364801_240624001_4FGL_J1124.9+4934_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.69e-05', comment='SUCCESS', photon_flux='5.64e-09', energy_flux2='4.94e-05', photon_flux_error='6.58e-09', dlogl='3.49e-01', energy_flux='1.62e-05', photon_flux2='4.12e-09', job_status='DONE', time_completed='2021-09-03 19:03:58.512919', photon_index_error2='0.78', photon_index2='0.85', ts='2.17', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='3.02e-08', energy_flux_error2='7.85e-05', EG='1.04', time_epoch_completed='1630721038.51', return_code='0', job_id='751516', GAL2='0.78', EG2='1.04', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='4.68e-09', ts2='2.87', photon_index='1.52' WHERE bin_id='4' AND source_name='4FGL J1124.9+4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 19:03:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 751516: <4FGL_J1124.9+4934_daily_bin4> in cluster <slac> Done

Job <4FGL_J1124.9+4934_daily_bin4> 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) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 18:51:15 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:15 2021
Terminated at Fri Sep  3 19:03:59 2021
Results reported at Fri Sep  3 19:03:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_daily_bin4 171.243 49.5674 240364801 240624001 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 :                                   637.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             290.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            782 sec.

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

