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


Performing analysis on: 4FGL_J1123.4-2529_daily_bin1121
RA = 170.868, Dec = -25.488
tmin = 529891201, tmax = 530150401
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='695200', job_status='RUN', time_executed='2021-09-03 17:16:32.143739', time_epoch_executed='1630714592.14' WHERE source_name='4FGL J1123.4-2529' and cadence='daily' and bin_id='1121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/695200

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/695200/ft1_4FGL_J1123.4-2529_daily_bin1121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/695200/ft2_4FGL_J1123.4-2529_daily_bin1121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/695200/ft1_4FGL_J1123.4-2529_daily_bin1121.fits outfile=/scratch/kocevski/695200/ft1_filteredMKT_4FGL_J1123.4-2529_daily_bin1121.fits ra=170.868 dec=-25.488 rad=12.0 tmin=529891201.0 tmax=530150401.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.54
user 3.29
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/695200/ft2_4FGL_J1123.4-2529_daily_bin1121.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/695200/ft1_filteredMKT_4FGL_J1123.4-2529_daily_bin1121.fits evtable="EVENTS" outfile="/scratch/kocevski/695200/ft1_filtered_4FGL_J1123.4-2529_daily_bin1121.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/695200/ft1_filtered_4FGL_J1123.4-2529_daily_bin1121.fits" evtable="EVENTS" scfile=/scratch/kocevski/695200/ft2_4FGL_J1123.4-2529_daily_bin1121.fits sctable="SC_DATA" outfile=/scratch/kocevski/695200/ltcube_529891201_530150401_4FGL_J1123.4-2529_daily_bin1121.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/695200/ft2_4FGL_J1123.4-2529_daily_bin1121.fits
.....................!
real 12.99
user 12.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/695200/ft1_filtered_4FGL_J1123.4-2529_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/695200/ft2_4FGL_J1123.4-2529_daily_bin1121.fits sctable="SC_DATA" expcube=/scratch/kocevski/695200/ltcube_529891201_530150401_4FGL_J1123.4-2529_daily_bin1121.fits outfile=/scratch/kocevski/695200/expmap_529891201_530150401_4FGL_J1123.4-2529_daily_bin1121.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/695200/ltcube_529891201_530150401_4FGL_J1123.4-2529_daily_bin1121.fits
.....................!
real 193.54
user 187.96
sys 5.11

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/695200/ft1_filtered_4FGL_J1123.4-2529_daily_bin1121.fits scfile=/scratch/kocevski/695200/ft2_4FGL_J1123.4-2529_daily_bin1121.fits outfile=/scratch/kocevski/695200/cmap_529891201_530150401_4FGL_J1123.4-2529_daily_bin1121.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.60
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/695200/ft1_filtered_4FGL_J1123.4-2529_daily_bin1121.fits scfile=/scratch/kocevski/695200/ft2_4FGL_J1123.4-2529_daily_bin1121.fits outfile=/scratch/kocevski/695200/cmap_HighResolution_529891201_530150401_4FGL_J1123.4-2529_daily_bin1121.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.56
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/695200/ft1_filtered_4FGL_J1123.4-2529_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/695200/ft2_4FGL_J1123.4-2529_daily_bin1121.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/695200/Model_4FGL_J1123.4-2529_daily_bin1121.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/695200/ft1_filtered_4FGL_J1123.4-2529_daily_bin1121.fits.....................!
real 58.74
user 56.20
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/695200/ft1_filtered_4FGL_J1123.4-2529_daily_bin1121.fits', '/scratch/kocevski/695200/ft2_4FGL_J1123.4-2529_daily_bin1121.fits', expMap='/scratch/kocevski/695200/expmap_529891201_530150401_4FGL_J1123.4-2529_daily_bin1121.fits', expCube='/scratch/kocevski/695200/ltcube_529891201_530150401_4FGL_J1123.4-2529_daily_bin1121.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/695200/Model_4FGL_J1123.4-2529_daily_bin1121.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/695200/ft1_filtered_4FGL_J1123.4-2529_daily_bin1121.fits
Spacecraft file(s): /scratch/kocevski/695200/ft2_4FGL_J1123.4-2529_daily_bin1121.fits
Exposure map: /scratch/kocevski/695200/expmap_529891201_530150401_4FGL_J1123.4-2529_daily_bin1121.fits
Exposure cube: /scratch/kocevski/695200/ltcube_529891201_530150401_4FGL_J1123.4-2529_daily_bin1121.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/695200/Model_4FGL_J1123.4-2529_daily_bin1121.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) = 5868.1199129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.5355       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9130       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .62327       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19899E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6232       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9083       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.650       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.843       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.946       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0123       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.548       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    21.381       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .43946E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    12.036       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.2976       1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.169       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2917       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91085       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=   5868.113     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3738 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5561       -.22842E-08** at limit **
   2  Prefactor     9.5350        21.223        .13097E-06    .49716E-05
   3  norm          1.9113        6.4618       -.19662E-06   -.51076E-04
   4  Prefactor     .10000E-03    6.4116       -.56021E-08** at limit **
   5  Prefactor     .62656        4.5626        .40805E-06    .94548E-05
   6  Prefactor     .10022E-03    7.9197       -.95492E-06** at limit **
   7  Prefactor     .10000E-03    5.6950        .39891E-07** at limit **
   8  Prefactor     1.6221        32.199       -.20212E-06    .42273E-05
   9  Prefactor     6.9075        24.270        .19427E-05    .22795E-06
  10  Prefactor     19.646        77.283       -.56498E-05   -.34085E-05
  11  Prefactor     29.856        50.805        .95559E-05    .58243E-05
  12  Prefactor     .10000E-03    18.340       -.57612E-06** at limit **
  13  Prefactor     .10000E-03    64.911        .37370E-05** at limit **
  14  Prefactor     35.944        34.266       -.20329E-06    .17861E-05
  15  norm          1.0125        1.3870        .91236E-07    .36940E-04
  16  Prefactor     .10000E-03    8.2747        .43510E-07** at limit **
  17  Prefactor     16.547        16.165       -.36914E-08    .89434E-06
  18  Prefactor     .10000E-03    4.7956       -.28953E-08** at limit **
  19  Prefactor     .10000E-03    9.4556        .14297E-07** at limit **
  20  norm          21.380        21.060        .28625E-06   -.37196E-06
  21  Prefactor     .10000E-03    21.055       -.71814E-07** at limit **
  22  norm          12.041        7.5123       -.10459E-06    .15551E-04
  23  Prefactor     2.2991        1.1769        .19475E-07   -.64809E-03
  24  Prefactor     34.173        39.475        .38028E-05    .33057E-05
  25  Prefactor     .10000E-03    31.530        .96831E-06** at limit **
  26  Prefactor     .10000E-03    10.389       -.71882E-07** at limit **
  27  Prefactor     .10000E-03    31.719       -.10293E-05** at limit **
  28  Normalizat    1.2917        .25021       -.88021E-06    .64319E-04
  29  Prefactor     .91090        .12981       -.57765E-07    .65706E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.53503
  norm       = 1.91134
  Prefactor  = 0.0001
  Prefactor  = 0.626565
  Prefactor  = 0.000100222
  Prefactor  = 0.0001
  Prefactor  = 1.62211
  Prefactor  = 6.90751
  Prefactor  = 19.6465
  Prefactor  = 29.8559
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 35.9443
  norm       = 1.01251
  Prefactor  = 0.0001
  Prefactor  = 16.5472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.38
  Prefactor  = 0.000100003
  norm       = 12.0408
  Prefactor  = 2.29909
  Prefactor  = 34.1731
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29168
  Prefactor  = 0.910903
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.113     FROM HESSE     STATUS=OK           569 CALLS     4307 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.5350        20.488        .12978E-03   -1.5090    
   3  norm          1.9113        6.0634        .25813E-03   -1.5431    
   4  Prefactor     .10000E-03    6.4246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .62656        7.4634        .27215E-02   -1.5550    
   6  Prefactor     .10022E-03    75.787        .39577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8107        .17837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6221        32.708        .33212E-03   -1.5453    
   9  Prefactor     6.9075        24.205        .15264E-03   -1.5182    
  10  Prefactor     19.646        77.082        .90354E-04   -1.4821    
  11  Prefactor     29.856        50.853        .73341E-04   -1.4615    
  12  Prefactor     .10000E-03    18.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    65.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.944        34.262        .66844E-04   -1.4508    
  15  norm          1.0125        1.2913        .99055E-03   -1.5507    
  16  Prefactor     .10000E-03    8.3629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.547        16.178        .98456E-04   -1.4894    
  18  Prefactor     .10000E-03    4.8926        .16373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.4567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          21.380        21.063        .86623E-04   -1.4783    
  21  Prefactor     .10000E-03    32.096        .80644E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.041        7.6739        .11547E-03   -1.5014    
  23  Prefactor     2.2991        5.8110        .13538E-02   -1.5405    
  24  Prefactor     34.173        39.495        .68554E-04   -1.4538    
  25  Prefactor     .10000E-03    31.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    10.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    31.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2917        .29540        .31612E-03   -.83815    
  29  Prefactor     .91090        .15569        .19401E-03   -.95761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46447e-09
