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


Performing analysis on: 4FGL_J1123.4-2529_daily_bin180
RA = 170.868, Dec = -25.488
tmin = 285984001, tmax = 286243201
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='689187', job_status='RUN', time_executed='2021-09-03 17:00:25.694248', time_epoch_executed='1630713625.69' WHERE source_name='4FGL J1123.4-2529' and cadence='daily' and bin_id='180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/689187

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/689187/ft1_4FGL_J1123.4-2529_daily_bin180.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/689187/ft2_4FGL_J1123.4-2529_daily_bin180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/689187/ft1_4FGL_J1123.4-2529_daily_bin180.fits outfile=/scratch/kocevski/689187/ft1_filteredMKT_4FGL_J1123.4-2529_daily_bin180.fits ra=170.868 dec=-25.488 rad=12.0 tmin=285984001.0 tmax=286243201.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.41
user 3.18
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/689187/ft1_filtered_4FGL_J1123.4-2529_daily_bin180.fits" evtable="EVENTS" scfile=/scratch/kocevski/689187/ft2_4FGL_J1123.4-2529_daily_bin180.fits sctable="SC_DATA" outfile=/scratch/kocevski/689187/ltcube_285984001_286243201_4FGL_J1123.4-2529_daily_bin180.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/689187/ft2_4FGL_J1123.4-2529_daily_bin180.fits
.....................!
real 15.51
user 15.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/689187/ft1_filtered_4FGL_J1123.4-2529_daily_bin180.fits evtable="EVENTS" scfile=/scratch/kocevski/689187/ft2_4FGL_J1123.4-2529_daily_bin180.fits sctable="SC_DATA" expcube=/scratch/kocevski/689187/ltcube_285984001_286243201_4FGL_J1123.4-2529_daily_bin180.fits outfile=/scratch/kocevski/689187/expmap_285984001_286243201_4FGL_J1123.4-2529_daily_bin180.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/689187/ltcube_285984001_286243201_4FGL_J1123.4-2529_daily_bin180.fits
.....................!
real 190.84
user 185.65
sys 4.31

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/689187/ft1_filtered_4FGL_J1123.4-2529_daily_bin180.fits scfile=/scratch/kocevski/689187/ft2_4FGL_J1123.4-2529_daily_bin180.fits outfile=/scratch/kocevski/689187/cmap_285984001_286243201_4FGL_J1123.4-2529_daily_bin180.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/689187/ft1_filtered_4FGL_J1123.4-2529_daily_bin180.fits scfile=/scratch/kocevski/689187/ft2_4FGL_J1123.4-2529_daily_bin180.fits outfile=/scratch/kocevski/689187/cmap_HighResolution_285984001_286243201_4FGL_J1123.4-2529_daily_bin180.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/689187/ft1_filtered_4FGL_J1123.4-2529_daily_bin180.fits evtable="EVENTS" scfile=/scratch/kocevski/689187/ft2_4FGL_J1123.4-2529_daily_bin180.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/689187/Model_4FGL_J1123.4-2529_daily_bin180.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/689187/ft1_filtered_4FGL_J1123.4-2529_daily_bin180.fits.....................!
real 51.82
user 50.17
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41841E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10421E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.149       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.304       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.911       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.842       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .27745       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4550       1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.903       1.0000         .10000E-03   10000.    
    20 'norm      '    2.9435       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.8455       1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.088       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88564       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0023       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=   5136.401     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3697 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.167       -.42285E-05** at limit **
   2  Prefactor     .10000E-03    7.9189        .14501E-05** at limit **
   3  norm          .10000E-03    4.5684        .27053E-06** at limit **
   4  Prefactor     36.110        25.162        .14311E-05    .96616E-04
   5  Prefactor     .10000E-03    5.1869        .14004E-06** at limit **
   6  Prefactor     17.296        15.538        .14373E-05   -.82616E-05
   7  Prefactor     .10000E-03    6.4726        .14058E-05** at limit **
   8  Prefactor     .10000E-03    6.8269       -.18918E-05** at limit **
   9  Prefactor     31.915        27.789        .58889E-06   -.30412E-04
  10  Prefactor     .10000E-03    33.477        .74065E-06** at limit **
  11  Prefactor     16.847        28.474        .30179E-06    .46246E-05
  12  Prefactor     .10000E-03    10.152       -.16527E-05** at limit **
  13  Prefactor     .10000E-03    19.404       -.12029E-05** at limit **
  14  Prefactor     .10000E-03    22.538       -.25345E-06** at limit **
  15  norm          .27833        .99582        .71521E-06   -.27632E-03
  16  Prefactor     .10000E-03    11.894        .17065E-05** at limit **
  17  Prefactor     .10000E-03    17.659        .27541E-06** at limit **
  18  Prefactor     1.4870        16.973        .35571E-04   -.20086E-05
  19  Prefactor     42.766        56.381        .12509E-04   -.42900E-05
  20  norm          2.9465        22.113        .88855E-06    .40204E-05
  21  Prefactor     6.8441        12.680        .83591E-06    .36629E-04
  22  norm          .10000E-03    3.6558       -.34637E-06** at limit **
  23  Prefactor     16.081        8.9785       -.12030E-05    .57202E-04
  24  Prefactor     .10000E-03    32.237        .19084E-05** at limit **
  25  Prefactor     .10000E-03    22.485       -.40327E-06** at limit **
  26  Prefactor     .10000E-03    17.626        .16458E-06** at limit **
  27  Prefactor     .10000E-03    129.06       -.11458E-04** at limit **
  28  Normalizat    .88557        .26313       -.12741E-04   -.46968E-04
  29  Prefactor     1.0022        .13417        .21343E-05    .21823E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.1102
  Prefactor  = 0.0001
  Prefactor  = 17.2964
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.9148
  Prefactor  = 0.0001
  Prefactor  = 16.8472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.278328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.48696
  Prefactor  = 42.7657
  norm       = 2.94647
  Prefactor  = 6.84411
  norm       = 0.0001
  Prefactor  = 16.0808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.885571
  Prefactor  = 1.00217
 **********
 **   18 **HESSE 
 **********

 FCN=   5136.401     FROM HESSE     STATUS=OK           543 CALLS     4240 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    66.982        .42486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.9256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.6939        .29887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     36.110        25.094        .66656E-04   -1.4505    
   5  Prefactor     .10000E-03    5.3067        .31771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.296        15.510        .96282E-04   -1.4876    
   7  Prefactor     .10000E-03    6.6522        .35589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.9159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.915        27.788        .70931E-04   -1.4577    
  10  Prefactor     .10000E-03    33.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.847        28.475        .97593E-04   -1.4887    
  12  Prefactor     .10000E-03    10.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .27833        1.2865        .12634E-02   -1.5602    
  16  Prefactor     .10000E-03    12.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4870        17.427        .17848E-02   -1.5464    
  19  Prefactor     42.766        56.976        .30602E-03   -1.4399    
  20  norm          2.9465        22.170        .23673E-03   -1.5365    
  21  Prefactor     6.8441        12.642        .76674E-03   -1.5185    
  22  norm          .10000E-03    3.6901        .13354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.081        8.9671        .49928E-03   -1.4906    
  24  Prefactor     .10000E-03    32.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    17.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    129.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .88557        .30445        .35257E-03   -.96969    
  29  Prefactor     1.0022        .15852        .17810E-03   -.92657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59412e-08
