/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: Dan/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 77 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 = 7511
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1123.5-6418_daily_bin1642
RA = 170.889, Dec = -64.3109
tmin = 664934401, tmax = 665193601
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='435922', job_status='RUN', time_executed='2022-01-30 06:28:12.926540', time_epoch_executed='1643552892.93' WHERE source_name='4FGL J1123.5-6418' and cadence='daily' and bin_id='1642'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435922

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435922/ft1_4FGL_J1123.5-6418_daily_bin1642.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435922/ft2_4FGL_J1123.5-6418_daily_bin1642.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435922/ft1_4FGL_J1123.5-6418_daily_bin1642.fits outfile=/scratch/kocevski/435922/ft1_filteredMKT_4FGL_J1123.5-6418_daily_bin1642.fits ra=170.889 dec=-64.3109 rad=12.0 tmin=664934401.0 tmax=665193601.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 4.14
user 3.86
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/435922/ft2_4FGL_J1123.5-6418_daily_bin1642.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/435922/ft2_4FGL_J1123.5-6418_daily_bin1642.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/435922/ft1_filteredMKT_4FGL_J1123.5-6418_daily_bin1642.fits evtable="EVENTS" outfile="/scratch/kocevski/435922/ft1_filtered_4FGL_J1123.5-6418_daily_bin1642.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/435922/ft1_filtered_4FGL_J1123.5-6418_daily_bin1642.fits" evtable="EVENTS" scfile=/scratch/kocevski/435922/ft2_4FGL_J1123.5-6418_daily_bin1642.fits sctable="SC_DATA" outfile=/scratch/kocevski/435922/ltcube_664934401_665193601_4FGL_J1123.5-6418_daily_bin1642.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/435922/ft2_4FGL_J1123.5-6418_daily_bin1642.fits
.....................!
real 11.87
user 11.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435922/ft1_filtered_4FGL_J1123.5-6418_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/435922/ft2_4FGL_J1123.5-6418_daily_bin1642.fits sctable="SC_DATA" expcube=/scratch/kocevski/435922/ltcube_664934401_665193601_4FGL_J1123.5-6418_daily_bin1642.fits outfile=/scratch/kocevski/435922/expmap_664934401_665193601_4FGL_J1123.5-6418_daily_bin1642.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/435922/ltcube_664934401_665193601_4FGL_J1123.5-6418_daily_bin1642.fits
.....................!
real 189.54
user 185.18
sys 3.98

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
Extended source FGES J1109.4-6115 in ROI with RadialDisk spatial model.
Extended source FGES J1036.3-5833 in ROI with RadialDisk spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source Westerlund 2 in ROI with RadialDisk spatial model.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RCW86.fits is the correct path to the extended template.
Added 297 point sources and 10 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1123.5-6418 @ 170.889 -64.3109

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/435922/ft1_filtered_4FGL_J1123.5-6418_daily_bin1642.fits scfile=/scratch/kocevski/435922/ft2_4FGL_J1123.5-6418_daily_bin1642.fits outfile=/scratch/kocevski/435922/cmap_664934401_665193601_4FGL_J1123.5-6418_daily_bin1642.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.889 yref=-64.3109 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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/435922/ft1_filtered_4FGL_J1123.5-6418_daily_bin1642.fits scfile=/scratch/kocevski/435922/ft2_4FGL_J1123.5-6418_daily_bin1642.fits outfile=/scratch/kocevski/435922/cmap_HighResolution_664934401_665193601_4FGL_J1123.5-6418_daily_bin1642.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.889 yref=-64.3109 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/435922/ft1_filtered_4FGL_J1123.5-6418_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/435922/ft2_4FGL_J1123.5-6418_daily_bin1642.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/435922/Model_4FGL_J1123.5-6418_daily_bin1642.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 FGES J1036.3-5833
adding source FGES J1109.4-6115
adding source FGES J1213.3-6240
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1420-607
adding source RCW 86
adding source Westerlund 2
Working on...
/scratch/kocevski/435922/ft1_filtered_4FGL_J1123.5-6418_daily_bin1642.fits.....................!
real 820.51
user 817.53
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/435922/ft1_filtered_4FGL_J1123.5-6418_daily_bin1642.fits', '/scratch/kocevski/435922/ft2_4FGL_J1123.5-6418_daily_bin1642.fits', expMap='/scratch/kocevski/435922/expmap_664934401_665193601_4FGL_J1123.5-6418_daily_bin1642.fits', expCube='/scratch/kocevski/435922/ltcube_664934401_665193601_4FGL_J1123.5-6418_daily_bin1642.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/435922/Model_4FGL_J1123.5-6418_daily_bin1642.xml', optimizer='MINUIT')

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

4FGL J1123.5-6418
   Spectrum: PowerLaw
