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


Performing analysis on: 4FGL_J1123.4-2529_daily_bin324
RA = 170.868, Dec = -25.488
tmin = 323308801, tmax = 323568001
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='690557', job_status='RUN', time_executed='2021-09-03 17:04:12.512441', time_epoch_executed='1630713852.51' WHERE source_name='4FGL J1123.4-2529' and cadence='daily' and bin_id='324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/690557

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/690557/ft1_4FGL_J1123.4-2529_daily_bin324.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/690557/ft2_4FGL_J1123.4-2529_daily_bin324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/690557/ft1_4FGL_J1123.4-2529_daily_bin324.fits outfile=/scratch/kocevski/690557/ft1_filteredMKT_4FGL_J1123.4-2529_daily_bin324.fits ra=170.868 dec=-25.488 rad=12.0 tmin=323308801.0 tmax=323568001.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 3.34
user 3.12
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/690557/ft2_4FGL_J1123.4-2529_daily_bin324.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/690557/ft2_4FGL_J1123.4-2529_daily_bin324.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/690557/ft1_filteredMKT_4FGL_J1123.4-2529_daily_bin324.fits evtable="EVENTS" outfile="/scratch/kocevski/690557/ft1_filtered_4FGL_J1123.4-2529_daily_bin324.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.52
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/690557/ft1_filtered_4FGL_J1123.4-2529_daily_bin324.fits" evtable="EVENTS" scfile=/scratch/kocevski/690557/ft2_4FGL_J1123.4-2529_daily_bin324.fits sctable="SC_DATA" outfile=/scratch/kocevski/690557/ltcube_323308801_323568001_4FGL_J1123.4-2529_daily_bin324.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/690557/ft2_4FGL_J1123.4-2529_daily_bin324.fits
.....................!
real 16.57
user 16.13
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/690557/ft1_filtered_4FGL_J1123.4-2529_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/690557/ft2_4FGL_J1123.4-2529_daily_bin324.fits sctable="SC_DATA" expcube=/scratch/kocevski/690557/ltcube_323308801_323568001_4FGL_J1123.4-2529_daily_bin324.fits outfile=/scratch/kocevski/690557/expmap_323308801_323568001_4FGL_J1123.4-2529_daily_bin324.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/690557/ltcube_323308801_323568001_4FGL_J1123.4-2529_daily_bin324.fits
.....................!
real 192.09
user 186.05
sys 5.33

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1123.4-2529 @ 170.868 -25.488

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/690557/ft1_filtered_4FGL_J1123.4-2529_daily_bin324.fits scfile=/scratch/kocevski/690557/ft2_4FGL_J1123.4-2529_daily_bin324.fits outfile=/scratch/kocevski/690557/cmap_323308801_323568001_4FGL_J1123.4-2529_daily_bin324.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=170.868 yref=-25.488 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/690557/ft1_filtered_4FGL_J1123.4-2529_daily_bin324.fits scfile=/scratch/kocevski/690557/ft2_4FGL_J1123.4-2529_daily_bin324.fits outfile=/scratch/kocevski/690557/cmap_HighResolution_323308801_323568001_4FGL_J1123.4-2529_daily_bin324.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=170.868 yref=-25.488 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/690557/ft1_filtered_4FGL_J1123.4-2529_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/690557/ft2_4FGL_J1123.4-2529_daily_bin324.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/690557/Model_4FGL_J1123.4-2529_daily_bin324.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/690557/ft1_filtered_4FGL_J1123.4-2529_daily_bin324.fits.....................!
real 53.66
user 51.37
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/690557/ft1_filtered_4FGL_J1123.4-2529_daily_bin324.fits', '/scratch/kocevski/690557/ft2_4FGL_J1123.4-2529_daily_bin324.fits', expMap='/scratch/kocevski/690557/expmap_323308801_323568001_4FGL_J1123.4-2529_daily_bin324.fits', expCube='/scratch/kocevski/690557/ltcube_323308801_323568001_4FGL_J1123.4-2529_daily_bin324.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/690557/Model_4FGL_J1123.4-2529_daily_bin324.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1123.4-2529'

4FGL J1123.4-2529
   Spectrum: PowerLaw
