/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 = 7383
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1124.9+4934_daily_bin1267
RA = 171.243, Dec = 49.5674
tmin = 567734401, tmax = 567993601
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='766867', job_status='RUN', time_executed='2021-09-03 19:41:39.950178', time_epoch_executed='1630723299.95' WHERE source_name='4FGL J1124.9+4934' and cadence='daily' and bin_id='1267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766867/ft1_4FGL_J1124.9+4934_daily_bin1267.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766867/ft2_4FGL_J1124.9+4934_daily_bin1267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766867/ft1_4FGL_J1124.9+4934_daily_bin1267.fits outfile=/scratch/kocevski/766867/ft1_filteredMKT_4FGL_J1124.9+4934_daily_bin1267.fits ra=171.243 dec=49.5674 rad=12.0 tmin=567734401.0 tmax=567993601.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 2.37
user 2.12
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/766867/ft1_filtered_4FGL_J1124.9+4934_daily_bin1267.fits" evtable="EVENTS" scfile=/scratch/kocevski/766867/ft2_4FGL_J1124.9+4934_daily_bin1267.fits sctable="SC_DATA" outfile=/scratch/kocevski/766867/ltcube_567734401_567993601_4FGL_J1124.9+4934_daily_bin1267.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/766867/ft2_4FGL_J1124.9+4934_daily_bin1267.fits
.....................!
real 16.50
user 16.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766867/ft1_filtered_4FGL_J1124.9+4934_daily_bin1267.fits evtable="EVENTS" scfile=/scratch/kocevski/766867/ft2_4FGL_J1124.9+4934_daily_bin1267.fits sctable="SC_DATA" expcube=/scratch/kocevski/766867/ltcube_567734401_567993601_4FGL_J1124.9+4934_daily_bin1267.fits outfile=/scratch/kocevski/766867/expmap_567734401_567993601_4FGL_J1124.9+4934_daily_bin1267.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/766867/ltcube_567734401_567993601_4FGL_J1124.9+4934_daily_bin1267.fits
.....................!
real 190.73
user 185.68
sys 4.54

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/766867/ft1_filtered_4FGL_J1124.9+4934_daily_bin1267.fits scfile=/scratch/kocevski/766867/ft2_4FGL_J1124.9+4934_daily_bin1267.fits outfile=/scratch/kocevski/766867/cmap_567734401_567993601_4FGL_J1124.9+4934_daily_bin1267.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/766867/ft1_filtered_4FGL_J1124.9+4934_daily_bin1267.fits scfile=/scratch/kocevski/766867/ft2_4FGL_J1124.9+4934_daily_bin1267.fits outfile=/scratch/kocevski/766867/cmap_HighResolution_567734401_567993601_4FGL_J1124.9+4934_daily_bin1267.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=171.243 yref=49.5674 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3205       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3549       1.0000         .10000E-03   10000.    
     3 'Prefactor '    270.46       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.5082       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10520E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .57937       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.358       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.063       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.029       1.0000         .10000E-03   10000.    
    14 'norm      '    .75488       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2174       1.0000         .10000E-03   10000.    
    17 'norm      '    5.8515       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    17.632       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.0659       1.0000         .10000E-03   10000.    
    23 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.5750       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0090       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3673       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=   6594.897     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3065 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3205        2.9724        .57662E-07    .19824E-03
   2  norm          2.3548        1.5745        .13964E-07    .20678E-03
   3  Prefactor     270.44        129.61       -.13017E-04    .26912E-04
   4  Prefactor     .10000E-03    51.174        .53539E-04** at limit **
   5  Prefactor     .10000E-03    75.477       -.14068E-04** at limit **
   6  norm          2.5080        2.0782       -.11485E-06   -.62548E-03
   7  Prefactor     .10000E-03    78.903       -.33027E-04** at limit **
   8  norm          .57939        .34690       -.20804E-08    .28511E-03
   9  Prefactor     21.357        21.819        .22670E-06    .10369E-04
  10  Prefactor     .10000E-03    31.877       -.23341E-04** at limit **
  11  norm          .10000E-03    13.803       -.33287E-05** at limit **
  12  Prefactor     10.063        8.8534       -.69089E-07   -.22845E-04
  13  Prefactor     23.026        35.521       -.29164E-05    .24809E-05
  14  norm          .75432        2.0247       -.74389E-06   -.13403E-02
  15  Prefactor     .10000E-03    13.362        .16765E-05** at limit **
  16  norm          2.2175        1.0705       -.94469E-07    .56784E-04
  17  norm          5.8513        6.0104        .47582E-05    .80389E-04
  18  Prefactor     .10000E-03    1.6294       -.16519E-06** at limit **
  19  Prefactor     .10000E-03    20.595        .63196E-05** at limit **
  20  norm          17.633        8.2642       -.20203E-06   -.15416E-04
  21  Prefactor     .10000E-03    13.378        .43022E-06** at limit **
  22  norm          2.0662        2.4143       -.31321E-06   -.69209E-03
  23  norm          .10000E-03    5.5843       -.31428E-07** at limit **
  24  Prefactor     6.5961        19.529        .11734E-06   -.29645E-04
  25  Normalizat    1.0089        .18526        .18315E-05    .10366E-03
  26  Prefactor     1.3674        .22278       -.20317E-06    .16973E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.32053
  norm       = 2.35481
  Prefactor  = 270.442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.50804
  Prefactor  = 0.0001
  norm       = 0.579388
  Prefactor  = 21.3572
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0634
  Prefactor  = 23.0261
  norm       = 0.75432
  Prefactor  = 0.0001
  norm       = 2.2175
  norm       = 5.85132
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.6331
  Prefactor  = 0.0001
  norm       = 2.06618
  norm       = 0.0001
  Prefactor  = 6.5961
  Normalizat = 1.00892
  Prefactor  = 1.36738
 **********
 **   18 **HESSE 
 **********

 FCN=   6594.897     FROM HESSE     STATUS=OK           462 CALLS     3527 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3205        2.9765        .11328E-03   -1.5292    
   2  norm          2.3548        1.5811        .81130E-04   -1.5401    
   3  Prefactor     270.44        129.75        .12329E-03   -1.2404    
   4  Prefactor     .10000E-03    50.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    75.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.5080        2.0761        .51403E-03   -1.5391    
   7  Prefactor     .10000E-03    79.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .57939        .35101        .35992E-04   -1.5556    
   9  Prefactor     21.357        21.817        .86668E-04   -1.4783    
  10  Prefactor     .10000E-03    31.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    13.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.063        8.8371        .12631E-03   -1.5073    
  13  Prefactor     23.026        35.450        .83469E-04   -1.4748    
  14  norm          .75432        1.9607        .18209E-02   -1.5534    
  15  Prefactor     .10000E-03    13.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2175        1.0670        .27618E-04   -1.5410    
  17  norm          5.8513        6.0166        .16602E-03   -1.5224    
  18  Prefactor     .10000E-03    2.7756        .19948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          17.633        8.2602        .95382E-04   -1.4868    
  21  Prefactor     .10000E-03    13.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.0662        2.4026        .12740E-03   -1.5420    
  23  norm          .10000E-03    5.6780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.5961        19.489        .15650E-03   -1.5194    
  25  Normalizat    1.0089        .21562        .26616E-03   -.92732    
  26  Prefactor     1.3674        .26118        .29621E-03   -.81325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07976e-09