418    Prefactor:  4.870e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        Index:  2.622e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
420        Scale:  1.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/435922/ft1_filtered_4FGL_J1123.5-6418_daily_bin1642.fits
Spacecraft file(s): /scratch/kocevski/435922/ft2_4FGL_J1123.5-6418_daily_bin1642.fits
Exposure map: /scratch/kocevski/435922/expmap_664934401_665193601_4FGL_J1123.5-6418_daily_bin1642.fits
Exposure cube: /scratch/kocevski/435922/ltcube_664934401_665193601_4FGL_J1123.5-6418_daily_bin1642.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/435922/Model_4FGL_J1123.5-6418_daily_bin1642.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) = 41303.9143193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.200       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1670       1.0000         .10000E-03   10000.    
     3 'norm      '    4.9436       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0274       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34816       1.0000         .10000E-03   10000.    
     6 'norm      '    3.7022       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .85833E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.8422       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    120.38       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1026       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.434       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.348       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3288       1.0000         .10000E-01   10.000    
    17 'norm      '    2.9160       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .97942       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1106E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   41303.91     FROM MIGRAD    STATUS=CONVERGED    361 CALLS     1788 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.168        89.904       -.73968E-05   -.20199E-03
   2  Prefactor     3.1681        7.5891        .65038E-06    .10642E-04
   3  norm          4.9436        1.7824        .44489E-07   -.37494E-03
   4  Prefactor     6.0265        13.681        .35323E-06    .53134E-05
   5  Prefactor     .34373        .84678        .58023E-07   -.63406E-03
   6  norm          3.7022        2.0458       -.97329E-06    .19624E-02
   7  Prefactor     .10000E-03    5.6769       -.11811E-06** at limit **
   8  Prefactor     .10000E-03    17.927        .37560E-07** at limit **
   9  norm          3.8420        5.4512        .82818E-06    .36318E-03
  10  Prefactor     .10000E-03    9.5181        .46293E-07** at limit **
  11  Prefactor     120.38        55.218       -.22057E-07    .31645E-04
  12  norm          .10000E-03    2.1301        .65359E-07** at limit **
  13  Prefactor     3.1034        28.411        .16070E-06   -.17536E-04
  14  Prefactor     33.427        28.271       -.10374E-05   -.19920E-03
  15  Prefactor     12.347        14.370        .21792E-06    .39069E-04
  16  Normalizat    1.3287        .31081        .12487E-05   -.27115E-04
  17  norm          2.9158        1.1074       -.26109E-07   -.11100E-03
  18  Prefactor     .97943        .28819E-01   -.45780E-07   -.24908E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.1678
  Prefactor  = 3.16809
  norm       = 4.94361
  Prefactor  = 6.0265
  Prefactor  = 0.34373
  norm       = 3.70219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.84198
  Prefactor  = 0.0001
  Prefactor  = 120.377
  norm       = 0.0001
  Prefactor  = 3.10342
  Prefactor  = 33.4274
  Prefactor  = 12.3468
  Normalizat = 1.3287
  norm       = 2.91585
  Prefactor  = 0.97943
 **********
 **   18 **HESSE 
 **********

 FCN=   41303.91     FROM HESSE     STATUS=OK           260 CALLS     2048 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.168        95.364        .53510E-04   -1.4208    
   2  Prefactor     3.1681        7.5529        .22774E-03   -1.5352    
   3  norm          4.9436        1.7714        .14771E-03   -1.5263    
   4  Prefactor     6.0265        13.667        .16355E-03   -1.5217    
   5  Prefactor     .34373        2.7185        .27198E-02   -1.5591    
   6  norm          3.7022        2.1447        .10494E-02   -1.5323    
   7  Prefactor     .10000E-03    5.6525        .16718       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.8420        5.4784        .20589E-03   -1.5316    
  10  Prefactor     .10000E-03    9.5441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     120.38        55.114        .36679E-04   -1.3509    
  12  norm          .10000E-03    2.1333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1034        28.306        .23022E-03   -1.5356    
  14  Prefactor     33.427        28.656        .69301E-04   -1.4551    
  15  Prefactor     12.347        14.363        .11400E-03   -1.5005    
  16  Normalizat    1.3287        .30133        .11992E-02   -.82714    
  17  norm          2.9158        1.1094        .23792E-04   -1.5366    
  18  Prefactor     .97943        .29115E-01    .12803E-03   -.93418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23013e-07
Minuit parameter uncertainties:
  1  95.6252
  2  7.55517
  3  1.77137
  4  13.6744
  5  1.93314
  6  2.14478
  7  0.000102238
  8  2.51797e-06
  9  5.47909
  10  2.6353e-06
  11  55.1371
  12  4.15633e-06
  13  18.7567
  14  28.6677
  15  14.3668
  16  0.301735
  17  1.10938
  18  0.0291152
Done.

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

Extracting fit parameters...

4FGL J1123.5-6418
   Spectrum: PowerLaw
