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


Performing analysis on: 4FGL_J1123.4-2529_daily_bin305
RA = 170.868, Dec = -25.488
tmin = 318384001, tmax = 318643201
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='689405', job_status='RUN', time_executed='2021-09-03 16:59:52.578000', time_epoch_executed='1630713592.58' WHERE source_name='4FGL J1123.4-2529' and cadence='daily' and bin_id='305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/689405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/689405/ft1_4FGL_J1123.4-2529_daily_bin305.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/689405/ft2_4FGL_J1123.4-2529_daily_bin305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/689405/ft1_4FGL_J1123.4-2529_daily_bin305.fits outfile=/scratch/kocevski/689405/ft1_filteredMKT_4FGL_J1123.4-2529_daily_bin305.fits ra=170.868 dec=-25.488 rad=12.0 tmin=318384001.0 tmax=318643201.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.31
user 3.10
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/689405/ft1_filtered_4FGL_J1123.4-2529_daily_bin305.fits" evtable="EVENTS" scfile=/scratch/kocevski/689405/ft2_4FGL_J1123.4-2529_daily_bin305.fits sctable="SC_DATA" outfile=/scratch/kocevski/689405/ltcube_318384001_318643201_4FGL_J1123.4-2529_daily_bin305.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/689405/ft2_4FGL_J1123.4-2529_daily_bin305.fits
.....................!
real 16.47
user 16.08
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/689405/ft1_filtered_4FGL_J1123.4-2529_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/689405/ft2_4FGL_J1123.4-2529_daily_bin305.fits sctable="SC_DATA" expcube=/scratch/kocevski/689405/ltcube_318384001_318643201_4FGL_J1123.4-2529_daily_bin305.fits outfile=/scratch/kocevski/689405/expmap_318384001_318643201_4FGL_J1123.4-2529_daily_bin305.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/689405/ltcube_318384001_318643201_4FGL_J1123.4-2529_daily_bin305.fits
.....................!
real 192.48
user 187.47
sys 4.62

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/689405/ft1_filtered_4FGL_J1123.4-2529_daily_bin305.fits scfile=/scratch/kocevski/689405/ft2_4FGL_J1123.4-2529_daily_bin305.fits outfile=/scratch/kocevski/689405/cmap_318384001_318643201_4FGL_J1123.4-2529_daily_bin305.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/689405/ft1_filtered_4FGL_J1123.4-2529_daily_bin305.fits scfile=/scratch/kocevski/689405/ft2_4FGL_J1123.4-2529_daily_bin305.fits outfile=/scratch/kocevski/689405/cmap_HighResolution_318384001_318643201_4FGL_J1123.4-2529_daily_bin305.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/689405/ft1_filtered_4FGL_J1123.4-2529_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/689405/ft2_4FGL_J1123.4-2529_daily_bin305.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/689405/Model_4FGL_J1123.4-2529_daily_bin305.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/689405/ft1_filtered_4FGL_J1123.4-2529_daily_bin305.fits.....................!
real 57.28
user 56.00
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.976       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1017       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5503       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24712       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.276       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.716       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.326       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.895       1.0000         .10000E-03   10000.    
    15 'norm      '    4.0384       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1433       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    21.914       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.3395       1.0000         .10000E-03   10000.    
    22 'norm      '    10.545       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11829E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0513       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0353       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=   5663.442     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3690 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.143        .15521E-06** at limit **
   2  Prefactor     10.984        17.142        .23936E-06    .29184E-05
   3  norm          .10000E-03    3.0446        .13874E-07** at limit **
   4  Prefactor     1.0927        14.186       -.17173E-05   -.50488E-04
   5  Prefactor     9.5689        7.0316        .33589E-06    .25449E-04
   6  Prefactor     .16314E-01    10.751       -.79524E-06    .14733E-05
   7  Prefactor     14.274        8.6750        .32117E-06   -.31143E-05
   8  Prefactor     31.724        18.728       -.10948E-05    .10106E-03
   9  Prefactor     19.312        36.522       -.43375E-05    .31634E-04
  10  Prefactor     .10000E-03    46.546        .16113E-04** at limit **
  11  Prefactor     .10000E-03    26.569        .40331E-05** at limit **
  12  Prefactor     .10000E-03    7.7310       -.69581E-08** at limit **
  13  Prefactor     .10000E-03    31.883       -.11697E-04** at limit **
  14  Prefactor     25.891        36.510       -.22123E-05    .34927E-04
  15  norm          4.0378        1.6817       -.17839E-07    .48092E-04
  16  Prefactor     .10000E-03    6.5123        .95576E-07** at limit **
  17  Prefactor     .10000E-03    6.1115       -.70082E-07** at limit **
  18  Prefactor     1.1400        5.7721       -.24214E-05   -.93185E-03
  19  Prefactor     .10000E-03    18.815       -.42062E-05** at limit **
  20  norm          21.909        21.804        .12456E-05   -.39790E-04
  21  Prefactor     9.3256        34.132        .51782E-05    .87124E-04
  22  norm          10.541        12.479       -.37738E-05    .25468E-03
  23  Prefactor     .10000E-03    2.5723        .89433E-08** at limit **
  24  Prefactor     .10000E-03    93.616        .80104E-05** at limit **
  25  Prefactor     .10000E-03    19.050        .39304E-05** at limit **
  26  Prefactor     .10001E-03    53.587       -.19299E-04** at limit **
  27  Prefactor     .10000E-03    36.100        .65873E-05** at limit **
  28  Normalizat    1.0514        .27712        .10472E-05    .15434E-03
  29  Prefactor     1.0355        .14092        .71683E-06    .27708E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.9839
  norm       = 0.0001
  Prefactor  = 1.09265
  Prefactor  = 9.56888
  Prefactor  = 0.0163139
  Prefactor  = 14.2736
  Prefactor  = 31.7243
  Prefactor  = 19.3119
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 25.8908
  norm       = 4.03778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.14
  Prefactor  = 0.0001
  norm       = 21.9092
  Prefactor  = 9.32559
  norm       = 10.5414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Normalizat = 1.05144
  Prefactor  = 1.03549
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.442     FROM HESSE     STATUS=OK           557 CALLS     4247 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.984        17.105        .12093E-03   -1.5045    
   3  norm          .10000E-03    3.0798        .12795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0927        74.865        .54055E-02   -1.5499    
   5  Prefactor     9.5689        7.0209        .12968E-03   -1.5089    
   6  Prefactor     .16314E-01    20.027        .68651E-01   -1.5682    
   7  Prefactor     14.274        8.6748        .10601E-03   -1.4952    
   8  Prefactor     31.724        18.733        .71148E-04   -1.4581    
   9  Prefactor     19.312        36.586        .91108E-04   -1.4829    
  10  Prefactor     .10000E-03    45.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.7461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    31.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.891        36.520        .78722E-04   -1.4690    
  15  norm          4.0378        1.6847        .60139E-04   -1.5306    
  16  Prefactor     .10000E-03    6.5356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.1178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1400        6.2960        .36063E-03   -1.5494    
  19  Prefactor     .10000E-03    18.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          21.909        21.800        .85564E-04   -1.4771    
  21  Prefactor     9.3256        33.692        .13114E-03   -1.5097    
  22  norm          10.541        12.354        .12338E-03   -1.5059    
  23  Prefactor     .10000E-03    2.5854        .11785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    93.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    19.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    53.646        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    36.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0514        .32140        .36607E-03   -.91327    
  29  Prefactor     1.0355        .16487        .19424E-03   -.91556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54224e-08
