/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 16 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 = 7670
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1125.5-3557_daily_bin130
RA = 171.393, Dec = -35.9581
tmin = 273024001, tmax = 273283201
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='770473', job_status='RUN', time_executed='2021-09-03 19:52:25.467585', time_epoch_executed='1630723945.47' WHERE source_name='4FGL J1125.5-3557' and cadence='daily' and bin_id='130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/770473

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/770473/ft1_4FGL_J1125.5-3557_daily_bin130.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/770473/ft2_4FGL_J1125.5-3557_daily_bin130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/770473/ft1_4FGL_J1125.5-3557_daily_bin130.fits outfile=/scratch/kocevski/770473/ft1_filteredMKT_4FGL_J1125.5-3557_daily_bin130.fits ra=171.393 dec=-35.9581 rad=12.0 tmin=273024001.0 tmax=273283201.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 2.98
user 2.70
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/770473/ft2_4FGL_J1125.5-3557_daily_bin130.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/770473/ft2_4FGL_J1125.5-3557_daily_bin130.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/770473/ft1_filteredMKT_4FGL_J1125.5-3557_daily_bin130.fits evtable="EVENTS" outfile="/scratch/kocevski/770473/ft1_filtered_4FGL_J1125.5-3557_daily_bin130.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.70
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/770473/ft1_filtered_4FGL_J1125.5-3557_daily_bin130.fits" evtable="EVENTS" scfile=/scratch/kocevski/770473/ft2_4FGL_J1125.5-3557_daily_bin130.fits sctable="SC_DATA" outfile=/scratch/kocevski/770473/ltcube_273024001_273283201_4FGL_J1125.5-3557_daily_bin130.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/770473/ft2_4FGL_J1125.5-3557_daily_bin130.fits
.....................!
real 18.20
user 17.20
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/770473/ft1_filtered_4FGL_J1125.5-3557_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/770473/ft2_4FGL_J1125.5-3557_daily_bin130.fits sctable="SC_DATA" expcube=/scratch/kocevski/770473/ltcube_273024001_273283201_4FGL_J1125.5-3557_daily_bin130.fits outfile=/scratch/kocevski/770473/expmap_273024001_273283201_4FGL_J1125.5-3557_daily_bin130.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/770473/ltcube_273024001_273283201_4FGL_J1125.5-3557_daily_bin130.fits
.....................!
real 193.91
user 187.28
sys 5.21

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 G296.5+10.0 in ROI with RadialDisk spatial model.
Added 188 point sources and 1 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 J1125.5-3557 @ 171.393 -35.9581

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/770473/ft1_filtered_4FGL_J1125.5-3557_daily_bin130.fits scfile=/scratch/kocevski/770473/ft2_4FGL_J1125.5-3557_daily_bin130.fits outfile=/scratch/kocevski/770473/cmap_273024001_273283201_4FGL_J1125.5-3557_daily_bin130.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=171.393 yref=-35.9581 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/770473/ft1_filtered_4FGL_J1125.5-3557_daily_bin130.fits scfile=/scratch/kocevski/770473/ft2_4FGL_J1125.5-3557_daily_bin130.fits outfile=/scratch/kocevski/770473/cmap_HighResolution_273024001_273283201_4FGL_J1125.5-3557_daily_bin130.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=171.393 yref=-35.9581 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/770473/ft1_filtered_4FGL_J1125.5-3557_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/770473/ft2_4FGL_J1125.5-3557_daily_bin130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/770473/Model_4FGL_J1125.5-3557_daily_bin130.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 G296.5+10.0
adding source GAL_V02
Working on...
/scratch/kocevski/770473/ft1_filtered_4FGL_J1125.5-3557_daily_bin130.fits.....................!
real 78.64
user 76.49
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/770473/ft1_filtered_4FGL_J1125.5-3557_daily_bin130.fits', '/scratch/kocevski/770473/ft2_4FGL_J1125.5-3557_daily_bin130.fits', expMap='/scratch/kocevski/770473/expmap_273024001_273283201_4FGL_J1125.5-3557_daily_bin130.fits', expCube='/scratch/kocevski/770473/ltcube_273024001_273283201_4FGL_J1125.5-3557_daily_bin130.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/770473/Model_4FGL_J1125.5-3557_daily_bin130.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1125.5-3557'

