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


Performing analysis on: 4FGL_J1124.9+4934_daily_bin164
RA = 171.243, Dec = 49.5674
tmin = 281836801, tmax = 282096001
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='754221', job_status='RUN', time_executed='2021-09-03 19:01:35.531161', time_epoch_executed='1630720895.53' WHERE source_name='4FGL J1124.9+4934' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754221

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754221/ft1_4FGL_J1124.9+4934_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754221/ft2_4FGL_J1124.9+4934_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/754221/ft1_4FGL_J1124.9+4934_daily_bin164.fits outfile=/scratch/kocevski/754221/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin164.fits ra=171.243 dec=49.5674 rad=12.0 tmin=281836801.0 tmax=282096001.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.06
user 3.78
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/754221/ft1_filtered_4FGL_J1124.9+4934_daily_bin164.fits" evtable="EVENTS" scfile=/scratch/kocevski/754221/ft2_4FGL_J1124.9+4934_daily_bin164.fits sctable="SC_DATA" outfile=/scratch/kocevski/754221/ltcube_281836801_282096001_4FGL_J1124.9+4934_daily_bin164.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/754221/ft2_4FGL_J1124.9+4934_daily_bin164.fits
.....................!
real 17.75
user 17.08
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754221/ft1_filtered_4FGL_J1124.9+4934_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/754221/ft2_4FGL_J1124.9+4934_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/754221/ltcube_281836801_282096001_4FGL_J1124.9+4934_daily_bin164.fits outfile=/scratch/kocevski/754221/expmap_281836801_282096001_4FGL_J1124.9+4934_daily_bin164.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/754221/ltcube_281836801_282096001_4FGL_J1124.9+4934_daily_bin164.fits
.....................!
real 192.94
user 187.00
sys 5.22

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/754221/ft1_filtered_4FGL_J1124.9+4934_daily_bin164.fits scfile=/scratch/kocevski/754221/ft2_4FGL_J1124.9+4934_daily_bin164.fits outfile=/scratch/kocevski/754221/cmap_281836801_282096001_4FGL_J1124.9+4934_daily_bin164.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/754221/ft1_filtered_4FGL_J1124.9+4934_daily_bin164.fits scfile=/scratch/kocevski/754221/ft2_4FGL_J1124.9+4934_daily_bin164.fits outfile=/scratch/kocevski/754221/cmap_HighResolution_281836801_282096001_4FGL_J1124.9+4934_daily_bin164.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.57
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8595       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    97.461       1.0000         .10000E-03   10000.    
     4 'Prefactor '    140.84       1.0000         .10000E-03   10000.    
     5 'Prefactor '    54.955       1.0000         .10000E-03   10000.    
     6 'norm      '    2.2866       1.0000         .10000E-03   10000.    
     7 'Prefactor '    116.25       1.0000         .10000E-03   10000.    
     8 'norm      '    2.7724       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .50760       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9302       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.1770       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .49307       1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4472       1.0000         .10000E-03   10000.    
    19 'Prefactor '    101.13       1.0000         .10000E-03   10000.    
    20 'norm      '    5.8142       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .91908E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .19122E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1422       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81386       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=   5448.257     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3268 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8592        3.5174        .12208E-06    .56705E-04
   2  norm          .10000E-03    .57891        .18429E-07** at limit **
   3  Prefactor     97.413        107.62       -.45763E-04   -.69776E-05
   4  Prefactor     140.79        203.35       -.45770E-04    .97972E-05
   5  Prefactor     54.943        66.794       -.11702E-04   -.56810E-05
   6  norm          2.2866        2.2098        .47344E-06   -.74378E-04
   7  Prefactor     116.34        90.643        .67349E-04    .11644E-04
   8  norm          2.7723        .61642        .43337E-07    .75450E-05
   9  Prefactor     .51778        10.751       -.20922E-05   -.16001E-03
  10  Prefactor     .10000E-03    110.31       -.27019E-04** at limit **
  11  norm          .10000E-03    53.271        .33690E-05** at limit **
  12  Prefactor     3.9301        7.2552       -.15885E-05   -.35222E-03
  13  Prefactor     .10000E-03    10.694       -.62200E-06** at limit **
  14  norm          7.1752        3.5066        .67459E-07   -.38480E-03
  15  Prefactor     .10000E-03    22.028        .12596E-04** at limit **
  16  norm          .49398        1.0409        .11161E-05   -.76992E-03
  17  norm          .10000E-03    6.0558        .29230E-06** at limit **
  18  Prefactor     1.4478        3.0657       -.21935E-06   -.71746E-03
  19  Prefactor     101.10        54.630       -.15604E-04   -.82897E-04
  20  norm          5.8143        5.5736        .44966E-05   -.20553E-03
  21  Prefactor     .10000E-03    15.362       -.58825E-05** at limit **
  22  norm          .10256E-03    .99970        .34071E-06** at limit **
  23  norm          .10000E-03    4.8285        .18092E-05** at limit **
  24  Prefactor     .10000E-03    27.225       -.13144E-04** at limit **
  25  Normalizat    1.1423        .18691       -.46795E-05    .34925E-04
  26  Prefactor     .81388        .22524        .32166E-05   -.29130E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.85917
  norm       = 0.0001
  Prefactor  = 97.4127
  Prefactor  = 140.787
  Prefactor  = 54.9435
  norm       = 2.28656
  Prefactor  = 116.338
  norm       = 2.77229
  Prefactor  = 0.517785
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.93012
  Prefactor  = 0.0001
  norm       = 7.17515
  Prefactor  = 0.0001
  norm       = 0.493985
  norm       = 0.0001
  Prefactor  = 1.44785
  Prefactor  = 101.103
  norm       = 5.81431
  Prefactor  = 0.0001
  norm       = 0.000102558
  norm       = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 1.14233
  Prefactor  = 0.813876
 **********
 **   18 **HESSE 
 **********

 FCN=   5448.257     FROM HESSE     STATUS=OK           470 CALLS     3738 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8592        3.5179        .90217E-04   -1.5147    
   2  norm          .10000E-03    .58218        .54837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     97.413        107.90        .20359E-03   -1.3731    
   4  Prefactor     140.79        202.78        .33945E-04   -1.3329    
   5  Prefactor     54.943        66.819        .54109E-04   -1.4224    
   6  norm          2.2866        2.2125        .99628E-04   -1.5406    
   7  Prefactor     116.34        90.814        .18658E-03   -1.3547    
   8  norm          2.7723        .61796        .26558E-04   -1.5375    
   9  Prefactor     .51778        64.622        .46335E-02   -1.5564    
  10  Prefactor     .10000E-03    110.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    53.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9301        7.2395        .20349E-03   -1.5311    
  13  Prefactor     .10000E-03    10.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.1752        3.4934        .92408E-04   -1.5172    
  15  Prefactor     .10000E-03    22.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .49398        1.0104        .98978E-04   -1.5567    
  17  norm          .10000E-03    6.1290        .17737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4478        3.0333        .17761E-03   -1.5467    
  19  Prefactor     101.10        54.088        .19990E-03   -1.3694    
  20  norm          5.8143        5.5612        .16424E-03   -1.5226    
  21  Prefactor     .10000E-03    15.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10256E-03    3.4287        .24554E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    12.632        .31217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1423        .21644        .22184E-03   -.88404    
  26  Prefactor     .81388        .25898        .32774E-03   -.99219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35206e-09
