/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 51 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 = 7380
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1124.9+4934_daily_bin1033
RA = 171.243, Dec = 49.5674
tmin = 507081601, tmax = 507340801
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='763867', job_status='RUN', time_executed='2021-09-03 19:33:58.757451', time_epoch_executed='1630722838.76' WHERE source_name='4FGL J1124.9+4934' and cadence='daily' and bin_id='1033'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763867/ft1_4FGL_J1124.9+4934_daily_bin1033.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763867/ft2_4FGL_J1124.9+4934_daily_bin1033.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763867/ft1_4FGL_J1124.9+4934_daily_bin1033.fits outfile=/scratch/kocevski/763867/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin1033.fits ra=171.243 dec=49.5674 rad=12.0 tmin=507081601.0 tmax=507340801.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.67
user 4.45
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/763867/ft2_4FGL_J1124.9+4934_daily_bin1033.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/763867/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin1033.fits evtable="EVENTS" outfile="/scratch/kocevski/763867/ft1_filtered_4FGL_J1124.9+4934_daily_bin1033.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763867/ft1_filtered_4FGL_J1124.9+4934_daily_bin1033.fits" evtable="EVENTS" scfile=/scratch/kocevski/763867/ft2_4FGL_J1124.9+4934_daily_bin1033.fits sctable="SC_DATA" outfile=/scratch/kocevski/763867/ltcube_507081601_507340801_4FGL_J1124.9+4934_daily_bin1033.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/763867/ft2_4FGL_J1124.9+4934_daily_bin1033.fits
.....................!
real 14.24
user 13.73
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763867/ft1_filtered_4FGL_J1124.9+4934_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/763867/ft2_4FGL_J1124.9+4934_daily_bin1033.fits sctable="SC_DATA" expcube=/scratch/kocevski/763867/ltcube_507081601_507340801_4FGL_J1124.9+4934_daily_bin1033.fits outfile=/scratch/kocevski/763867/expmap_507081601_507340801_4FGL_J1124.9+4934_daily_bin1033.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/763867/ltcube_507081601_507340801_4FGL_J1124.9+4934_daily_bin1033.fits
.....................!
real 190.67
user 185.64
sys 4.52

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/763867/ft1_filtered_4FGL_J1124.9+4934_daily_bin1033.fits scfile=/scratch/kocevski/763867/ft2_4FGL_J1124.9+4934_daily_bin1033.fits outfile=/scratch/kocevski/763867/cmap_507081601_507340801_4FGL_J1124.9+4934_daily_bin1033.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.62
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763867/ft1_filtered_4FGL_J1124.9+4934_daily_bin1033.fits scfile=/scratch/kocevski/763867/ft2_4FGL_J1124.9+4934_daily_bin1033.fits outfile=/scratch/kocevski/763867/cmap_HighResolution_507081601_507340801_4FGL_J1124.9+4934_daily_bin1033.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.58
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4073       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3438       1.0000         .10000E-03   10000.    
     3 'Prefactor '    70.678       1.0000         .10000E-03   10000.    
     4 'Prefactor '    139.49       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .84509E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10309E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13867E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4270       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.183       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    45.492       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.158       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5088       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9957       1.0000         .10000E-03   10000.    
    16 'norm      '    .54284       1.0000         .10000E-03   10000.    
    17 'norm      '    5.4992       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.196       1.0000         .10000E-03   10000.    
    22 'norm      '    3.8916       1.0000         .10000E-03   10000.    
    23 'norm      '    11.243       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.512       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .97824       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88080       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=   5486.442     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     3152 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4073        1.5088        .12040E-07    .24327E-03
   2  norm          3.3440        1.8321        .74210E-08    .11232E-03
   3  Prefactor     70.715        80.061       -.23297E-04    .15305E-04
   4  Prefactor     139.29        118.61       -.27214E-04    .36463E-05
   5  Prefactor     .10024E-03    118.87       -.51383E-05** at limit **
   6  norm          .10000E-03    .72021        .80967E-07** at limit **
   7  Prefactor     .10000E-03    38.906        .10457E-06** at limit **
   8  norm          2.4269        .59226       -.29399E-07    .93208E-03
   9  Prefactor     10.194        19.946        .44640E-05    .62099E-05
  10  Prefactor     .10000E-03    29.222       -.30052E-07** at limit **
  11  norm          45.495        46.217       -.35835E-05    .27377E-05
  12  Prefactor     .10000E-03    7.9951        .72423E-06** at limit **
  13  Prefactor     36.154        27.661       -.17822E-04   -.56574E-05
  14  norm          2.5078        2.8804        .51283E-06    .15434E-03
  15  Prefactor     2.0397        258.29       -.48104E-04   -.43033E-04
  16  norm          .54216        .81419        .50596E-06    .13353E-02
  17  norm          5.4986        5.9809        .13015E-06    .11504E-03
  18  Prefactor     .10000E-03    .76525       -.14030E-06** at limit **
  19  Prefactor     .10000E-03    55.354       -.21217E-06** at limit **
  20  norm          .10000E-03    6.2656        .42259E-06** at limit **
  21  Prefactor     12.196        12.338        .91928E-05    .12348E-04
  22  norm          3.8915        2.3871       -.28690E-06   -.13710E-03
  23  norm          11.243        8.1818       -.10509E-05   -.73853E-04
  24  Prefactor     14.512        18.339        .13722E-05   -.37462E-05
  25  Normalizat    .97825        .16853        .48035E-05    .86604E-04
  26  Prefactor     .88074        .20466       -.48532E-06    .34781E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40728
  norm       = 3.34397
  Prefactor  = 70.7151
  Prefactor  = 139.289
  Prefactor  = 0.000100237
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.42691
  Prefactor  = 10.1939
  Prefactor  = 0.0001
  norm       = 45.4945
  Prefactor  = 0.000100001
  Prefactor  = 36.1543
  norm       = 2.50778
  Prefactor  = 2.03965
  norm       = 0.542165
  norm       = 5.49864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.1962
  norm       = 3.89152
  norm       = 11.243
  Prefactor  = 14.5116
  Normalizat = 0.978246
  Prefactor  = 0.88074
 **********
 **   18 **HESSE 
 **********

 FCN=   5486.442     FROM HESSE     STATUS=OK           474 CALLS     3626 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4073        1.5196        .91934E-04   -1.5471    
   2  norm          3.3440        1.8335        .72134E-04   -1.5342    
   3  Prefactor     70.715        80.082        .47749E-04   -1.4024    
   4  Prefactor     139.29        118.51        .17053E-03   -1.3342    
   5  Prefactor     .10024E-03    100.27        .20497       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .72212        .61327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    38.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4269        .59292        .27277E-04   -1.5396    
   9  Prefactor     10.194        19.946        .12556E-03   -1.5069    
  10  Prefactor     .10000E-03    29.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          45.495        46.231        .29722E-03   -1.4358    
  12  Prefactor     .10000E-03    8.1388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     36.154        27.653        .66648E-04   -1.4505    
  14  norm          2.5078        2.8224        .12264E-03   -1.5391    
  15  Prefactor     2.0397        235.35        .29322E-03   -1.5422    
  16  norm          .54216        .73678        .71181E-03   -1.5561    
  17  norm          5.4986        5.9824        .17134E-03   -1.5239    
  18  Prefactor     .10000E-03    .76876        .63267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    56.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.4584        .36187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.196        12.313        .11470E-03   -1.5009    
  22  norm          3.8915        2.3885        .84866E-04   -1.5313    
  23  norm          11.243        8.1770        .11948E-03   -1.5037    
  24  Prefactor     14.512        18.338        .10514E-03   -1.4946    
  25  Normalizat    .97825        .19886        .22137E-03   -.93763    
  26  Prefactor     .88074        .24070        .29646E-03   -.96817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47967e-09
