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


Performing analysis on: 4FGL_J1125.5-3557_daily_bin449
RA = 171.393, Dec = -35.9581
tmin = 355708801, tmax = 355968001
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='771972', job_status='RUN', time_executed='2021-09-03 20:00:16.770923', time_epoch_executed='1630724416.77' WHERE source_name='4FGL J1125.5-3557' and cadence='daily' and bin_id='449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/771972

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/771972/ft1_4FGL_J1125.5-3557_daily_bin449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/771972/ft2_4FGL_J1125.5-3557_daily_bin449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/771972/ft1_4FGL_J1125.5-3557_daily_bin449.fits outfile=/scratch/kocevski/771972/ft1_filteredMKT_4FGL_J1125.5-3557_daily_bin449.fits ra=171.393 dec=-35.9581 rad=12.0 tmin=355708801.0 tmax=355968001.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 5.04
user 4.73
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/771972/ft2_4FGL_J1125.5-3557_daily_bin449.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/771972/ft1_filteredMKT_4FGL_J1125.5-3557_daily_bin449.fits evtable="EVENTS" outfile="/scratch/kocevski/771972/ft1_filtered_4FGL_J1125.5-3557_daily_bin449.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.56
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/771972/ft1_filtered_4FGL_J1125.5-3557_daily_bin449.fits" evtable="EVENTS" scfile=/scratch/kocevski/771972/ft2_4FGL_J1125.5-3557_daily_bin449.fits sctable="SC_DATA" outfile=/scratch/kocevski/771972/ltcube_355708801_355968001_4FGL_J1125.5-3557_daily_bin449.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/771972/ft2_4FGL_J1125.5-3557_daily_bin449.fits
.....................!
real 15.46
user 15.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/771972/ft1_filtered_4FGL_J1125.5-3557_daily_bin449.fits evtable="EVENTS" scfile=/scratch/kocevski/771972/ft2_4FGL_J1125.5-3557_daily_bin449.fits sctable="SC_DATA" expcube=/scratch/kocevski/771972/ltcube_355708801_355968001_4FGL_J1125.5-3557_daily_bin449.fits outfile=/scratch/kocevski/771972/expmap_355708801_355968001_4FGL_J1125.5-3557_daily_bin449.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/771972/ltcube_355708801_355968001_4FGL_J1125.5-3557_daily_bin449.fits
.....................!
real 191.16
user 186.25
sys 4.37

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/771972/ft1_filtered_4FGL_J1125.5-3557_daily_bin449.fits scfile=/scratch/kocevski/771972/ft2_4FGL_J1125.5-3557_daily_bin449.fits outfile=/scratch/kocevski/771972/cmap_355708801_355968001_4FGL_J1125.5-3557_daily_bin449.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.55
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/771972/ft1_filtered_4FGL_J1125.5-3557_daily_bin449.fits scfile=/scratch/kocevski/771972/ft2_4FGL_J1125.5-3557_daily_bin449.fits outfile=/scratch/kocevski/771972/cmap_HighResolution_355708801_355968001_4FGL_J1125.5-3557_daily_bin449.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/771972/ft1_filtered_4FGL_J1125.5-3557_daily_bin449.fits evtable="EVENTS" scfile=/scratch/kocevski/771972/ft2_4FGL_J1125.5-3557_daily_bin449.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/771972/Model_4FGL_J1125.5-3557_daily_bin449.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/771972/ft1_filtered_4FGL_J1125.5-3557_daily_bin449.fits.....................!
real 59.58
user 58.17
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/771972/ft1_filtered_4FGL_J1125.5-3557_daily_bin449.fits', '/scratch/kocevski/771972/ft2_4FGL_J1125.5-3557_daily_bin449.fits', expMap='/scratch/kocevski/771972/expmap_355708801_355968001_4FGL_J1125.5-3557_daily_bin449.fits', expCube='/scratch/kocevski/771972/ltcube_355708801_355968001_4FGL_J1125.5-3557_daily_bin449.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/771972/Model_4FGL_J1125.5-3557_daily_bin449.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/771972/ft1_filtered_4FGL_J1125.5-3557_daily_bin449.fits
Spacecraft file(s): /scratch/kocevski/771972/ft2_4FGL_J1125.5-3557_daily_bin449.fits
Exposure map: /scratch/kocevski/771972/expmap_355708801_355968001_4FGL_J1125.5-3557_daily_bin449.fits
Exposure cube: /scratch/kocevski/771972/ltcube_355708801_355968001_4FGL_J1125.5-3557_daily_bin449.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/771972/Model_4FGL_J1125.5-3557_daily_bin449.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) = 5546.81124293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.351       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.706       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1911       1.0000         .10000E-03   10000.    
     5 'norm      '    .23829       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.116       1.0000         .10000E-03   10000.    
     9 'Prefactor '    94.599       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3140       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88226       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=   5546.811     FROM MIGRAD    STATUS=CONVERGED    369 CALLS     2377 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.292       -.18086E-04** at limit **
   2  Prefactor     18.346        10.340       -.13187E-06    .19044E-03
   3  Prefactor     13.706        21.026        .63776E-06    .29050E-04
   4  Prefactor     3.1908        14.415       -.10172E-05   -.10985E-03
   5  norm          .23430        1.5047       -.38349E-06   -.25876E-03
   6  norm          .10000E-03    12.389        .59343E-05** at limit **
   7  Prefactor     .10000E-03    13.624       -.46125E-05** at limit **
   8  Prefactor     18.116        17.492       -.42215E-06   -.34363E-05
   9  Prefactor     94.600        67.360        .73269E-06    .27104E-04
  10  norm          .10000E-03    29.919        .58655E-05** at limit **
  11  Prefactor     .10000E-03    8.1752       -.73398E-05** at limit **
  12  norm          .10000E-03    1.5484       -.10631E-06** at limit **
  13  Prefactor     .10000E-03    8.1306        .27116E-06** at limit **
  14  Prefactor     .10000E-03    6.5281        .45486E-06** at limit **
  15  Prefactor     .10000E-03    22.898        .17841E-04** at limit **
  16  norm          .10000E-03    15.247       -.10285E-04** at limit **
  17  Prefactor     .10000E-03    8.6532        .77316E-05** at limit **
  18  Normalizat    1.3140        .29713       -.22063E-06    .62792E-04
  19  Prefactor     .88227        .11433        .20999E-06    .77305E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.3465
  Prefactor  = 13.7057
  Prefactor  = 3.1908
  norm       = 0.234299
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1158
  Prefactor  = 94.6001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31396
  Prefactor  = 0.882274
 **********
 **   18 **HESSE 
 **********

 FCN=   5546.811     FROM HESSE     STATUS=OK           262 CALLS     2639 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.346        10.322        .93497E-04   -1.4851    
   3  Prefactor     13.706        21.093        .10819E-03   -1.4967    
   4  Prefactor     3.1908        14.429        .22683E-03   -1.5351    
   5  norm          .23430        5.3855        .17330E-02   -1.5611    
   6  norm          .10000E-03    12.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.116        17.530        .94099E-04   -1.4856    
   9  Prefactor     94.600        67.385        .41322E-04   -1.3760    
  10  norm          .10000E-03    29.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.1985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.5493        .90507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.4305        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    15.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.6665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3140        .36043        .36087E-03   -.83151    
  19  Prefactor     .88227        .13943        .17006E-03   -.96763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61572e-10