Minuit parameter uncertainties:
  1  2.47484e-06
  2  20.5035
  3  6.06537
  4  2.13811e-06
  5  4.32529
  6  0.00821646
  7  2.48902e-06
  8  14.5765
  9  24.239
  10  77.477
  11  50.9272
  12  0.000205123
  13  9.87024e-07
  14  34.2804
  15  1.2913
  16  7.41627e-06
  17  16.182
  18  3.16825e-07
  19  2.35651e-07
  20  21.07
  21  0.000633086
  22  7.67454
  23  5.81243
  24  39.5257
  25  6.52161e-06
  26  6.26396e-06
  27  1.57395e-05
  28  0.295791
  29  0.155764
Done.

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

Extracting fit parameters...

4FGL J1123.4-2529
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  2.051e-04  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:  9.109e-01  1.558e-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.292e+00  2.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 170.868 -25.488
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/695200/likelihoodResults_529891201_530150401_4FGL_J1123.4-2529_daily_bin1121.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) = 5868.11298811
delta logL = -0.000256623021414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5868.11273196
delta logL = -4.64625372842e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13054E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3050       1.0000          .0000       10.000    
     3 'Normalizat'    1.2919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91079       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.

 FCN=   5868.113     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      217 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10015E-03    1475.8        .90712E-02** at limit **
   2  Index         2.4030        5.2032        .50000       -.43760E-04
   3  Normalizat    1.2917        .42302E-01    .71442E-01    .48223E-04
   4  Prefactor     .91090        .22320E-01    .45142E-01    .27722E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100154
  Index      = 2.40301
  Normalizat = 1.29168
  Prefactor  = 0.910903
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.113     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      250 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10015E-03    7485.4        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4030        5.3129        .50000       -.54615    
   3  Normalizat    1.2917        .10201        .31612E-03   -.83815    
   4  Prefactor     .91090        .53991E-01    .19401E-03   -.95761    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.70271e-06
Minuit parameter uncertainties:
  1  0.0613847
  2  53.0898
  3  0.102022
  4  0.0539944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/695200': 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): 102
logL (Free Index) = 5868.11273004
delta logL = 1.44747173181e-06

Extracting fit parameters...

4FGL J1123.4-2529
   Spectrum: PowerLaw
284    Prefactor:  1.002e-04  6.138e-02  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.403e+00  5.309e+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:  9.109e-01  5.399e-02  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.292e+00  1.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 170.868 -25.488

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/695200/cmap_HighResolution_529891201_530150401_4FGL_J1123.4-2529_daily_bin1121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.87e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-03 17:30:04.726401', job_id='695200', GAL2='0.91', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630715404.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1121' AND source_name='4FGL J1123.4-2529' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 17:30:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 695200: <4FGL_J1123.4-2529_daily_bin1121> in cluster <slac> Done

Job <4FGL_J1123.4-2529_daily_bin1121> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep  3 17:16:01 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 17:16:19 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:16:19 2021
Terminated at Fri Sep  3 17:30:05 2021
Results reported at Fri Sep  3 17:30:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1123.4-2529_daily_bin1121 170.868 -25.488 529891201 530150401 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 :                                   806.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            844 sec.

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