4FGL J1125.5-3557
   Spectrum: PowerLaw
322    Prefactor:  7.579e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.010e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  2.641e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/770473/ft1_filtered_4FGL_J1125.5-3557_daily_bin130.fits
Spacecraft file(s): /scratch/kocevski/770473/ft2_4FGL_J1125.5-3557_daily_bin130.fits
Exposure map: /scratch/kocevski/770473/expmap_273024001_273283201_4FGL_J1125.5-3557_daily_bin130.fits
Exposure cube: /scratch/kocevski/770473/ltcube_273024001_273283201_4FGL_J1125.5-3557_daily_bin130.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/770473/Model_4FGL_J1125.5-3557_daily_bin130.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) = 7494.33912376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.824       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11097E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    33.787       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    67.916       1.0000         .10000E-03   10000.    
    10 'norm      '    23.730       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.856       1.0000         .10000E-03   10000.    
    12 'norm      '    4.2084       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6383       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2258       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88659       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7494.333     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1876 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.105       -.69520E-07** at limit **
   2  Prefactor     .10000E-03    2.4589       -.13012E-06** at limit **
   3  Prefactor     15.827        10.775       -.51593E-07   -.14777E-03
   4  Prefactor     .10001E-03    36.902        .25257E-04** at limit **
   5  norm          .10000E-03    1.7280        .12745E-06** at limit **
   6  norm          33.786        25.156        .25750E-06   -.40409E-05
   7  Prefactor     .10000E-03    11.321       -.11685E-07** at limit **
   8  Prefactor     .10000E-03    15.844       -.49583E-06** at limit **
   9  Prefactor     67.928        54.861       -.43027E-06   -.42897E-05
  10  norm          23.729        24.076        .76746E-07   -.33574E-04
  11  Prefactor     10.827        19.828        .16885E-05    .12696E-03
  12  norm          4.2162        9.4883       -.34401E-06    .38156E-04
  13  Prefactor     .10000E-03    2.1346        .32509E-07** at limit **
  14  Prefactor     .10000E-03    47.397        .91552E-06** at limit **
  15  Prefactor     .10000E-03    8.1408        .69271E-08** at limit **
  16  norm          .10000E-03    11.654       -.19837E-06** at limit **
  17  Prefactor     3.6371        13.833        .32395E-05    .46073E-03
  18  Normalizat    1.2256        .23201        .30084E-05   -.19523E-03
  19  Prefactor     .88666        .92621E-01   -.18000E-05   -.12667E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8272
  Prefactor  = 0.000100011
  norm       = 0.0001
  norm       = 33.7864
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 67.9278
  norm       = 23.7291
  Prefactor  = 10.8267
  norm       = 4.21615
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.63706
  Normalizat = 1.22562
  Prefactor  = 0.886662
 **********
 **   18 **HESSE 
 **********

 FCN=   7494.333     FROM HESSE     STATUS=OK           264 CALLS     2140 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.5002        .13244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.827        10.793        .10069E-03   -1.4912    
   4  Prefactor     .10001E-03    36.860        .40142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.7938        .22194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          33.786        25.189        .68940E-04   -1.4545    
   7  Prefactor     .10000E-03    11.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     67.928        54.831        .48704E-04   -1.4058    
  10  norm          23.729        24.086        .82229E-04   -1.4733    
  11  Prefactor     10.827        19.849        .12160E-03   -1.5050    
  12  norm          4.2162        9.3922        .19644E-03   -1.5297    
  13  Prefactor     .10000E-03    2.1445        .12349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    48.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.1411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.6371        14.062        .21180E-03   -1.5327    
  18  Normalizat    1.2256        .27346        .34610E-03   -.85815    
  19  Prefactor     .88666        .11132        .16492E-03   -.96609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28885e-09