Minuit parameter uncertainties:
  1  9.43012e-07
  2  17.1124
  3  1.06029e-05
  4  18.1116
  5  7.02146
  6  1.14005
  7  8.67555
  8  18.7367
  9  36.6287
  10  0.000821863
  11  0.000178367
  12  5.48972e-06
  13  0.000511566
  14  36.5519
  15  1.68472
  16  6.96575e-06
  17  4.37734e-07
  18  5.35879
  19  0.000173409
  20  21.8077
  21  33.7607
  22  12.3569
  23  3.59358e-07
  24  0.000233313
  25  0.000137902
  26  0.00155647
  27  0.000250654
  28  0.321996
  29  0.164946
Done.

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

Extracting fit parameters...

4FGL J1123.4-2529
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  5.490e-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.035e+00  1.649e-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.051e+00  3.220e-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: 9.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/689405/likelihoodResults_318384001_318643201_4FGL_J1123.4-2529_daily_bin305.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) = 5663.44249512
delta logL = -0.000614868294178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5663.44188034
delta logL = -9.64837454376e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2409       1.0000          .0000       10.000    
     3 'Normalizat'    1.0514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0355       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=   5663.442     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    813.65        .90712E-02** at limit **
   2  Index         2.2432        8.8784        .50000       -.27033E-05
   3  Normalizat    1.0514        .82245E-01    .82684E-01    .30195E-04
   4  Prefactor     1.0355        .43521E-01    .40843E-01    .22396E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.24319
  Normalizat = 1.05144
  Prefactor  = 1.03549
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.442     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    843.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2432        8.8325        .50000       -.58400    
   3  Normalizat    1.0514        .84228E-01    .36607E-03   -.91327    
   4  Prefactor     1.0355        .44728E-01    .19424E-03   -.91556    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15232e-09
Minuit parameter uncertainties:
  1  8.17606e-05
  2  44.2306
  3  0.0842392
  4  0.04473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/689405': 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) = 5663.44188024
delta logL = 2.90674506687e-09

Extracting fit parameters...

4FGL J1123.4-2529
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  8.176e-05  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.243e+00  4.423e+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:  1.035e+00  4.473e-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.051e+00  8.424e-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/689405/cmap_HighResolution_318384001_318643201_4FGL_J1123.4-2529_daily_bin305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.59e-03', job_status='DONE', photon_flux_upper_limit='9.94e-08', time_completed='2021-09-03 17:13:02.807834', job_id='689405', GAL2='1.04', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630714382.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.91e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='305' AND source_name='4FGL J1123.4-2529' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 17:13:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 689405: <4FGL_J1123.4-2529_daily_bin305> in cluster <slac> Done

Job <4FGL_J1123.4-2529_daily_bin305> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 16:56:57 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 16:59:40 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:59:40 2021
Terminated at Fri Sep  3 17:13:03 2021
Results reported at Fri Sep  3 17:13:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1123.4-2529_daily_bin305 170.868 -25.488 318384001 318643201 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 :                                   787.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            966 sec.

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

