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


Performing analysis on: 4FGL_J1124.9+4934_daily_bin39
RA = 171.243, Dec = 49.5674
tmin = 249436801, tmax = 249696001
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='751555', job_status='RUN', time_executed='2021-09-03 18:55:04.526922', time_epoch_executed='1630720504.53' WHERE source_name='4FGL J1124.9+4934' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/751555

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/751555/ft1_4FGL_J1124.9+4934_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/751555/ft2_4FGL_J1124.9+4934_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/751555/ft1_4FGL_J1124.9+4934_daily_bin39.fits outfile=/scratch/kocevski/751555/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin39.fits ra=171.243 dec=49.5674 rad=12.0 tmin=249436801.0 tmax=249696001.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.25
user 1.07
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/751555/ft1_filtered_4FGL_J1124.9+4934_daily_bin39.fits" evtable="EVENTS" scfile=/scratch/kocevski/751555/ft2_4FGL_J1124.9+4934_daily_bin39.fits sctable="SC_DATA" outfile=/scratch/kocevski/751555/ltcube_249436801_249696001_4FGL_J1124.9+4934_daily_bin39.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/751555/ft2_4FGL_J1124.9+4934_daily_bin39.fits
.....................!
real 15.77
user 15.43
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/751555/ft1_filtered_4FGL_J1124.9+4934_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/751555/ft2_4FGL_J1124.9+4934_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/751555/ltcube_249436801_249696001_4FGL_J1124.9+4934_daily_bin39.fits outfile=/scratch/kocevski/751555/expmap_249436801_249696001_4FGL_J1124.9+4934_daily_bin39.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/751555/ltcube_249436801_249696001_4FGL_J1124.9+4934_daily_bin39.fits
.....................!
real 157.51
user 153.19
sys 3.81

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/751555/ft1_filtered_4FGL_J1124.9+4934_daily_bin39.fits scfile=/scratch/kocevski/751555/ft2_4FGL_J1124.9+4934_daily_bin39.fits outfile=/scratch/kocevski/751555/cmap_249436801_249696001_4FGL_J1124.9+4934_daily_bin39.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.50
user 0.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/751555/ft1_filtered_4FGL_J1124.9+4934_daily_bin39.fits scfile=/scratch/kocevski/751555/ft2_4FGL_J1124.9+4934_daily_bin39.fits outfile=/scratch/kocevski/751555/cmap_HighResolution_249436801_249696001_4FGL_J1124.9+4934_daily_bin39.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.51
user 0.34
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9512       1.0000         .10000E-03   10000.    
     2 'norm      '    2.4404       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.941       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15636E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.0745       1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.669       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9490       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11630E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.044       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .13134       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12104E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.198       1.0000         .10000E-03   10000.    
    20 'norm      '    5.9100       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.315       1.0000         .10000E-03   10000.    
    22 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .48218       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.7142       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=   4607.669     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3118 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9511        4.0120       -.48331E-07    .45359E-04
   2  norm          2.4405        1.5930       -.25663E-07    .71553E-04
   3  Prefactor     20.961        105.39        .32475E-04   -.63519E-06
   4  Prefactor     .10000E-03    101.99        .95987E-04** at limit **
   5  Prefactor     .10000E-03    288.03       -.13157E-03** at limit **
   6  norm          3.0746        2.7205       -.33628E-07   -.30675E-03
   7  Prefactor     49.670        67.786        .21556E-06   -.39287E-04
   8  norm          1.9491        .53570        .30570E-08    .49756E-03
   9  Prefactor     .10000E-03    34.237       -.20308E-04** at limit **
  10  Prefactor     .10000E-03    43.826        .15186E-04** at limit **
  11  norm          .10000E-03    66.414       -.69206E-04** at limit **
  12  Prefactor     .10010E-03    9.4680        .21872E-05** at limit **
  13  Prefactor     40.056        47.576        .43473E-05   -.93980E-04
  14  norm          .10000E-03    .96363        .59799E-07** at limit **
  15  Prefactor     .10000E-03    37.236        .20638E-04** at limit **
  16  norm          .13189        .73175       -.45597E-06   -.97004E-03
  17  norm          .10000E-03    7.6797       -.18322E-06** at limit **
  18  Prefactor     .10000E-03    3.0809       -.46464E-06** at limit **
  19  Prefactor     29.215        29.970       -.22605E-05    .10060E-04
  20  norm          5.9111        9.6810       -.89597E-05   -.26024E-03
  21  Prefactor     15.281        22.022        .21958E-05    .83420E-04
  22  norm          .10000E-03    1.6510       -.31140E-07** at limit **
  23  norm          .10000E-03    3.0234        .59930E-07** at limit **
  24  Prefactor     .10000E-03    9.0864       -.15748E-06** at limit **
  25  Normalizat    .48201        .20147        .52317E-07    .80025E-04
  26  Prefactor     1.7141        .25272        .15037E-06    .20369E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.9511
  norm       = 2.4405
  Prefactor  = 20.9606
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 3.0746
  Prefactor  = 49.6703
  norm       = 1.94908
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100096
  Prefactor  = 40.0558
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.131894
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 29.2155
  norm       = 5.91112
  Prefactor  = 15.2812
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.482012
  Prefactor  = 1.71409
 **********
 **   18 **HESSE 
 **********

 FCN=   4607.669     FROM HESSE     STATUS=OK           456 CALLS     3574 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9511        4.0114        .88493E-04   -1.5110    
   2  norm          2.4405        1.5969        .67473E-04   -1.5396    
   3  Prefactor     20.961        105.01        .87527E-04   -1.4792    
   4  Prefactor     .10000E-03    101.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    289.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.0746        2.7093        .10169E-03   -1.5357    
   7  Prefactor     49.670        67.841        .56901E-04   -1.4297    
   8  norm          1.9491        .53704        .25328E-04   -1.5429    
   9  Prefactor     .10000E-03    34.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    43.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    66.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10010E-03    48.417        .38021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     40.056        46.112        .63343E-04   -1.4441    
  14  norm          .10000E-03    .97440        .65052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .13189        1.2999        .10976E-02   -1.5635    
  17  norm          .10000E-03    7.8327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.9287        .21321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.215        29.923        .74145E-04   -1.4626    
  20  norm          5.9111        9.6720        .16519E-03   -1.5222    
  21  Prefactor     15.281        20.930        .10235E-03   -1.4926    
  22  norm          .10000E-03    1.6884        .17011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.0363        .11526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.0965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .48201        .22796        .32015E-03   -1.1326    
  26  Prefactor     1.7141        .29415        .24149E-03   -.71707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60087e-09