Minuit parameter uncertainties:
  1  3.51797
  2  6.58589e-07
  3  108.114
  4  203.794
  5  66.9106
  6  2.21254
  7  90.9232
  8  0.617958
  9  11.5807
  10  0.000277952
  11  3.04796e-05
  12  7.24113
  13  2.18002e-05
  14  3.49348
  15  1.30407e-05
  16  1.01046
  17  4.12591e-05
  18  3.03366
  19  54.1144
  20  5.56165
  21  5.88609e-05
  22  0.00592359
  23  0.000461544
  24  6.49182e-05
  25  0.216607
  26  0.259364
Done.

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

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.000e-04  3.048e-05  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:  8.139e-01  2.594e-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.142e+00  2.166e-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: 2.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/754221/likelihoodResults_281836801_282096001_4FGL_J1124.9+4934_daily_bin164.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) = 5448.25699112
delta logL = -8.91502886589e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5448.25693866
delta logL = -3.66922067769e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12593E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4223       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81386       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=   5448.257     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      272 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4895        .11437    ** at limit **
   2  alpha         2.4412        3.0295        .41177       -.32552E-06
   3  Normalizat    1.1423        .12697E-02    .36491E-01    .31828E-04
   4  Prefactor     .81388        .16195E-02    .74055E-01    .30872E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.44115
  Normalizat = 1.14232
  Prefactor  = 0.813884
 **********
 **   18 **HESSE 
 **********

 FCN=   5448.257     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      309 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    456.07        .60363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4412        2.8301        .50000       -.23541E-01
   3  Normalizat    1.1423        .73466E-02    .22184E-03   -.88404    
   4  Prefactor     .81388        .93541E-02    .32774E-03   -.99219    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.2947e-09
Minuit parameter uncertainties:
  1  0.000657683
  2  493.876
  3  0.0073466
  4  0.00935411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754221': 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) = 5448.25690132
delta logL = 6.41108272248e-07

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.000e-04  6.577e-04  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  2.441e+00  4.939e+02  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:  8.139e-01  9.354e-03  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.142e+00  7.347e-03  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/754221/cmap_HighResolution_281836801_282096001_4FGL_J1124.9+4934_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.58e-05', job_status='DONE', photon_flux_upper_limit='2.63e-08', time_completed='2021-09-03 19:15:25.952599', job_id='754221', GAL2='0.81', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630721725.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='6.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.52' WHERE bin_id='164' AND source_name='4FGL J1124.9+4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 19:15:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 754221: <4FGL_J1124.9+4934_daily_bin164> in cluster <slac> Done

Job <4FGL_J1124.9+4934_daily_bin164> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 19:01:17 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 19:01:21 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:01:21 2021
Terminated at Fri Sep  3 19:15:26 2021
Results reported at Fri Sep  3 19:15:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_daily_bin164 171.243 49.5674 281836801 282096001 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 :                                   827.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            849 sec.

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