Minuit parameter uncertainties:
  1  0.000701532
  2  1.22155e-05
  3  3.64242e-05
  4  25.1015
  5  2.94405e-05
  6  15.5134
  7  3.17906e-05
  8  2.62342e-05
  9  27.7989
  10  1.12584e-05
  11  28.4977
  12  9.3075e-06
  13  1.93066e-06
  14  1.71348e-05
  15  1.1966
  16  3.0954e-05
  17  5.33042e-05
  18  10.1843
  19  57.0485
  20  16.1725
  21  12.6471
  22  4.19628e-05
  23  8.96789
  24  4.53704e-05
  25  3.37152e-05
  26  2.32107e-05
  27  0.000190637
  28  0.305047
  29  0.158594
Done.

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

Extracting fit parameters...

4FGL J1123.4-2529
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  9.307e-06  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:  1.002e+00  1.586e-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:  8.856e-01  3.050e-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: 8.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/689187/likelihoodResults_285984001_286243201_4FGL_J1123.4-2529_daily_bin180.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) = 5136.40178995
delta logL = -0.000464636424113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5136.40132726
delta logL = -1.94544918486e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14840E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1969       1.0000          .0000       10.000    
     3 'Normalizat'    .88571       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0021       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=   5136.401     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      245 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10382E-03    5.6116        .18142E-01** at limit **
   2  Index         2.1048        5.4181        .50000        .25738E-04
   3  Normalizat    .88557        .42819E-02    .35258E-03   -.33047E-03
   4  Prefactor     1.0022        .23036E-02    .17810E-03   -.19554E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103821
  Index      = 2.10482
  Normalizat = 0.885565
  Prefactor  = 1.00217
 **********
 **   18 **HESSE 
 **********

 FCN=   5136.401     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10382E-03    290.85        .49157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1048        8.0353        .50000       -.61755    
   3  Normalizat    .88557        .31014E-01    .14103E-04   -.96969    
   4  Prefactor     1.0022        .16686E-01    .35621E-04   -.92657    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.98103e-08
Minuit parameter uncertainties:
  1  0.067001
  2  422.91
  3  0.0310147
  4  0.0166856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/689187': 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) = 5136.40132447
delta logL = 8.45609065436e-07

Extracting fit parameters...

4FGL J1123.4-2529
   Spectrum: PowerLaw
284    Prefactor:  1.038e-04  6.700e-02  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.105e+00  4.229e+02  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:  1.002e+00  1.669e-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:  8.856e-01  3.101e-02  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/689187/cmap_HighResolution_285984001_286243201_4FGL_J1123.4-2529_daily_bin180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.76e-03', job_status='DONE', photon_flux_upper_limit='8.85e-08', time_completed='2021-09-03 17:12:44.006187', job_id='689187', GAL2='1.00', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630714364.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='8.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='180' AND source_name='4FGL J1123.4-2529' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 17:12:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 689187: <4FGL_J1123.4-2529_daily_bin180> in cluster <slac> Done

Job <4FGL_J1123.4-2529_daily_bin180> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 16:56:43 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 16:58:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 16:58:18 2021
Terminated at Fri Sep  3 17:12:44 2021
Results reported at Fri Sep  3 17:12:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1123.4-2529_daily_bin180 170.868 -25.488 285984001 286243201 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 :                                   732.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            961 sec.

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