Minuit parameter uncertainties:
  1  1.51964
  2  1.83353
  3  80.2041
  4  118.711
  5  0.00977376
  6  7.36383e-06
  7  0.000163283
  8  0.592924
  9  19.9594
  10  4.69079e-06
  11  46.2674
  12  0.000208661
  13  27.6625
  14  2.82259
  15  43.9962
  16  0.736796
  17  5.98302
  18  1.29951e-05
  19  2.00866e-05
  20  9.80009e-05
  21  12.3154
  22  2.38852
  23  8.17778
  24  18.3454
  25  0.199007
  26  0.240994
Done.

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

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  4.549e+01  4.627e+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:  8.807e-01  2.410e-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.782e-01  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.58
Ra Dec: 171.243 49.567
Photon Index (Fixed Index): 1.52 +/- 0.00
Photon Flux (Fixed Index): 7.83e-09 +/- 7.96e-09
Energy Flux (Fixed Index): 2.25e-05 +/- 2.29e-05

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

Saving results to:
/scratch/kocevski/763867/likelihoodResults_507081601_507340801_4FGL_J1124.9+4934_daily_bin1033.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) = 5485.55477227
delta logL = 0.887052647244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5485.5532136
delta logL = 0.888611313468

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.670       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5450       1.0000          .0000       5.0000    
     3 'Normalizat'    .96537       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87966       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.

 FCN=   5485.553     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      295 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.663        35.029        .86044E-04   -.32836E-03
   2  alpha         2.5453        .83981        .90224E-02   -.53272E-04
   3  Normalizat    .96515        .18766        .22267E-03    .16530E-03
   4  Prefactor     .87986        .23894        .29628E-03    .70602E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 21.6629
  alpha      = 2.54528
  Normalizat = 0.96515
  Prefactor  = 0.87986
 **********
 **   18 **HESSE 
 **********

 FCN=   5485.553     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.663        30.764        .17209E-04   -1.4777    
   2  alpha         2.5453        .74047        .36090E-03    .18112E-01
   3  Normalizat    .96515        .18742        .44534E-04   -.94207    
   4  Prefactor     .87986        .23896        .11851E-04   -.96848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49333e-10
