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


Performing analysis on: 4FGL_J1124.9+4934_daily_bin15
RA = 171.243, Dec = 49.5674
tmin = 243216001, tmax = 243475201
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='751527', job_status='RUN', time_executed='2021-09-03 18:51:54.739117', time_epoch_executed='1630720314.74' WHERE source_name='4FGL J1124.9+4934' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/751527

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/751527/ft1_4FGL_J1124.9+4934_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/751527/ft2_4FGL_J1124.9+4934_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/751527/ft1_4FGL_J1124.9+4934_daily_bin15.fits outfile=/scratch/kocevski/751527/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin15.fits ra=171.243 dec=49.5674 rad=12.0 tmin=243216001.0 tmax=243475201.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.40
user 1.20
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/751527/ft2_4FGL_J1124.9+4934_daily_bin15.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/751527/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin15.fits evtable="EVENTS" outfile="/scratch/kocevski/751527/ft1_filtered_4FGL_J1124.9+4934_daily_bin15.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.54
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/751527/ft1_filtered_4FGL_J1124.9+4934_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/751527/ft2_4FGL_J1124.9+4934_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/751527/ltcube_243216001_243475201_4FGL_J1124.9+4934_daily_bin15.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/751527/ft2_4FGL_J1124.9+4934_daily_bin15.fits
.....................!
real 18.61
user 17.96
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/751527/ft1_filtered_4FGL_J1124.9+4934_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/751527/ft2_4FGL_J1124.9+4934_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/751527/ltcube_243216001_243475201_4FGL_J1124.9+4934_daily_bin15.fits outfile=/scratch/kocevski/751527/expmap_243216001_243475201_4FGL_J1124.9+4934_daily_bin15.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/751527/ltcube_243216001_243475201_4FGL_J1124.9+4934_daily_bin15.fits
.....................!
real 193.85
user 187.04
sys 5.04

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/751527/ft1_filtered_4FGL_J1124.9+4934_daily_bin15.fits scfile=/scratch/kocevski/751527/ft2_4FGL_J1124.9+4934_daily_bin15.fits outfile=/scratch/kocevski/751527/cmap_243216001_243475201_4FGL_J1124.9+4934_daily_bin15.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/751527/ft1_filtered_4FGL_J1124.9+4934_daily_bin15.fits scfile=/scratch/kocevski/751527/ft2_4FGL_J1124.9+4934_daily_bin15.fits outfile=/scratch/kocevski/751527/cmap_HighResolution_243216001_243475201_4FGL_J1124.9+4934_daily_bin15.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7062       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8771       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.611       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8439       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0928       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0617       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2462       1.0000         .10000E-03   10000.    
    14 'norm      '    .14382E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.763       1.0000         .10000E-03   10000.    
    16 'norm      '    .52808       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4596       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.519       1.0000         .10000E-03   10000.    
    20 'norm      '    5.0011       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.2403       1.0000         .10000E-03   10000.    
    23 'norm      '    10.999       1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.928       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99358       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .79674       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=   6291.363     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3153 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7064        2.5992        .16457E-07   -.11715E-04
   2  norm          1.8771        1.2135        .53367E-08    .39579E-06
   3  Prefactor     .10000E-03    44.860        .22486E-05** at limit **
   4  Prefactor     .10000E-03    89.856       -.93726E-06** at limit **
   5  Prefactor     18.610        66.618        .16132E-06    .69144E-05
   6  norm          1.8439        1.4500        .49534E-09    .38442E-05
   7  Prefactor     .10000E-03    48.219       -.35479E-06** at limit **
   8  norm          1.0928        .37029        .12812E-07    .53439E-03
   9  Prefactor     .10000E-03    4.3351        .44481E-07** at limit **
  10  Prefactor     .10000E-03    25.239       -.21410E-06** at limit **
  11  norm          .10000E-03    12.074        .98337E-08** at limit **
  12  Prefactor     7.0620        7.1202        .49901E-06   -.77554E-04
  13  Prefactor     1.2557        43.316        .19018E-04   -.72327E-04
  14  norm          .29706E-01    1.1313       -.37230E-06   -.32708E-03
  15  Prefactor     11.703        37.465        .14975E-04    .18726E-04
  16  norm          .52807        .72089       -.63050E-06   -.19606E-02
  17  norm          .10000E-03    2.6542       -.68579E-07** at limit **
  18  Prefactor     2.4598        1.9727        .12148E-07    .23662E-05
  19  Prefactor     27.526        40.605        .29753E-06    .74454E-04
  20  norm          5.0016        5.3096       -.37272E-06    .74758E-04
  21  Prefactor     .10000E-03    4.3710        .41417E-08** at limit **
  22  norm          3.2406        2.2855        .15816E-07   -.83919E-05
  23  norm          10.999        8.1073       -.19529E-07    .32233E-04
  24  Prefactor     34.934        23.886       -.73637E-07    .20920E-04
  25  Normalizat    .99366        .15042        .54237E-06    .39480E-03
  26  Prefactor     .79655        .18465       -.15063E-05    .23122E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.70644
  norm       = 1.87713
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.6101
  norm       = 1.84395
  Prefactor  = 0.0001
  norm       = 1.0928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.06203
  Prefactor  = 1.25565
  norm       = 0.0297063
  Prefactor  = 11.7031
  norm       = 0.528074
  norm       = 0.0001
  Prefactor  = 2.45982
  Prefactor  = 27.5255
  norm       = 5.00158
  Prefactor  = 0.0001
  norm       = 3.24057
  norm       = 10.9995
  Prefactor  = 34.9339
  Normalizat = 0.993661
  Prefactor  = 0.796545
 **********
 **   18 **HESSE 
 **********

 FCN=   6291.363     FROM HESSE     STATUS=OK           466 CALLS     3619 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7064        2.5990        .92370E-04   -1.5274    
   2  norm          1.8771        1.2147        .68411E-04   -1.5434    
   3  Prefactor     .10000E-03    44.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    89.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.610        66.683        .92841E-04   -1.4845    
   6  norm          1.8439        1.4515        .82358E-04   -1.5436    
   7  Prefactor     .10000E-03    48.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0928        .37091        .27241E-04   -1.5499    
   9  Prefactor     .10000E-03    4.3368        .16129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    12.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.0620        7.1190        .75479E-03   -1.5176    
  13  Prefactor     1.2557        43.392        .20054E-02   -1.5484    
  14  norm          .29706E-01    45.016        .15702E-02   -1.5674    
  15  Prefactor     11.703        39.086        .11680E-03   -1.5024    
  16  norm          .52807        .68002        .71069E-03   -1.5563    
  17  norm          .10000E-03    2.6557        .12620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4598        1.9702        .96721E-04   -1.5394    
  19  Prefactor     27.526        40.120        .76369E-04   -1.4658    
  20  norm          5.0016        5.3044        .17982E-03   -1.5261    
  21  Prefactor     .10000E-03    4.3748        .16195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.2406        2.2833        .95627E-04   -1.5348    
  23  norm          10.999        8.1051        .12080E-03   -1.5045    
  24  Prefactor     34.934        23.905        .67807E-04   -1.4525    
  25  Normalizat    .99366        .17848        .21378E-03   -.93243    
  26  Prefactor     .79655        .21860        .29646E-03   -.99856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35769e-09