Minuit parameter uncertainties:
  1  2.97658
  2  1.58116
  3  129.884
  4  7.07788e-06
  5  1.06483e-05
  6  2.07615
  7  0.000276609
  8  0.351007
  9  21.8254
  10  1.15868e-05
  11  5.63657e-09
  12  8.83826
  13  35.482
  14  1.9609
  15  4.72624e-06
  16  1.06701
  17  6.01724
  18  2.28581e-05
  19  4.12716e-05
  20  8.26076
  21  1.9877e-05
  22  2.40269
  23  1.51985e-05
  24  19.5079
  25  0.215806
  26  0.261428
Done.

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

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.000e-04  5.637e-09  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.367e+00  2.614e-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.009e+00  2.158e-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.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/766867/likelihoodResults_567734401_567993601_4FGL_J1124.9+4934_daily_bin1267.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) = 6594.89766632
delta logL = -0.000334237889547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6594.89733207
delta logL = 1.41226337291e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5082       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3674       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=   6594.897     FROM MIGRAD    STATUS=FAILED        96 CALLS      245 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    381.22        .18142E-01** at limit **
   2  alpha         1.2419        2.8124        .18503       -.16344E-07
   3  Normalizat    1.0089        .23682E-01    .26616E-03   -.92818E-04
   4  Prefactor     1.3674        .30205E-01    .29621E-03   -.39110E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6594.897     FROM SIMPLEX   STATUS=UNCHANGED    158 CALLS      403 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    381.22        .68283E-03** at limit **
   2  alpha         1.2419        2.8124        .63877E-05   -.16344E-07
   3  Normalizat    1.0089        .23682E-01    .17018E-06   -.92818E-04
   4  Prefactor     1.3674        .30205E-01    .97835E-07   -.39110E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6594.897     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      431 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.218        .30396E-02** at limit **
   2  alpha         1.2487        2.7000        .74011E-02    .67587E-07
   3  Normalizat    1.0089        .20374        .10646E-04   -.92690E-04
   4  Prefactor     1.3674        .25981        .11848E-04   -.38956E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 1.24868
  Normalizat = 1.00892
  Prefactor  = 1.36738
 **********
 **   18 **HESSE 
 **********

 FCN=   6594.897     FROM HESSE     STATUS=OK            23 CALLS      454 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.687        .60792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2487        3.0984        .14802E-02   -.52421    
   3  Normalizat    1.0089        .20374        .21293E-05   -.92732    
   4  Prefactor     1.3674        .25984        .23697E-05   -.81325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39323e-10
Minuit parameter uncertainties:
  1  0.000375533
  2  413.579
  3  0.203894
  4  0.260084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766867': 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) = 6594.89733187
delta logL = 2.16818079934e-07

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  1.000e-04  3.755e-04  1.000e-04  1.000e+04 ( 1.000e-14)
353        alpha:  1.249e+00  4.136e+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:  1.367e+00  2.601e-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.009e+00  2.039e-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/766867/cmap_HighResolution_567734401_567993601_4FGL_J1124.9+4934_daily_bin1267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-05', job_status='DONE', photon_flux_upper_limit='1.42e-08', time_completed='2021-09-03 19:56:27.873332', job_id='766867', GAL2='1.37', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630724187.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='2.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.52' WHERE bin_id='1267' AND source_name='4FGL J1124.9+4934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 19:56:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 766867: <4FGL_J1124.9+4934_daily_bin1267> in cluster <slac> Done

Job <4FGL_J1124.9+4934_daily_bin1267> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 19:41:07 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 19:41:22 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:41:22 2021
Terminated at Fri Sep  3 19:56:31 2021
Results reported at Fri Sep  3 19:56:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_daily_bin1267 171.243 49.5674 567734401 567993601 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 :                                   881.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             325.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            924 sec.

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