Minuit parameter uncertainties:
  1  9.66071e-05
  2  1.82242e-05
  3  10.7947
  4  0.00128569
  5  1.36592e-05
  6  25.1971
  7  6.37225e-05
  8  0.00030585
  9  54.8713
  10  24.0958
  11  19.8609
  12  9.39544
  13  3.54841e-06
  14  0.000406568
  15  7.92877e-06
  16  1.01263e-05
  17  14.075
  18  0.273782
  19  0.111349
Done.

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

Extracting fit parameters...

4FGL J1125.5-3557
   Spectrum: PowerLaw
322    Prefactor:  6.793e+01  5.487e+01  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.010e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  2.641e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
628    Prefactor:  8.867e-01  1.113e-01  0.000e+00  1.000e+01 ( 1.000e+00)
629        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
630        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.226e+00  2.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.44
Ra Dec: 171.393 -35.958
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 4.85e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 3.27e-05 +/- 2.64e-05

TS (Fixed Index): 2.44
Ra Dec: 171.393 -35.958
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/770473/likelihoodResults_273024001_273283201_4FGL_J1125.5-3557_daily_bin130.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7494.24541752
delta logL = 0.0879586006495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7494.2367359
delta logL = 0.0966402232425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.747       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2968       1.0000          .0000       10.000    
     3 'Normalizat'    1.2057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89062       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+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=   7494.237     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      302 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.663        78.863        .58645E-04    .10147E-03
   2  Index         2.2982        .87104        .61335E-02    .20927E-03
   3  Normalizat    1.2051        .27424        .34856E-03    .26125E-04
   4  Prefactor     .89116        .11145        .16453E-03   -.38436E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.6628
  Index      = 2.29821
  Normalizat = 1.20514
  Prefactor  = 0.891159
 **********
 **   18 **HESSE 
 **********

 FCN=   7494.237     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.663        63.803        .11729E-04   -1.4341    
   2  Index         2.2982        .70463        .24534E-03   -.57086    
   3  Normalizat    1.2051        .27136        .13943E-04   -.86444    
   4  Prefactor     .89116        .11092        .32906E-04   -.96451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.14654e-10
Minuit parameter uncertainties:
  1  63.8962
  2  0.707969
  3  0.271679
  4  0.110951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/770473': 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) = 7494.23671007
delta logL = 0.0966660509721

Extracting fit parameters...

4FGL J1125.5-3557
   Spectrum: PowerLaw
322    Prefactor:  4.666e+01  6.390e+01  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.298e+00  7.080e-01  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  2.641e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
628    Prefactor:  8.912e-01  1.110e-01  0.000e+00  1.000e+01 ( 1.000e+00)
629        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
630        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.205e+00  2.717e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 171.393 -35.958
Photon Index (Free Index): 2.30 +/- 0.71
Photon Flux (Free Index): 6.66e-08 +/- 6.54e-08
Energy Flux (Free Index): 2.53e-05 +/- 2.27e-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/770473/cmap_HighResolution_273024001_273283201_4FGL_J1125.5-3557_daily_bin130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='4.85e-08', energy_flux2='2.53e-05', photon_flux_error='3.91e-08', dlogl='9.67e-02', energy_flux='3.27e-05', photon_flux2='6.66e-08', job_status='DONE', time_completed='2021-09-03 20:04:19.791453', photon_index_error2='0.71', photon_index2='2.30', ts='2.44', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='2.27e-05', EG='1.23', time_epoch_completed='1630724659.79', return_code='0', job_id='770473', GAL2='0.89', EG2='1.21', return_code2='0', energy_flux_error='2.64e-05', photon_flux_error2='6.54e-08', ts2='2.63', photon_index='2.01' WHERE bin_id='130' AND source_name='4FGL J1125.5-3557' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:04:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 770473: <4FGL_J1125.5-3557_daily_bin130> in cluster <slac> Done

Job <4FGL_J1125.5-3557_daily_bin130> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 19:51:34 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 19:51:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 19:51:37 2021
Terminated at Fri Sep  3 20:04:21 2021
Results reported at Fri Sep  3 20:04:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.5-3557_daily_bin130 171.393 -35.9581 273024001 273283201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1125.5-3557 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   690.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            767 sec.

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