284    Prefactor:  1.199e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.239e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  1.433e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/690557/ft1_filtered_4FGL_J1123.4-2529_daily_bin324.fits
Spacecraft file(s): /scratch/kocevski/690557/ft2_4FGL_J1123.4-2529_daily_bin324.fits
Exposure map: /scratch/kocevski/690557/expmap_323308801_323568001_4FGL_J1123.4-2529_daily_bin324.fits
Exposure cube: /scratch/kocevski/690557/ltcube_323308801_323568001_4FGL_J1123.4-2529_daily_bin324.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/690557/Model_4FGL_J1123.4-2529_daily_bin324.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) = 5168.59259308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58798       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.014       1.0000         .10000E-03   10000.    
     3 'norm      '    .10623E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6872       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6227       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.450       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.875       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .92300       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.771       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    41.525       1.0000         .10000E-03   10000.    
    22 'norm      '    .37203       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5080       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .70297       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5168.463     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3757 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51817        110.37        .37066E-04   -.43485E-04
   2  Prefactor     14.009        25.995       -.10677E-05   -.53340E-04
   3  norm          .10000E-03    4.7716       -.18028E-06** at limit **
   4  Prefactor     .10000E-03    10.500        .97096E-07** at limit **
   5  Prefactor     4.6881        6.0191        .56200E-06    .22664E-03
   6  Prefactor     6.6222        16.100       -.13309E-06   -.24094E-04
   7  Prefactor     .10000E-03    5.8793       -.79239E-07** at limit **
   8  Prefactor     .10000E-03    37.699        .84979E-06** at limit **
   9  Prefactor     50.453        33.943       -.58113E-07    .64204E-05
  10  Prefactor     .10000E-03    39.539        .97137E-06** at limit **
  11  Prefactor     .10000E-03    17.432        .13814E-05** at limit **
  12  Prefactor     16.875        13.544       -.70264E-07   -.72501E-04
  13  Prefactor     .10000E-03    36.614        .20845E-05** at limit **
  14  Prefactor     .10000E-03    45.206       -.30799E-05** at limit **
  15  norm          .92256        1.5487        .18279E-06    .18043E-02
  16  Prefactor     .10000E-03    13.634       -.40691E-06** at limit **
  17  Prefactor     .10000E-03    4.8959       -.11137E-06** at limit **
  18  Prefactor     16.770        9.1155       -.33131E-07   -.65275E-04
  19  Prefactor     .10004E-03    137.47        .91009E-06** at limit **
  20  norm          .10000E-03    19.383       -.16101E-06** at limit **
  21  Prefactor     41.536        28.865        .41612E-05    .57265E-03
  22  norm          .37980        7.1442       -.39708E-05    .15333E-03
  23  Prefactor     .10000E-03    4.0779       -.23028E-06** at limit **
  24  Prefactor     .10000E-03    22.800       -.18673E-05** at limit **
  25  Prefactor     .10000E-03    27.158       -.50478E-06** at limit **
  26  Prefactor     .10000E-03    8.9936       -.12909E-06** at limit **
  27  Prefactor     .10000E-03    27.332       -.39773E-06** at limit **
  28  Normalizat    1.5079        .27477       -.67188E-07    .10134E-04
  29  Prefactor     .70307        .13040       -.30681E-06   -.18924E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.51817
  Prefactor  = 14.0088
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.68808
  Prefactor  = 6.62222
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 50.4529
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.8747
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  norm       = 0.922559
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.7704
  Prefactor  = 0.000100036
  norm       = 0.0001
  Prefactor  = 41.5356
  norm       = 0.379798
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.50789
  Prefactor  = 0.703069
 **********
 **   18 **HESSE 
 **********

 FCN=   5168.463     FROM HESSE     STATUS=OK           547 CALLS     4304 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51817        108.82        .48048E-02   -1.5564    
   2  Prefactor     14.009        25.662        .10699E-03   -1.4959    
   3  norm          .10000E-03    4.8293        .30368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6881        6.0058        .17180E-03   -1.5275    
   6  Prefactor     6.6222        16.068        .15593E-03   -1.5193    
   7  Prefactor     .10000E-03    6.0359        .34029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    38.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     50.453        33.956        .56461E-04   -1.4286    
  10  Prefactor     .10000E-03    39.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.875        13.555        .97497E-04   -1.4886    
  13  Prefactor     .10000E-03    36.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    45.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .92256        1.5386        .10904E-03   -1.5516    
  16  Prefactor     .10000E-03    14.098        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.8989        .15536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.770        9.1673        .97801E-04   -1.4889    
  19  Prefactor     .10004E-03    143.29        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    19.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     41.536        46.674        .62207E-04   -1.4418    
  22  norm          .37980        116.56        .26554E-02   -1.5585    
  23  Prefactor     .10000E-03    4.1195        .14181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    27.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.9976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    27.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.5079        .32914        .29492E-03   -.77557    
  29  Prefactor     .70307        .15586        .20786E-03   -1.0341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28559e-08