Minuit parameter uncertainties:
  1  3.43704e-05
  2  10.323
  3  21.104
  4  13.5758
  5  2.24636
  6  9.96084e-07
  7  1.2848e-06
  8  17.535
  9  67.4395
  10  9.30602e-06
  11  5.50807e-06
  12  6.18607e-09
  13  8.62041e-06
  14  6.10061e-07
  15  4.72933e-06
  16  2.36309e-06
  17  6.76216e-06
  18  0.36112
  19  0.139485
Done.

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

Extracting fit parameters...

4FGL J1125.5-3557
   Spectrum: PowerLaw
322    Prefactor:  9.460e+01  6.744e+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.823e-01  1.395e-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.314e+00  3.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.62
Ra Dec: 171.393 -35.958
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 6.75e-08 +/- 4.81e-08
Energy Flux (Fixed Index): 4.55e-05 +/- 3.24e-05

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

Saving results to:
/scratch/kocevski/771972/likelihoodResults_355708801_355968001_4FGL_J1125.5-3557_daily_bin449.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) = 5546.76568119
delta logL = 0.045473745452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5546.76380303
delta logL = 0.0473519031211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.579       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1659       1.0000          .0000       10.000    
     3 'Normalizat'    1.3004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88482       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=   5546.764     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      257 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.594        83.662        .45303E-04   -.31559E-03
   2  Index         2.1658        .54663        .51218E-02   -.29560E-03
   3  Normalizat    1.3004        .34528        .36244E-03    .31793E-03
   4  Prefactor     .88482        .13608        .16983E-03    .87888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.5935
  Index      = 2.16579
  Normalizat = 1.3004
  Prefactor  = 0.884816
 **********
 **   18 **HESSE 
 **********

 FCN=   5546.764     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.594        78.028        .90607E-05   -1.3933    
   2  Index         2.1658        .50946        .20487E-03   -.60267    
   3  Normalizat    1.3004        .34506        .72489E-04   -.83554    
   4  Prefactor     .88482        .13610        .33965E-04   -.96674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35791e-09
Minuit parameter uncertainties:
  1  78.1303
  2  0.510772
  3  0.345671
  4  0.136151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/771972': 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) = 5546.76380301
delta logL = 0.0473519212501

Extracting fit parameters...

4FGL J1125.5-3557
   Spectrum: PowerLaw
322    Prefactor:  7.859e+01  7.813e+01  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.166e+00  5.108e-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.848e-01  1.362e-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.300e+00  3.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.70
Ra Dec: 171.393 -35.958
Photon Index (Free Index): 2.17 +/- 0.51
Photon Flux (Free Index): 8.09e-08 +/- 6.98e-08
Energy Flux (Free Index): 3.88e-05 +/- 3.26e-05

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/771972/cmap_HighResolution_355708801_355968001_4FGL_J1125.5-3557_daily_bin449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', photon_flux='6.75e-08', energy_flux2='3.88e-05', photon_flux_error='4.81e-08', dlogl='4.74e-02', energy_flux='4.55e-05', photon_flux2='8.09e-08', job_status='DONE', time_completed='2021-09-03 20:10:55.198310', photon_index_error2='0.51', photon_index2='2.17', ts='3.62', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.76e-07', energy_flux_error2='3.26e-05', EG='1.31', time_epoch_completed='1630725055.2', return_code='0', job_id='771972', GAL2='0.88', EG2='1.30', return_code2='0', energy_flux_error='3.24e-05', photon_flux_error2='6.98e-08', ts2='3.70', photon_index='2.01' WHERE bin_id='449' AND source_name='4FGL J1125.5-3557' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:10:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 771972: <4FGL_J1125.5-3557_daily_bin449> in cluster <slac> Done

Job <4FGL_J1125.5-3557_daily_bin449> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep  3 19:56:23 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 19:56: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 19:56:40 2021
Terminated at Fri Sep  3 20:10:55 2021
Results reported at Fri Sep  3 20:10:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.5-3557_daily_bin449 171.393 -35.9581 355708801 355968001 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 :                                   630.57 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             228.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            872 sec.

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