418    Prefactor:  1.000e-04  1.022e-04  1.000e-04  1.000e+04 ( 1.000e-13)
419        Index:  2.622e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
420        Scale:  1.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1088    Prefactor:  9.794e-01  2.912e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1089        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1090        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1069   Normalization:  1.329e+00  3.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 170.889 -64.311
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/435922/likelihoodResults_664934401_665193601_4FGL_J1123.5-6418_daily_bin1642.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) = 41303.9127495
delta logL = -7.03131081536e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 41302.9715252
delta logL = 0.941154033382

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.339       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3389       1.0000          .0000       10.000    
     3 'Normalizat'    1.3333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97830       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1106E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   41302.97     FROM MIGRAD    STATUS=FAILED       107 CALLS      463 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.336        16.537        .10967E-03    .74636E-05
   2  Index         1.3388        .56588        .18410E-01   -.10880E-02
   3  Normalizat    1.3334        .28327        .11974E-02    .56057E-04
   4  Prefactor     .97830        .27014E-01    .12809E-03    .71007E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   41302.97     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      536 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.336        16.537        .20807E-03   -1.4977    
   2  Index         1.3388        .56588        .83143E-03   -.82162    
   3  Normalizat    1.3334        .28327        .51538E-03   -.82575    
   4  Prefactor     .97830        .27014E-01    .62238E-04   -.93456    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   41302.97     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      567 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.336        17.498        .43869E-05    .82929E-06
   2  Index         1.3388        .59904        .36821E-02   -.43231E-04
   3  Normalizat    1.3334        .28325        .47895E-04    .22787E-06
   4  Prefactor     .97830        .27014E-01    .51234E-05   -.71007E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3362
  Index      = 1.33875
  Normalizat = 1.3334
  Prefactor  = 0.978297
 **********
 **   18 **HESSE 
 **********

 FCN=   41302.97     FROM HESSE     STATUS=OK            25 CALLS      592 TOTAL
                     EDM=   .65E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.336        17.737        .43869E-05   -1.4977    
   2  Index         1.3388        .60716        .73642E-03   -.82162    
   3  Normalizat    1.3334        .28325        .47895E-04   -.82575    
   4  Prefactor     .97830        .27015E-01    .51234E-05   -.93456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46232e-15
Minuit parameter uncertainties:
  1  17.7444
  2  0.610423
  3  0.283586
  4  0.0270151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435922': 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) = 41302.9715251
delta logL = 0.941154120657

Extracting fit parameters...

4FGL J1123.5-6418
   Spectrum: PowerLaw
418    Prefactor:  1.334e+01  1.774e+01  1.000e-04  1.000e+04 ( 1.000e-13)
419        Index:  1.339e+00  6.104e-01  0.000e+00  1.000e+01 (-1.000e+00)
420        Scale:  1.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1088    Prefactor:  9.783e-01  2.702e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1089        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1090        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1069   Normalization:  1.333e+00  2.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 170.889 -64.311
Photon Index (Free Index): 1.34 +/- 0.61
Photon Flux (Free Index): 9.14e-09 +/- 1.29e-08
Energy Flux (Free Index): 4.94e-05 +/- 7.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/435922/cmap_HighResolution_664934401_665193601_4FGL_J1123.5-6418_daily_bin1642.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.86e-03', comment='SUCCESS', energy_flux2='4.94e-05', dlogl='9.41e-01', photon_flux2='9.14e-09', job_status='DONE', time_completed='2022-01-30 07:48:22.507529', photon_index_error2='0.61', photon_index2='1.34', ts='-0.00', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='7.17e-05', EG='1.33', time_epoch_completed='1643557702.51', return_code='0', job_id='435922', GAL2='0.98', EG2='1.33', return_code2='0', photon_flux_error2='1.29e-08', ts2='1.88', photon_index='2.62' WHERE bin_id='1642' AND source_name='4FGL J1123.5-6418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 30 07:48:22 PST 2022

er <slac> at Sun Jan 30 00:06:55 2022
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 30 00:06:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 30 00:06:57 2022
Terminated at Sun Jan 30 01:34:18 2022
Results reported at Sun Jan 30 01:34:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1123.5-6418_daily_bin1642 170.889 -64.3109 664934401 665193601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1123.5-6418 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   4826.00 sec.
    Max Memory :                                 1267 MB
    Average Memory :                             423.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5241 sec.
    Turnaround time :                            5243 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 435922: <4FGL_J1123.5-6418_daily_bin1642> in cluster <slac> Done

Job <4FGL_J1123.5-6418_daily_bin1642> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jan 30 00:07:05 2022
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 30 00:07:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 30 00:07:06 2022
Terminated at Sun Jan 30 07:48:23 2022
Results reported at Sun Jan 30 07:48:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1123.5-6418_daily_bin1642 170.889 -64.3109 664934401 665193601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1123.5-6418 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   4814.00 sec.
    Max Memory :                                 1268 MB
    Average Memory :                             120.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   27677 sec.
    Turnaround time :                            27678 sec.

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