Minuit parameter uncertainties:
  1  30.7862
  2  0.751751
  3  0.187549
  4  0.239241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763867': 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) = 5485.55321275
delta logL = 0.888612162513

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  2.166e+01  3.079e+01  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  2.545e+00  7.518e-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:  8.799e-01  2.392e-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.652e-01  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.35
Ra Dec: 171.243 49.567
Photon Index (Free Index): 2.55 +/- 0.75
Photon Flux (Free Index): 2.60e-08 +/- 2.55e-08
Energy Flux (Free Index): 1.13e-05 +/- 9.26e-06

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/763867/cmap_HighResolution_507081601_507340801_4FGL_J1124.9+4934_daily_bin1033.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.14e-05', comment='SUCCESS', photon_flux='7.83e-09', energy_flux2='1.13e-05', photon_flux_error='7.96e-09', dlogl='8.89e-01', energy_flux='2.25e-05', photon_flux2='2.60e-08', job_status='DONE', time_completed='2021-09-03 19:47:48.347817', photon_index_error2='0.75', photon_index2='2.55', ts='2.58', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='3.18e-08', energy_flux_error2='9.26e-06', EG='0.98', time_epoch_completed='1630723668.35', return_code='0', job_id='763867', GAL2='0.88', EG2='0.97', return_code2='0', energy_flux_error='2.29e-05', photon_flux_error2='2.55e-08', ts2='4.35', photon_index='1.52' WHERE bin_id='1033' AND source_name='4FGL J1124.9+4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 19:47:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 763867: <4FGL_J1124.9+4934_daily_bin1033> in cluster <slac> Done

Job <4FGL_J1124.9+4934_daily_bin1033> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 19:31:46 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 19:32:46 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:32:46 2021
Terminated at Fri Sep  3 19:47:49 2021
Results reported at Fri Sep  3 19:47:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_daily_bin1033 171.243 49.5674 507081601 507340801 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 :                                   812.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             330.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            963 sec.

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