Minuit parameter uncertainties:
  1  4.01149
  2  1.59691
  3  94.0958
  4  5.55266e-05
  5  0.00188872
  6  2.70941
  7  67.9471
  8  0.537039
  9  1.8032e-05
  10  1.74341e-05
  11  0.000141228
  12  0.00431548
  13  46.1532
  14  4.59264e-07
  15  2.61444e-05
  16  0.827829
  17  9.92319e-06
  18  0.000133551
  19  29.9383
  20  9.67452
  21  20.9403
  22  1.11843e-05
  23  9.48125e-07
  24  1.73492e-06
  25  0.2284
  26  0.294453
Done.

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

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.000e-04  1.412e-04  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:  1.714e+00  2.945e-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:  4.820e-01  2.284e-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.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/751555/likelihoodResults_249436801_249696001_4FGL_J1124.9+4934_daily_bin39.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) = 4607.6687225
delta logL = -7.15269779903e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4607.66872248
delta logL = -7.15010346539e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96303E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5192       1.0000          .0000       5.0000    
     3 'Normalizat'    .48201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7141       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=   4607.669     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      207 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    88.838        .90718E-02** at limit **
   2  alpha         1.5827        3.2835        .46114       -.42651E-05
   3  Normalizat    .48201        .18578        .72308E-01    .10390E-03
   4  Prefactor     1.7141        .24943        .54627E-01    .10786E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100024
  alpha      = 1.58273
  Normalizat = 0.482013
  Prefactor  = 1.71408
 **********
 **   18 **HESSE 
 **********

 FCN=   4607.669     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    76.699        .18144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5827        3.2686        .50000       -.37568    
   3  Normalizat    .48201        .21423        .32015E-03   -1.1326    
   4  Prefactor     1.7141        .28831        .24149E-03   -.71708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43147e-10
Minuit parameter uncertainties:
  1  0.00270681
  2  2.3345
  3  0.214599
  4  0.288595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/751555': 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) = 4607.66865086
delta logL = 1.14981048682e-07

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.000e-04  2.707e-03  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  1.583e+00  2.334e+00  0.000e+00  5.000e+00 ( 1.000e+00)
354         beta:  1.498e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
355           Eb:  2.941e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  1.714e+00  2.886e-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:  4.820e-01  2.146e-01  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/751555/cmap_HighResolution_249436801_249696001_4FGL_J1124.9+4934_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.31e-05', job_status='DONE', photon_flux_upper_limit='2.88e-08', time_completed='2021-09-03 19:04:36.767876', job_id='751555', GAL2='1.71', fit_tolerance='1e-08', EG2='0.48', EG='0.48', time_epoch_completed='1630721076.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.71', dlogl='1.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.52' WHERE bin_id='39' AND source_name='4FGL J1124.9+4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 19:04:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 751555: <4FGL_J1124.9+4934_daily_bin39> in cluster <slac> Done

Job <4FGL_J1124.9+4934_daily_bin39> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 18:51:00 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 18:52:28 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:52:28 2021
Terminated at Fri Sep  3 19:04:37 2021
Results reported at Fri Sep  3 19:04:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_daily_bin39 171.243 49.5674 249436801 249696001 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 :                                   569.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             282.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            817 sec.

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