Minuit parameter uncertainties:
  1  2.59903
  2  1.2147
  3  0.000324186
  4  0.000260838
  5  66.9518
  6  1.45151
  7  0.000130033
  8  0.370914
  9  5.0387e-07
  10  3.10119e-05
  11  9.1121e-08
  12  7.11984
  13  14.7738
  14  2.31063
  15  39.1713
  16  0.680027
  17  4.37977e-06
  18  1.97028
  19  40.1589
  20  5.30488
  21  5.94842e-07
  22  2.28337
  23  8.10593
  24  23.9119
  25  0.178589
  26  0.218839
Done.

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

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.000e-04  9.112e-08  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.965e-01  2.188e-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:  9.937e-01  1.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/751527/likelihoodResults_243216001_243475201_4FGL_J1124.9+4934_daily_bin15.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) = 6291.36334458
delta logL = -0.000392581137021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6291.36295199
delta logL = 9.19953890843e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5086       1.0000          .0000       5.0000    
     3 'Normalizat'    .99364       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79657       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6291.363     FROM MIGRAD    STATUS=FAILED        93 CALLS      242 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2112.2        .18142E-02** at limit **
   2  alpha         1.2608        3.6826        .18500       -.16162E-07
   3  Normalizat    .99366        .70073E-01    .21378E-03   -.12497E-04
   4  Prefactor     .79655        .88291E-01    .29646E-03   -.86284E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6291.363     FROM SIMPLEX   STATUS=UNCHANGED    188 CALLS      430 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2112.2        .59629E-03** at limit **
   2  alpha         1.2608        3.6826        .69475E-06   -.16162E-07
   3  Normalizat    .99366        .70073E-01    .33781E-07   -.12497E-04
   4  Prefactor     .79655        .88291E-01    .20418E-07   -.86284E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6291.363     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      458 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.738        .36285E-03** at limit **
   2  alpha         1.2642        4.3641        .74002E-02    .32569E-07
   3  Normalizat    .99366        .17001        .85513E-05   -.12497E-04
   4  Prefactor     .79655        .21413        .11858E-04   -.86284E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.26422
  Normalizat = 0.99366
  Prefactor  = 0.796546
 **********
 **   18 **HESSE 
 **********

 FCN=   6291.363     FROM HESSE     STATUS=OK            23 CALLS      481 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.734        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2642        4.3173        .14800E-02   -.51705    
   3  Normalizat    .99366        .16977        .17103E-05   -.93243    
   4  Prefactor     .79655        .21385        .23717E-05   -.99856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77239e-11
Minuit parameter uncertainties:
  1  0.000148149
  2  392.069
  3  0.169863
  4  0.214074
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/751527': 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) = 6291.36295178
delta logL = 2.14596184378e-07

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.000e-04  1.481e-04  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  1.264e+00  3.921e+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:  7.965e-01  2.141e-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:  9.937e-01  1.699e-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/751527/cmap_HighResolution_243216001_243475201_4FGL_J1124.9+4934_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-05', job_status='DONE', photon_flux_upper_limit='1.24e-08', time_completed='2021-09-03 19:06:44.602826', job_id='751527', GAL2='0.80', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630721204.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.52' WHERE bin_id='15' AND source_name='4FGL J1124.9+4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 19:06:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 751527: <4FGL_J1124.9+4934_daily_bin15> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_daily_bin15 171.243 49.5674 243216001 243475201 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 :                                   885.14 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             331.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            947 sec.

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