Minuit parameter uncertainties:
  1  15.0444
  2  25.6822
  3  8.54756e-05
  4  3.27055e-05
  5  6.00654
  6  16.0781
  7  2.08618e-05
  8  0.00061749
  9  33.9692
  10  0.000207289
  11  0.000210298
  12  13.5579
  13  0.000453575
  14  0.000806444
  15  1.53863
  16  0.000227236
  17  9.97036e-06
  18  9.16811
  19  0.00454745
  20  2.55098e-05
  21  46.7154
  22  13.3316
  23  5.4371e-06
  24  0.00028422
  25  7.27112e-05
  26  1.76193e-06
  27  4.46421e-05
  28  0.32961
  29  0.155953
Done.

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

Extracting fit parameters...

4FGL J1123.4-2529
   Spectrum: PowerLaw
284    Prefactor:  1.687e+01  1.356e+01  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.239e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  1.433e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
588    Prefactor:  7.031e-01  1.560e-01  0.000e+00  1.000e+01 ( 1.000e+00)
589        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
590        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  1.508e+00  3.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.01
Ra Dec: 170.868 -25.488
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 5.28e-08 +/- 4.24e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 1.78e-05

TS (Fixed Index): 3.01
Ra Dec: 170.868 -25.488
Photon Flux Upper Limit: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/690557/likelihoodResults_323308801_323568001_4FGL_J1123.4-2529_daily_bin324.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) = 5168.46072329
delta logL = 0.00248821497462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5168.45841518
delta logL = 0.00479632696988

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.671       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3113       1.0000          .0000       10.000    
     3 'Normalizat'    1.5034       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70464       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+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=   5168.458     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      241 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.672        19.345        .10117E-03    .32146E-03
   2  Index         2.3113        .81383        .71341E-02    .68551E-04
   3  Normalizat    1.5034        .31052        .29528E-03    .37346E-04
   4  Prefactor     .70466        .15548        .20764E-03    .11607E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6718
  Index      = 2.31126
  Normalizat = 1.50337
  Prefactor  = 0.704665
 **********
 **   18 **HESSE 
 **********

 FCN=   5168.458     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.672        17.921        .20235E-04   -1.4916    
   2  Index         2.3113        .75402        .28536E-03   -.56776    
   3  Normalizat    1.5034        .31015        .11811E-04   -.77684    
   4  Prefactor     .70466        .15541        .83058E-05   -1.0334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18411e-10
Minuit parameter uncertainties:
  1  17.9273
  2  0.758104
  3  0.310547
  4  0.155503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/690557': 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) = 5168.45841517
delta logL = 0.00479633778377

Extracting fit parameters...

4FGL J1123.4-2529
   Spectrum: PowerLaw
284    Prefactor:  1.567e+01  1.793e+01  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.311e+00  7.581e-01  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  1.433e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
588    Prefactor:  7.047e-01  1.555e-01  0.000e+00  1.000e+01 ( 1.000e+00)
589        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
590        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  1.503e+00  3.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.02
Ra Dec: 170.868 -25.488
Photon Index (Free Index): 2.31 +/- 0.76
Photon Flux (Free Index): 5.63e-08 +/- 5.68e-08
Energy Flux (Free Index): 2.09e-05 +/- 2.02e-05

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/690557/cmap_HighResolution_323308801_323568001_4FGL_J1123.4-2529_daily_bin324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='5.28e-08', energy_flux2='2.09e-05', photon_flux_error='4.24e-08', dlogl='4.80e-03', energy_flux='2.21e-05', photon_flux2='5.63e-08', job_status='DONE', time_completed='2021-09-03 17:16:51.133275', photon_index_error2='0.76', photon_index2='2.31', ts='3.01', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='2.02e-05', EG='1.51', time_epoch_completed='1630714611.13', return_code='0', job_id='690557', GAL2='0.70', EG2='1.50', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='5.68e-08', ts2='3.02', photon_index='2.24' WHERE bin_id='324' AND source_name='4FGL J1123.4-2529' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 17:16:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 690557: <4FGL_J1123.4-2529_daily_bin324> in cluster <slac> Done

Job <4FGL_J1123.4-2529_daily_bin324> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 17:01:24 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 17:01:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 17:01:34 2021
Terminated at Fri Sep  3 17:16:51 2021
Results reported at Fri Sep  3 17:16:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1123.4-2529_daily_bin324 170.868 -25.488 323308801 323568001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1123.4-2529 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   755.26 sec.
    Max Memory :                                 1171 MB
    Average Memory :                             284.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            927 sec.

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

